trust.graduate

Live

Graduate trust/autonomy level for an action class.

CategoryTrust
JSON-RPCtools/call
EndpointPOST /mcp
Sourcepackages/mcp-tools/src/tools/trust-graduate.ts

Description

Promotes a (action class × counterparty) pair from its current level to level 2 or 3. Demotion is automatic on user reversal — there is no `trust.demote` tool by design.

Input schema

FieldTypeRequiredDescription
action_classstringyesAction class to graduate.
counterparty_idstringnoOptional counterparty identifier.
to_level2 | 3yesTarget autonomy level.
reasonstringnoOptional graduation reason.

Output shape

typescript
{
  ok: boolean;
  new_level: number;
  error?: 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": "trust.graduate",
  "arguments": {
    "action_class": "communicate",
    "counterparty_id": "entity_01HXSARAH",
    "to_level": 3,
    "reason": "30 days of clean Level 2 history"
  }
}

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
{
  "ok": true,
  "new_level": 3
}

Errors this tool can return

CodeMeaning
invalid_argumentsTool input failed Zod validation.
unauthorizedMissing or invalid bearer token.
trust_insufficientThe current autonomy level for this (action class × counterparty) is too low for direct execution.

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