```mermaid
flowchart LR
  A["Agent: tools/call route_price<br/>remit.paymentrequired.com/mcp"] --> V["validate()<br/>tools.js"]
  V --> D["callTool route_price<br/>mcp.js"]
  D --> P["router.priceOf(url)<br/>cap ROUTER_MAX_USD default 0.5"]
  P --> T(("external x402 service"))
```

# `route_price` (Remit)

[← Index](../index.md) · [Overview](../overview.md) · [Signer](../signer.md) · [Issued links](../links.md)

> Evidence labels: **CODE** = read in the cited file at the recorded revision/hash; **FIXTURE** = parent-accepted combined cloud fixture run 99/99 (`directory-wave/parent-directory-wave-acceptance.json`), not live; **LIVE-RO** = observed read-only on the live host 2026-10-14 (raw files in `evidence/live-probes/`); **UNVERIFIED** = not executed here. Topology = accepted directory-wave source, **not deployed**. Nothing in this handbook moved money, signed, or activated a card.

## What it does

Reads the price of an external x402 service (url, optional method GET/POST, body) and returns what the target wants plus what you pay through the router (markup, cap). No funds move. Local/private network addresses are refused.

**Catalog:** remit.paymentrequired.com/mcp (own MCP, independent). **Schema & dispatch:** Definition [`remit:src/tools.js:19`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/tools.js#L19); dispatch [`remit:src/mcp.js:476`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/mcp.js#L476)

## Actions / operations

| action | what happens | effect | source |
|---|---|---|---|
| `route_price` | Quote for an external x402 service | read | [`remit:src/mcp.js:476`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/mcp.js#L476) |

## Prerequisites

No account, registration or API key (instructions text). 

## How to use it (exact `tools/call` JSON)

Endpoint: `POST https://remit.paymentrequired.com/mcp` (JSON-RPC 2.0). Placeholders in `<…>` are never real values; secrets (`session`, `wallet_key`) are never pasted into docs or logs.

**route_price**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "route_price",
    "arguments": {
      "url": "https://example.com/paid"
    }
  }
}
```

Expected result (`structuredContent`, shape from code; values illustrative):

```json
{"free":false,"targetWants":{"amount":"0.010000","asset":"USDC","network":"…"},"youPay":{"atomic":…,"usd":"0.011000"}}
```

Plain-JSON form (same handler): `POST /mcp` with `{"tool":"route_price", …arguments}`; a payment request then comes back as HTTP 402 ([`remit:src/mcp.js:799`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/mcp.js#L799)).

## Approval, signature and money

No approval or signature; no money moves.

## Failure, peer-down and retry

`above_limit` when the price exceeds the router cap ([`remit:src/router.js:53`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/router.js#L53)); `target_unreachable` otherwise. Repeat freely.

## What was actually observed

UNVERIFIED: not called by this handbook.
