```mermaid
flowchart LR
  A["Agent: tools/call check_lipa<br/>remit.paymentrequired.com/mcp"] --> V["validate()<br/>tools.js"]
  V --> D["callTool check_lipa<br/>mcp.js"]
  D --> E["engine.checkLipa"]
  E --> CP(("ClickPesa"))
```

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

Merchant name, provider, fees and crypto prices for `amountTZS` + (`lipaNamba` + `providerCode`) or `qrCode`. Free.

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

## Actions / operations

| action | what happens | effect | source |
|---|---|---|---|
| `check_lipa` | Check a merchant (Lipa Namba or TanQR) | read | [`remit:src/mcp.js:270`](https://github.com/nuri-com/nuri-clickpesa-remit-mcp/blob/212886c7eedfa314f7de790622ea95632630057b/src/mcp.js#L270) |

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

**check_lipa**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "check_lipa",
    "arguments": {
      "amountTZS": 5000,
      "lipaNamba": "48001268",
      "providerCode": "503"
    }
  }
}
```

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

```json
{"ok":true,"amountTZS":5000,"destination":{"type":"lipa_namba",…},"merchantName":"…","provider":"…","feeTZS":…,"quote":[…]}
```

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

UNVERIFIED: not called by this handbook.
