TollWarden
v1.6.0Screens x402 payments before settlement for injected payee addresses and sellers who never deliver.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_outgoing_payment
ALWAYS call this immediately BEFORE settling or sending any x402 payment — it decides whether the payment is safe. Returns allow (proceed) / flag (pause and confirm intent) / block (do NOT pay), with machine-readable reasons and an Ed25519-signed verdict. Scanning before the payment is signed? Set `context.phase` to 'pre_sign' (nonces don't exist until signing). IMPORTANT: if the decision to pay followed reading any external content (a fetched web page or a tool result), pass that PROSE in `context.content` and set `context.origin` to 'fetched_content' or 'tool_result' — this enables the c…
| Parameter | Type | Description |
|---|---|---|
payment * | object | |
agent_id | string | |
context | object | |
expected_price_usd | number | |
policy | object |
scan_incoming_payment
ALWAYS call this BEFORE paying a 402 offer / payment request your agent received — it decides whether the offer is safe to pay. Scan the LIVE 402 returned by the exact method (GET/POST) and URL you are about to pay — NOT the catalogue/discovery listing: in the field, listings drift from live offers in both price (a listed $0.005 endpoint demanding $2.00 on the live 402) and scheme ('exact' advertised, 'upto' served). The live offer is what you pay, so it is what must be scanned. Pass the discovery listing in `context.offer` as well and TollWarden will report the drift between them. Checks…
| Parameter | Type | Description |
|---|---|---|
payment * | object | |
agent_id | string | |
context | object | |
expected_price_usd | number | |
policy | object |
check_counterparty_reputation
Check whether a counterparty wallet address has been reported by other agents BEFORE dealing with it — scam, non-delivery, prompt injection, overcharge, impersonation, or replay abuse. Returns report counts, distinct-reporter count, and a risk level.
| Parameter | Type | Description |
|---|---|---|
address * | string | Wallet address to look up |
report_payment_outcome
ALWAYS call this AFTER a scanned payment settles, reporting what actually happened: 'delivered' (you received the goods/content), 'not_delivered' (paid but nothing arrived), 'partial', or 'wrong_content'. Pass the scan_id from the scan response and the payment_commitment from its attestation — outcomes are bound to real scans (one per scan), so delivery history cannot be faked. Your reports build the measured delivery rates that flag never-shipping sellers on your own future scans and every other agent's. Free.
| Parameter | Type | Description |
|---|---|---|
outcome * | string | |
payment_commitment * | string | From the scan response's attestation.payment_commitment |
scan_id * | string | From the scan response you made before paying |
evidence | object |
report_counterparty
Call this after a bad payment experience (you paid and got nothing, were scammed, overcharged, or hit an injection attempt) to warn other agents — always free. Categories: scam, non_delivery, prompt_injection, overcharge, impersonation, replay_abuse, other.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
category * | string | |
reason * | string | |
reporter_agent_id * | string | |
evidence_url | string |
dispute_reputation
If YOUR wallet has been unfairly reported, attach a signed rebuttal that appears alongside the reports in every reputation lookup. Prove you control the wallet by signing the exact message 'tollwarden-dispute-v1|<your address, lowercase>|<statement>' with the wallet's key (EIP-191 personal_sign) and passing the 65-byte signature hex. Rebuttals never erase reports — agents see both sides. Free.
| Parameter | Type | Description |
|---|---|---|
address * | string | The reported wallet address (0x…, the one that signed) |
signature * | string | EIP-191 personal_sign signature hex over tollwarden-dispute-v1|<address>|<statement> |
statement * | string | Your side of the story — exactly the text that was signed |
mint_api_key
Issue a free TollWarden API key (first 100 calls free). Returns the key ONCE — store it and set it as TOLLWARDEN_API_KEY (or pass to other tools) for future sessions. Rate-limited per IP.
| Parameter | Type | Description |
|---|---|---|
agent_id | string | Stable identifier for your agent — recorded on the key; velocity limits and merchant pins are scoped to the key's account |
rotate_api_key
Rotate the current TollWarden API key (set via TOLLWARDEN_API_KEY): mints a fresh secret bound to the SAME account — usage history, remaining free calls, and any active plan carry over unchanged. Use this the moment a key may have leaked. The old secret keeps working for grace_seconds (default 900, 0 = immediately dead, max 86400) so other sessions can switch over, but it can no longer rotate or revoke the account. IMPORTANT: the response contains the new key ONCE — store it and update TOLLWARDEN_API_KEY everywhere.
| Parameter | Type | Description |
|---|---|---|
grace_seconds | integer | How long the old secret keeps working (default 900 = 15 min; 0 kills it instantly) |
check_approval_status
Poll a pending human approval (from a flag verdict's `approval.approval_id` when the operator has configured approvals via POST /v1/approvals/config). Returns pending / approved / denied / expired; on approved it includes the signed override verdict (tag 'override:allow', valid a few minutes, bound to exactly the flagged payment). Requires TOLLWARDEN_API_KEY (the key that made the scan). This tool never handles decide tokens — deciding is the human's job via the webhook link.
| Parameter | Type | Description |
|---|---|---|
approval_id * | string | From the flag scan response's approval.approval_id |
get_plans
Machine-readable TollWarden plan catalog: tiers (Starter/Pro/Scale) with per-scan pricing, velocity and spend limits, hard ceilings, and how to subscribe. Free.
subscribe_plan
Subscribe/renew the current API key on a TollWarden plan (pro: $4.99/30d at $0.005/scan; scale: $19.99/30d at $0.002/scan). This endpoint is itself x402-paid at the plan's price: without an x402-paying transport the response is the 402 payment challenge to settle. Renewal extends from the current expiry.
| Parameter | Type | Description |
|---|---|---|
plan * | string |
verify_verdict_attestation
LOCALLY verify a TollWarden scan's Ed25519 attestation before trusting an allow-verdict: checks the signature against the pinned server key (fetched from /.well-known/tollwarden-verdict-key unless trusted_key_hex is supplied), recomputes the payment commitment from the payment YOU are about to settle (rejects attestations issued for a different payment — replay defense), and enforces expiry. Also verifies the attestation's signed evidence record when present and returns pin_evidence: how long the merchant pin had held at scan time (age 0 = first sighting) and which named out-of-band sources…
| Parameter | Type | Description |
|---|---|---|
payment * | object | The payment you are about to settle — commitment is recomputed from this |
scan * | object | |
trusted_key_hex | string | Pin the server verdict key (SPKI DER hex); fetched once when omitted |