{
  "tools": [
    {
      "name": "check_budget",
      "description": "Check whether a planned charge fits within an agent's remaining budget.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "agent_id": {
            "type": "string",
            "description": "The agent planning to spend."
          },
          "amount": {
            "type": "object",
            "description": "The value and currency of the planned charge."
          },
          "task_id": {
            "type": "string",
            "description": "The task the charge belongs to, so costs add up per job."
          }
        },
        "required": [
          "agent_id",
          "amount"
        ]
      },
      "request": {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
          "name": "check_budget",
          "arguments": {
            "agent_id": "agt_research",
            "amount": {
              "value": 39.0,
              "currency": "EUR"
            },
            "task_id": "task_market_scan"
          }
        }
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 1,
        "result": {
          "structuredContent": {
            "fits": false,
            "remaining_agent_budget": {
              "value": 22.5,
              "currency": "EUR"
            },
            "remaining_task_budget": {
              "value": 60.0,
              "currency": "EUR"
            },
            "period": "October 2026",
            "next_step": "Ask the owner to raise the agent's monthly cap"
          },
          "isError": false
        }
      }
    }
  ]
}
