{
  "tools": [
    {
      "name": "route",
      "description": "Send a task to the best available provider within a budget and time limit.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "task": {
            "type": "object",
            "description": "The type of task and its input."
          },
          "budget": {
            "type": "object",
            "description": "The maximum cost for this call."
          },
          "max_latency": {
            "type": "string",
            "description": "The longest you are willing to wait, as an ISO 8601 duration."
          }
        },
        "required": [
          "task"
        ]
      },
      "request": {
        "jsonrpc": "2.0",
        "id": 1,
        "method": "tools/call",
        "params": {
          "name": "route",
          "arguments": {
            "task": {
              "type": "transcribe",
              "input": "voice_note_0412.m4a",
              "language": "en-IE"
            },
            "budget": {
              "value": 0.05,
              "currency": "EUR"
            },
            "max_latency": "PT20S"
          }
        }
      },
      "response": {
        "jsonrpc": "2.0",
        "id": 1,
        "result": {
          "structuredContent": {
            "result": "Hi, it's Declan. I can do Thursday at three if that still suits.",
            "provider": "Harbour Speech",
            "cost": {
              "value": 0.012,
              "currency": "EUR"
            },
            "latency": "PT4.1S",
            "fallbacks_used": [
              "Liffey Speech timed out after 8s"
            ]
          },
          "isError": false
        }
      }
    }
  ]
}
