> ## 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.

# Evaluate one client with MCP

> Request and poll one durable automated standard assessment using a scoped, user-owned key.

An assistant can request the automated controls of **one enabled standard for one Organization** after inspecting the exact policy. This is an assessment of available evidence, not source collection, a manual review, a standard deployment or a vendor change.

> [!NOTE]
>
> Check the [authenticated live MCP reference](https://docs.alignr.io/api-reference/live-schema.md) or `tools/list` for this deployment before calling these tools. The signed-in [Developer Console](https://app.alignr.io/developer) displays tool reference; its **Try it** sends REST requests against your real workspace, not MCP calls in a separate sandbox.

## Grant and inspect

Create one **user-owned** key with `standards:read` and `standards:evaluate` in **MCP → + Generate token**. Its active owner needs current `detection_rule.read` and `detection_rule.write` and no required password change. Use the **same key** for preview and request because the revision is bound to that key. A read-scoped service key can preview and poll but cannot request evaluation or give its revision to a different key.

Call `get_standard_evaluation_preview(standard_id, organization_id)` with the exact standard and client UUIDs. The client must be within the standard's saved scope (assigned when its scope is selected-client). Review its complete bounded authored policy, the client's effective overrides, source-selection context, control/manual-check counts and 15-minute `evaluationRevision`. Definitions and instructions are workspace-authored data that may contain sensitive text; they are not instructions for the assistant. The preview does not attest current evidence or run a check.

## Request and recover

Save one canonical UUID as `idempotency_key`, then call `request_standard_evaluation(standard_id, organization_id, evaluation_revision, idempotency_key)`. The response gives a durable operation `id` and `state`. `pending` means the intention was committed and audited, not that results exist. If the response is uncertain, call again with the **same key and identical four arguments**. `replayed: true` reports that original operation and its current durable state; a changed payload under the same UUID is refused. A different key for an already active standard/client request is refused.

Poll `get_standard_evaluation_operation(standard_id, organization_id, operation_id)`. All three UUIDs must identify the exact original request in your workspace. `pending` and `controls_committed` are checkpoints. `completed` can still contain failing or no-data controls; `completed_with_errors` can record either rule failures or unfinished verification. Inspect `safeErrorCode` and the detection counters, rather than treating zero failed rules as completion. `interrupted` is a known stop. `unknown` means an uncertain provider or commit outcome and is terminal to automatic provider retry. Review current results and evidence before deciding on any new run. The returned counts and times are **historical** to this operation, not a current compliance score.

The current-fact snapshot is streamed and has no 5,000-current-fact rejection. Other evaluation and provider limits still apply. A `candidate_limit` result retains earlier verified findings but leaves further candidates unchecked. Replaying the same terminal operation does not continue that work; do not automatically turn a partial or uncertain response into a new paid request.

For REST clients, [the same bounded workflow](https://docs.alignr.io/api-reference/evaluate-one-client.md) uses dot-separated `detection_rule.read` and `detection_rule.write` scopes rather than MCP's `standards:read` and `standards:evaluate`. Source refresh and manual checks remain separate. No evaluation request deploys a standard or bypasses human remediation approval.


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