macaroons_execute
Executes a paid marketplace capability by ID, settles USDC on Base only when the acceptance predicate passes, and returns payment terms if no wallet is configured.
Instructions
Execute a paid marketplace capability by capability_id using x402 USDC on Base. Payment only settles if the acceptance predicate passes against the bridge response; bridge errors and predicate failures refund. If no wallet is configured (the default), returns x402_payment_required with the real payment terms for you to pay/sign yourself.
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": {
"capability_id": "<capability_id>",
"input": "<input>"
},
"name": "macaroons_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Capability input payload matching the listing input_schema. | |
| predicate | No | Optional acceptance predicate. Defaults to the listing's sample_predicate when omitted. | |
| capability_id | Yes | Registry capability_id, e.g. 'polymathica-heated-channel-v1'. | |
| payment_signature | No | Only set this after a prior call returned x402_payment_required and you've since signed the exact-scheme USDC payment it described with your own wallet — set it to the resulting signed proof. Omit on a first attempt. |