record_intent
Declares what an AI agent is buying and why before any payment, creating a sealed, auditable intent record that can be checked against limits and later verified.
Instructions
Call this first, whenever you are about to pay for anything (an x402 request, an API, data, compute, a card or Stripe payment): declare what you are buying and why, before paying. Sealed in your company's book. Amounts are integers in the currency's minor unit (cents; 6 decimals for USDC).
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": {
"purpose": "<purpose>"
},
"name": "record_intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | No | ||
| product | No | Optional: what is being bought, such as an API plan, a dataset or a SKU | |
| purpose | Yes | Why you are paying, in one sentence. This is what an auditor reads. | |
| currency | No | ||
| payee_id | No | Optional: who is to be paid, as scheme:value, such as wallet:0x59dd… for an x402 or onchain payment, or domain:data.example. Give it whenever you know it: check_payment then refuses a payment to anyone else, and a mandate that lists its payees refuses a payee not on the list. | |
| expires_in | No | ISO 8601 duration (PT1H, P3D) | |
| counterparty | No | ||
| max_amount_minor | No | The most you may pay | |
| expected_amount_minor | No |