```mermaid
flowchart LR
  A["Agent: tools/call zapremit_rates<br/>remit.paymentrequired.com/mcp"] --> V["validate()<br/>tools.js"]
  V --> D["callTool zapremit_rates<br/>mcp.js"]
  D --> Z["zapremit.rates()"]
  Z --> ZR(("ZapRemit API"))
```

# `zapremit_rates` (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

Reference BTC exchange rates from ZapRemit.

**Catalog:** remit.paymentrequired.com/mcp (ZapRemit sub-catalog). **Schema & dispatch:** Definition [`remit:src/zapremit-tools.js:36`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/zapremit-tools.js#L36); dispatch [`remit:src/zapremit.js:557`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/zapremit.js#L557)

## Actions / operations

| action | what happens | effect | source |
|---|---|---|---|
| `zapremit_rates` | ZapRemit BTC rates | read | [`remit:src/zapremit.js:557`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/zapremit.js#L557) |

## Prerequisites

No account, registration or API key (instructions text). ZapRemit must be configured on the server, otherwise 503 `provider_unavailable`.

## 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.

**zapremit_rates**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zapremit_rates",
    "arguments": {}
  }
}
```

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

```json
{"provider":"zapremit","BTC":{"USD":…,"PHP":…,…}}
```

Plain-JSON form (same handler): `POST /mcp` with `{"tool":"zapremit_rates", …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

Stateless read; repeat freely. Provider errors are returned as JSON-RPC error -32602 with `data.code`.

## What was actually observed

LIVE-RO 2026-10-14T18:10Z @212886c: answered; keys `BTC, provider`.
