MCP examples

Agent checkout JSON and structured tool calls.

ToolBudget Router is a paid JSON-RPC-over-HTTP MCP endpoint. Use the agent checkout route first, then claim a token and call /mcp.

POST /api/agent-checkout
{
  "planId": "team:annual",
  "clientType": "agent",
  "source": "agent_mcp_client"
}
POST /mcp
Authorization: Bearer <token>
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "plan_tools_for_task",
    "arguments": {
      "taskIntent": "Review GitHub issue and draft Slack update",
      "connectedServers": ["github", "slack", "jira"]
    }
  }
}