Skip to main content
Glama
Caravan MCP

Caravan MCP

by OJ-IRO

Call a paid x402 service (spends USDC)

call_paid_service

Calls an x402 endpoint, automatically pays its USDC price from the configured wallet, enforces a maxPriceUsdc cap, and returns the response with a payment receipt.

Instructions

Call an x402 endpoint and automatically pay its USDC price from the configured wallet. Refuses to pay above maxPriceUsdc (default 0.25). Returns the response plus payment receipt (txid).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "call_paid_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
viaNo'direct' (default) pays the endpoint straight from your wallet. 'relay' routes through Caravan's safe-passage relay: you authorize up to $0.05, are charged actual cost + 20%, and FAILED CALLS ARE FREE (payment cancelled). Prefer relay for unfamiliar merchants.
bodyNoJSON body for POST/PUT
queryNoQuery params to append
methodNoHTTP method, default GET
networkNo
maxPriceUsdcNoHard cap on what this call may cost (USDC). Default 0.25
approvalTokenNoHuman-approval token from a prior needs_approval response. Only pass this after the human explicitly approved the payment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the full behavioral burden, and it does disclose the key traits for a spend tool: payment is automatic, a hard cap is enforced (default 0.25 USDC), and a receipt with txid is returned. It omits important behavior — whether a failed direct call is still charged, the needs_approval/approvalToken handshake, and where the wallet credentials come from — leaving real gaps for a financially destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and its cost implication, then the guardrail, then the return shape. No sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, no-output-schema, unannotated payment tool, the description covers the essentials an agent needs before invoking it: what it costs, the cap, and what comes back. The main omission is the approval flow implied by approvalToken and needs_approval responses, which is material for a tool that moves funds.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the schema already documents via, method, maxPriceUsdc and approvalToken in detail, so the schema does the heavy lifting. The description only restates the maxPriceUsdc default of 0.25, which is already in the schema, and adds no meaning for url, network, body, or query. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Call an x402 endpoint and automatically pay its USDC price from the configured wallet' — which conveys both the action and its monetary side effect, a distinction the read-only siblings (get_service, discover_services) do not share. It never names a sibling explicitly, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance: nothing tells the agent to call get_service or check_trust first, or what conditions should push it toward the relay path versus direct. Usage is only implied by the fact that the tool spends money.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.