call_service
Call a listed remote service THROUGH Clearhouse and get a signed receipt.
Routes the call via the matching protocol adapter (MCP / A2A / HTTP-x402),
enforces spend caps, settles x402 paywalls (dry-run by default), and
returns the result plus a cryptographically signed receipt binding
intent -> execution -> settlement -> outcome.
Args:
listing_id: id from search_agents results
tool: downstream tool name (omit to list the service's tools)
args_json: JSON object of tool arguments
caller_ref: opaque caller identifier for the receipt
payment_json: for paid services — JSON {"authorization": typed_data.message,
"signature": "0x..."} produced by signing quote_call's typed_data with
your own key. Clearhouse relays it; it never sees your private key.
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": {
"listing_id": "<listing_id>"
},
"name": "call_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| args_json | No | {} | |
| caller_ref | No | mcp-client | |
| listing_id | Yes | ||
| payment_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |