MCP tool
get_agent_run
Read a run with its mission, bound mandate, ordered steps, approvals, exceptions, decisions and evidence. detailLimit applies independently to each child collection and counts reveal truncation. Inspect this immediately before any state transition to avoid acting on stale phase or authority.
Input
Pass fields from this schema as the tool arguments. Runtime ownership, product scope and readiness checks still apply.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"runId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "agent run id"
},
"detailLimit": {
"description": "maximum rows per child collection; API default 100",
"type": "integer",
"minimum": 1,
"maximum": 500
}
},
"required": [
"runId"
]
}REST mapping and authority
The tool wraps this REST endpoint. The mapping identifies path/query/body transformations and approval or idempotency headers.
{
"method": "GET",
"path": "/api/v1/agent/runs/{runId}",
"pathFields": [
"runId"
],
"pathSchema": {
"type": "object",
"properties": {
"runId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "agent run id"
}
},
"additionalProperties": false,
"required": [
"runId"
]
},
"pathEncoding": "encodeURIComponent for each path field",
"governedAction": null,
"headers": {},
"querySchema": {
"type": "object",
"properties": {
"detailLimit": {
"description": "maximum rows per child collection; API default 100",
"type": "integer",
"minimum": 1,
"maximum": 500
}
},
"additionalProperties": false
},
"queryEncoding": "URLSearchParams; omit undefined fields, stringify supplied values",
"responseMapping": "REST JSON is returned as MCP structuredContent and a compatibility text block; privacy-sensitive tools validate their output schema."
}Output
This is the registered MCP output envelope. Nested fields are only modeled where the schema explicitly defines them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"run": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"run"
],
"additionalProperties": {}
}Safety annotations
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false
}Annotations help a client present the tool. The API independently enforces authorization and exact action approvals. Error and retry guidance →