MCPDocumentation
On this page

Core

Confirm a change

confirm_action
Confirms a write
Permission required
None: available to any valid key

When to use it

Applies a change a *_preview tool showed before. The token is single-use, expires after 15 minutes and only works for the key that requested it. Before confirming, show the preview to the person and wait for their approval.

Input

FieldTypeDescription
confirm_tokenRequiredstringThe confirm_token a *_preview tool returned

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
toolRequiredstringThe preview tool whose change was applied
summaryRequiredstring
resultRequiredobject

Examples

Example 1: Confirm the proposed cover

Call

JSON
{
  "name": "confirm_action",
  "arguments": {
    "confirm_token": "ct_0f3a…"
  }
}

Response

JSON
{
  "tool": "ops_cover_assign_preview",
  "summary": "Asignar a Marta Ruiz la clase de Pilates del martes 10:00",
  "result": {
    "assigned": true
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "confirm_action",
    "arguments": {
      "confirm_token": "ct_0f3a…"
    }
  }
}