Skip to content

MCP reference

For a walkthrough with working clients, see Connect over MCP.

Endpoint POST /mcp on the agent listener
Transport Stateless Streamable HTTP
Protocol revision 2026-07-28, and no other
Authentication Authorization: Bearer <token>, an OAuth access token for the agent listener’s audience
Discovery GET /.well-known/oauth-protected-resource

MCP clients discover tools with tools/list, so that answer is the reference for your deployment. Each intent the caller is granted becomes one tool, with the first dot replaced by a hyphen: procurement.get_budget becomes procurement-get_budget. An intent the caller is not granted is not listed, and calling it gets the protocol’s unknown-tool error.

Argument Required Description
input Yes The intent’s input, as its schema in tools/list describes
idempotency_key For writes One key per business action, reused on retry. Pattern: ^[A-Za-z0-9_-]{16,128}$
rationale No Why the agent is asking, at most 2000 characters. Shown to approvers as unverified, and never affects a decision

Read the current result of one of your executions by its execution_id.

Field Type Required Description
execution_id string Yes

Cancel one of your executions while it is pending approval, by its execution_id. Refused in any other status.

Field Type Required Description
execution_id string Yes

Submit an ordered plan of 2 to 16 steps, run one after another. Each step names a granted intent type (the tool name with the hyphen as a dot, for example procurement.create_vendor) and an input that follows that tool’s input schema. A value in a later step may be {“$ref”: “steps..output.”}, an output field of an earlier step; it is resolved just before the step runs. At most one irreversible step, and only as the last step. If a step fails, the steps before it are undone in reverse order. An idempotency_key is required when any step changes state. If the result is not final, call sefra-get_execution with its execution_id after poll_after_s seconds.

Field Type Required Description
idempotency_key string No Generate one key per business action and reuse it when retrying that action. Pattern: ^[A-Za-z0-9_-]{16,128}$.
rationale string No Optional, agent-supplied and unverified. Shown to approvers; never influences a decision. At most, in characters: 2000.
steps array of object Yes At most, in items: 16.

Each entry of steps:

Field Type Required Description
id string Yes Pattern: ^[a-z0-9_]{1,32}$.
input object Yes
intent string Yes

Every tool returns this object in structuredContent, and the same JSON in a text block. isError is true when the status is rejected, failed, rolled_back, needs_intervention or resolved_manually.

Field Type Required Description
approval object No
error object No
execution_id string or null Yes
poll_after_s integer No Minimum: 0.
replayed boolean No
status any No One of pending_approval, executing, compensating, succeeded, rejected, failed, rolled_back, needs_intervention, resolved_manually.
steps array of object No

Every status and code is listed under Statuses and error codes, and Handle every outcome says what an agent should do with each.