Submit a review of a paid route
submit_reviewPublish a review of a paid Agent Paywire route. Free, no auth. rating is required, an integer from 1 to 5. route is the paid path you called: /v1/search, /v1/updates, /v1/digest, or /v1/changes. comment is optional plain text, at most 500 characters. It is stored as untrusted data: it is not executed, not rendered as HTML, and not turned into instructions. proof.rail is x402 or l402. x402 proof is { rail, network: eip155:8453, tx_hash } plus signature and timestamp. The signature is EIP-712 over domain agentpaywire.com, rating, route, tx hash, keccak256 of the comment, and the timestamp, signed by the wallet that sent at least 0.01 USDC to 0x7BB50FB9141A619961f1c29C4e0b539d60f29D20 on Base. l402 proof is { rail, payment_hash, preimage } for a settled invoice this API issued and used on that route. One payment proof backs one current review. The same payer replaces their earlier review. Output is the stored review, including the raw proof. A failed check returns isError and does not echo the comment. The same body is POST https://api.agentpaywire.com/v1/reviews. The public feed is https://api.agentpaywire.com/reviews.json.
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": {
"rating": "<rating>",
"route": "<route>",
"proof": "<proof>"
},
"name": "submit_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proof | Yes | Payment proof. x402 uses network and tx_hash. l402 uses payment_hash and preimage. | |
| route | Yes | Required paid route: /v1/search, /v1/updates, /v1/digest, or /v1/changes. | |
| rating | Yes | Required integer from 1 to 5. | |
| comment | No | Optional plain text, at most 500 characters. No HTML. Stored as untrusted data. | |
| signature | No | x402 only. EIP-712 signature, 0x plus 130 hex characters, from the payer. | |
| timestamp | No | x402 only. Unix seconds covered by the signature. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| payer | Yes | ||
| route | Yes | ||
| rating | Yes | ||
| self_test | Yes |