decision.history

Live

Paginated read across decisions, filtered by counterparty / action class / time window.

CategoryDecision
JSON-RPCtools/call
EndpointPOST /mcp
Sourcepackages/mcp-tools/src/tools/decision-history.ts

Description

Lists decisions with cursor pagination. Default page size 25; max 100. Per ADR-0021 §read-API Family A.

Input schema

FieldTypeRequiredDescription
counterparty_idstringnoFilter by counterparty.
action_classstringnoFilter by action class (canonical or namespaced).
sincestring (ISO-8601)noLower bound on occurred_at.
untilstring (ISO-8601)noUpper bound on occurred_at.
limitintegernoDefault 25; max 100.
cursorstringnoPagination cursor.

Output shape

typescript
{
  items: Array<{ decision_id: string; decision_class: string; payload_summary: string; occurred_at: string }>;
  next_cursor?: string;
}

Example call

JSON-RPC tools/call request body (omit the JSON-RPC envelope when using an SDK; the SDK adds it for you):

jsontools/call params
{
  "name": "decision.history",
  "arguments": { "counterparty_id": "entity_01HXSARAH", "limit": 10 }
}

Example response

Tool results are always wrapped as content[0].text with a stringified JSON body. The shape below is what you get back from JSON.parse(result.content[0].text):

jsonparsed result body
{
  "items": [
    { "decision_id": "dec_01HX...", "decision_class": "action_proposed", "payload_summary": "Propose reply to Sarah about Thursday meeting.", "occurred_at": "2026-06-15T11:24:00Z" }
  ],
  "next_cursor": "cur_01HX..."
}

Errors this tool can return

CodeMeaning
invalid_argumentsTool input failed Zod validation.
unauthorizedMissing or invalid bearer token.
quota_exceededPer-minute, daily call, or daily inference budget exceeded.

See the full error catalog for resolution steps on each code, plus the standard transport-layer responses (401, 429).