floprouter-mcp
v0.2.1MCP server for the floprouter API: FLOP Network models and miners, paid chat completions, sessions, balance and grants for AI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models List models
Models in the FLOP on-chain registry: how many miners can serve each right now, the escrow per 1,000 tokens of prompt + max_tokens (FLOP), the minimum charge per request and the largest request served.
| Parameter | Type | Description |
|---|---|---|
only_available | boolean | Only models with at least one ready miner |
list_miners List miners
Registered FLOP miners with the router's reliability score (0-100), rank and the public on-chain facts behind it (settle rate, sessions, strikes, calibration), plus whether the router can reach them now.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Default 20 |
min_score | number | |
model | string | Model id, for example qwen/qwen3-8b |
offset | integer | |
reachable | boolean | Only miners whose session URL the router has verified and can reach |
ready | boolean | Only miners that are ready to serve right now |
sort | string |
get_miner Inspect a miner
One miner in detail: score, on-chain history, stake, calibration, slashing, models with evidence, endpoints and recent channels.
| Parameter | Type | Description |
|---|---|---|
address * | string | Miner SS58 address |
chat Chat completion (paid)
Send one chat completion to a FLOP miner through floprouter and get the reply. Spends FLOP. Leave `miner` empty to let the router pick the most reliable ready miner, or pin one or more miner addresses. Returns the reply text plus the session id, miner, escrow and payer. Tools/function calling are not supported by the network.
| Parameter | Type | Description |
|---|---|---|
model * | string | Model id from list_models, for example qwen/qwen3-8b |
allow_fallbacks | boolean | When pinned, allow other miners if the pinned ones fail. Default false when pinned |
fallback_models | array | Models to try next, in order, if no miner serves `model` (the API's `models` list) |
fallback_payer | string | In grant mode, run in credit mode when no miner has a live signed offer |
max_tokens | integer | Default set by the router (256). The escrow, and so the cost, follows max_tokens |
messages | array | Full conversation in OpenAI format (use this or prompt) |
miner | Pin to this miner address (or try these in order) | |
payer | string | Override the key's payer mode for this request |
prompt | string | A single user message (use this or messages) |
system | string | System prompt, used with prompt |
wait_for_settlement | boolean | After the reply, poll until the on-chain settlement is final (2-5 minutes; only for clients without a tool timeout). Default false: return as soon as the reply is verified and check later with session… |
session_status Session status
Settlement state of a chat session: status (settling, settled, refunded, failed...), channel id, miner, escrow, amount paid to the miner, attempts and explorer links.
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
generation Generation stats
One request by its id (gen-...): tokens, cost in FLOP (final once settled), finish reason, latency, the verified reply, and the session. Needs the key of the wallet that made it.
| Parameter | Type | Description |
|---|---|---|
id * | string | The generation id returned by chat (same as the session id) |
account Balance, key and grant
The calling wallet's prepaid FLOP balance (available, held, deposit address, fee, recent ledger entries, withdrawals), this API key's usage in FLOP and rate limits, the state of its on-chain session-key grants (compute and fee grant by `kind`), and the router fees (`fees`: mode, accrued, collected, owed, last collection). In the default deposit-free mode the router collects its fee from the wallet through the fee grant, so no prepaid balance is needed. Needs an API key.
grant_status Grant status
The session-key grant that lets the router open channels paid by the user's wallet: state, expiry, days left, spending cap and today's room left, and whether renewal is due (under 2 days left or nearly used up). Also the router fees (`fees`: accrued, collected, owed) and the fee grant that pays them. Tell the user when renewal is due: only their wallet can sign a new grant (`floprouter grant`, one signature for both grants).
withdraw Withdraw prepaid balance
Send prepaid FLOP from the router balance back to the wallet that owns this API key (the only destination the API allows). The chain fee is taken out of the amount. Only use when the user asks for it.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Decimal FLOP, or "all" for the whole available balance |
router_status Router status
Network, sync state, number of miners and verified endpoints, and which wallet pays for sessions.