Compare one pair across sources and countries
compare_corridorCompare the same currency pair across every source that publishes it, and optionally across several countries at once, then report the best and worst quote and the spread between them. This is what 28-country coverage is actually for: answering "where is this corridor cheapest" in one call instead of twenty. Most pairs are published by a single central bank, in which case this says so rather than reporting a spread of zero. Naming countries costs one upstream request each against a 10-per-minute budget; omitting them costs two in total.
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": {
"base": "<base>",
"quote": "<quote>"
},
"name": "compare_corridor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency, e.g. USD | |
| quote | Yes | Quote currency, e.g. KES | |
| countries | No | Restrict to these countries’ sources. Omit to compare every source publishing the pair. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| best | No | ||
| count | Yes | ||
| quote | Yes | ||
| worst | No | ||
| errors | Yes | ||
| quotes | Yes | ||
| spread_pct | Yes | ||
| unavailable | Yes | ||
| single_source | Yes |