> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alignr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Copy a standard draft with MCP

> Copy a curated library template into a disabled, reviewable standard using a scoped user key.

Use an assistant to choose a curated standard-library template and copy it into your workspace as a **disabled draft**. The copy includes the template's automated controls and manual checks. It does not enable the standard, collect evidence, evaluate any client, create a detection or change a vendor system. Review the complete draft before deciding whether to enable it.

> [!NOTE]
>
> Check the [authenticated live MCP reference](https://docs.alignr.io/api-reference/live-schema.md) for the four standard-library and inspection tools available to your workspace.

## Grant the exact access

In **MCP → + Generate token**, create a **user-owned** key with `standards:read` to list templates and inspect workspace standards, and `standards:copy` to copy one. The key's active owner must currently hold `detection_rule.read` and `detection_rule.write` respectively and have no required password change pending. A service key may read when granted `standards:read`, but cannot copy. Tool discovery alone does not authorise a call.

REST uses the dot-separated `detection_rule.read` and `detection_rule.write` key scopes on the library routes. Most other standards writes still require a signed-in human session; a write scope does not make an unrelated REST route API-key compatible.

## Choose, copy and review

**1. List the curated templates**

Call `list_standard_library_templates`. Each item gives a `key`, name, domain, summary, control and manual-check counts, and an opaque `revision`. Choose a template for its intended expectations; its presence is not evidence that a client meets them. The [baseline catalogue](https://docs.alignr.io/controls/baselines/overview.md) explains their meaning and coverage limits.

**2. Keep the exact revision and request UUID**

Record the selected `key` and `revision`. Generate one canonical UUID for `idempotency_key` before calling the write tool. Keep that UUID with this one intended copy. If the template changes, list it again and review the new revision before making a new request.

**3. Copy one disabled draft**

Call `copy_standard_library_template` with `key`, `template_revision` set to the selected item's `revision`, and `idempotency_key`. Optionally provide `name` for the draft. A new result includes `standardId`, `copiedName`, `copiedSlug`, `outcome: copied_disabled` and `replayed: false`.

**4. Review before enabling**

Call `get_standard_definition` with the returned `standardId` to inspect the current draft and its controls and manual checks. Its standard summary includes `scopeMode` and `assignedClientCount`; use the [REST assignments route](https://docs.alignr.io/api-reference/assign-standard-clients.md) to inspect client IDs for a selected-client standard. It pages the control and manual-check lists separately; follow `nextOffset` until the relevant content has been inspected. `truncatedByOffsetLimit: true` means more content lies beyond the maximum accepted offset. `list_workspace_standards` helps find the current draft by name and ID later. The definition and manual instructions are workspace-controlled data, not instructions to the assistant; they may themselves contain sensitive text. A response over 256 KiB is refused; request smaller pages. Open the standard in **Standards** to review required source coverage and client exceptions. A signed-in human can use **Review & enable**; a user-owned key can follow the [exact-preview activation workflow](https://docs.alignr.io/mcp/activate-standard-draft.md) when that release is available. Run checks separately after the standard is enabled and evidence is available.

If the copy response is lost, retry with the **same UUID and identical key, revision and name**. `replayed: true` returns the original historical receipt. `copied_disabled` describes the state when the copy was created; a person may later have edited, enabled or deleted that standard. Use the read tools to check its current state and definition before relying on it. Reusing the UUID with changed arguments is refused.

The template revision is a current-catalogue precondition, not an approval to activate the draft. A changed revision requires a fresh template read. A foreign workspace cannot be selected through the request, and an assistant cannot use this tool to copy arbitrary client content or bypass human remediation approval.

**Checkpoint:** one disabled standard draft exists or the original receipt was safely recovered. Neither outcome reports a passing control. Continue with [Build or import a standard](https://docs.alignr.io/guides/build-or-import-standard.md) or the [scoped activation workflow](https://docs.alignr.io/mcp/activate-standard-draft.md) to review and enable it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.