Skip to main content
Glama

AgentStall: Africa and global data for agents

Languages spoken by country: share of population, speakers and official status (249 countries)

country_languages_lookup
Read-onlyIdempotent

Languages spoken by country: every language with its share of the population, approximate speakers and official status (official, de facto, regional) for 249 countries and territories, incl. all 54 African countries (e.g. Nigeria 17 languages, Kenya 19) and India (48). Also population and literacy. Source: Unicode CLDR 48.2 territory data. For localisation, translation and support planning. Returns JSON with asOf, count, results. Read-only; invalid input is rejected before any charge. Price: $0.001 USDC per call (x402, Base mainnet), paid only when the call succeeds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
countryNoOptional 2-letter ISO country codes, comma-separated, up to 60 (default: all 249 countries and territories)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, so the bar is lower; the description still adds real behavior: the CLDR source and vintage, the JSON envelope (asOf, count, results), rejection of invalid input before charging, and per-call x402 pricing charged only on success. A missing piece is whether there is pagination or truncation when returning all 249 territories.

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?

One dense paragraph, front-loaded with what the tool returns, followed by source, use case, response shape, safety and price — a sensible order. Some weight is spent on illustrative counts (Nigeria 17, Kenya 19, India 48) and payment mechanics that, while useful, push it toward marketing density.

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

Completeness4/5

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

With no output schema, the description compensates by naming the response keys and per-language fields, and it covers source, cost, and failure behavior. It is nearly complete for a single optional-parameter read tool; only result-size limits when omitting the country filter are unaddressed.

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

Parameters3/5

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

Schema coverage is 100% and the single country parameter is fully documented in the schema (2-letter ISO, comma-separated, up to 60, default all). The description adds only coverage framing ("249 countries and territories") and no format or edge-case detail beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description names a specific resource (languages spoken by country) and enumerates the returned attributes — share of population, approximate speakers, official status — plus coverage (249 countries, CLDR 48.2). It does not explicitly contrast with the nearby country_info_lookup sibling, so an agent must infer that this is the language-specific variant rather than the general country profile.

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

Usage Guidelines3/5

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

It gives a use context ("For localisation, translation and support planning") but never states when to choose this over country_info_lookup or when not to call it. The default-all-countries behavior is implied by the title/schema rather than spelled out as guidance.

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