Quote the toll (free price probe)
naulon_quoteProbe the real x402 toll for a source WITHOUT paying — the free 402 price check. Returns the author price, the buyer's true total (when the publisher adds extra settlement legs such as an operator fee, the total is higher than the author price), and the settlement terms. gated:false means one thing only — the origin answered 2xx, so it is a genuinely free read you may just fetch. Anything else returns refused:true with the reason in note: a refusal to reach the url (off-gate identity, or operator policy such as a kill-switch or deny-list), a 404, an unreachable origin, or a malformed 402. A refused url is NEITHER payable nor free — do not fetch it and do not report it as free; retry or fix the url.
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": {
"slug": "<slug>"
},
"name": "naulon_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Canonical URL from naulon_discover (the source's real link). When present it is probed VERBATIM; absent, the slug is reconstructed to the /essays/<slug> template. | |
| slug | Yes | Source slug from naulon_discover. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Present only for a multi-leg toll (e.g. author + operator fee). | |
| note | No | ||
| asset | No | ||
| gated | No | True if the source requires payment; false if it is a free read. Absent on a refusal (see refused). | |
| payTo | No | The author payee address. | |
| network | No | ||
| refused | No | True when this url is NEITHER payable NOR free, so there is nothing to act on: the server refused to reach it (off-gate identity, or operator policy such as a kill-switch / deny-list), the path was not found (404), the origin was unreachable, or the gate answered a malformed 402. The reason is in note; do NOT fetch it, and do NOT treat it as free. Mutually exclusive with a gated/free result. | |
| priceUsdc | No | The author leg price in USDC. | |
| totalUsdc | No | The buyer's true total across all settlement legs. | |
| settlement | Yes | The chain + token the toll settles on. Check settlement.testnet before calling a price real money. | |
| amountAtomic | No | The author amount in atomic units (micro-USDC string). | |
| refusedReason | No | WHY it was refused, always present when refused is true. `policy` — we would not even probe it (off-gate identity, kill-switch, deny-list): the url is out of bounds, so do not retry it. `not_found` — the path is wrong; re-quote with the canonical url from naulon_discover. `unreachable` — the origin or gate is down; the url may be fine, so retry later. `malformed` — the gate answered a 402 we cannot read; it is misconfigured, and retrying will not help. Two of these are the caller's to fix and two are not, which is why this is a field and not prose. |