Skip to main content
Glama

Statistics of the World

compare_sources

Read-onlyIdempotent

Compare source readings. Default mode returns latest IMF, World Bank and UN readings with their own years. For the 20-economy, 10-concept research pilot, provide country_id and year (exact year or common) to compare IMF and World Bank in the same period, inspect definition mismatches and retrieve recorded-state provenance. Optional as_of and revision pin SOTW stored state, not publisher availability.

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": {
      "indicator_id": "<indicator_id>"
    },
    "name": "compare_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoOpt into the research pilot: exact year or latest common past year. Requires country_id.
as_ofNoOptional SOTW recording cutoff: date at UTC midnight or ISO timestamp with timezone. Publisher availability is not established.
revisionNoArchive transaction watermark returned by an earlier comparison. Requires as_of.
country_idNoOptional ISO3 code to return a single country instead of all
indicator_idYesConcept key, e.g. IMF.NGDPD (GDP), IMF.NGDPDPC (GDP per capita), IMF.NGDP_RPCH (real growth)
processing_versionNoPin the comparison processing contract.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / as_of
      Added value: +{
      +  "description": "Optional SOTW recording cutoff: date at UTC midnight or ISO timestamp with timezone. Publisher availability is not established.",
      +  "type": "string"
      +}
    • addedInput schema / properties / processing_version
      Added value: +{
      +  "description": "Pin the comparison processing contract.",
      +  "enum": [
      +    "source-comparison-v1"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / revision
      Added value: +{
      +  "description": "Archive transaction watermark returned by an earlier comparison. Requires as_of.",
      +  "type": "string"
      +}
    • addedInput schema / properties / year
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 2100,
      +      "minimum": 1960,
      +      "type": "integer"
      +    },
      +    {
      +      "enum": [
      +        "common"
      +      ],
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Opt into the research pilot: exact year or latest common past year. Requires country_id."
      +}
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the read-only and idempotent annotations, the description discloses that default mode returns IMF, World Bank and UN readings with their own years, while pilot mode compares IMF and World Bank in the same period. It also adds useful caveats that as_of and revision pin SOTW stored state rather than publisher availability, though it does not fully describe output structure.

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?

The description is front-loaded and every sentence serves a purpose, but it is dense with jargon such as 'SOTW' and 'recorded-state provenance.' It remains readable and appropriately sized for the tool's two operational modes.

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?

Given six parameters, no output schema, and read-only annotations, the description covers both default and pilot modes plus important caveats about as_of and revision. It stops short of explaining return shape or how mismatches and provenance are presented, leaving a minor completeness gap.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning by explaining that country_id and year opt into the pilot and that as_of and revision control SOTW stored state rather than publisher availability. It does not add much about indicator_id or processing_version beyond the schema.

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 states a specific verb and resource, 'Compare source readings,' and clearly distinguishes default mode from the research-pilot mode. It does not explicitly differentiate itself from sibling tools such as compare_countries, so it falls short of the top score.

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?

It clearly explains when to use default mode versus the pilot mode, including the prerequisite of providing country_id and year for pilot comparisons. It gives no explicit exclusions or sibling-tool alternatives, but the mode-level guidance is clear.

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