Skip to main content
Glama

AfriRate MCP

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AfriRate. If you published it, claim ownership there.

Compare one pair across sources and countries

compare_corridor
Read-only

Compare 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

NameRequiredDescriptionDefault
baseYesBase currency, e.g. USD
quoteYesQuote currency, e.g. KES
countriesNoRestrict to these countries’ sources. Omit to compare every source publishing the pair.

Output Schema

NameRequiredDescriptionDefault
baseYes
bestNo
countYes
quoteYes
worstNo
errorsYes
quotesYes
spread_pctYes
unavailableYes
single_sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only and open-world safety, and the description adds real operational context the annotations cannot: a 10-per-minute upstream budget, one request per named country versus two total when omitted, and the single-publisher fallback behavior. Rate-limit and cost disclosure is exactly the kind of beyond-annotation value that matters here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core comparison, then the rationale, then the edge case, then cost. Every sentence carries information, though the "This is what 28-country coverage is actually for" framing is slightly editorial for a tool definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need no explanation; the description covers what remains — scope, degenerate single-source results, and request-cost behavior — so an agent can call it correctly and predict the bill.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by quantifying the cost of the optional countries array (one upstream request each against a 10/min budget) rather than merely restating that omission compares all sources.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — comparing one currency pair across every publishing source, optionally across countries — and specifies the output (best, worst, spread). That distinguishes it from single-rate siblings such as get_rate or convert without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete motivating use case ("where is this corridor cheapest" in one call instead of twenty) and explains the degenerate single-source case so the agent knows what a non-spread result means. It does not explicitly name a sibling to use instead for simple lookups, leaving that inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources