Skip to main content
Glama

Interva

Compare publishers of one measure

compare_sources
Read-onlyIdempotent

Every publisher's series for one concept and geography, side by side.

**Read the comparability field before comparing numbers.** Two publishers
can measure the same concept and still not be interchangeable:

  `identical`              — safe to difference or chart together.
  `comparable_with_caveat` — same concept, methodological difference; the
                             per-series `caveat` says what it is (e.g. the
                             World Bank reports mid-year population while
                             Eurostat reports 1 January).
  `related_only`           — same subject, NOT comparable. World Bank and
                             Eurostat both publish GDP, but in different
                             currencies on a different price basis; do not
                             chart them on one axis or compute a difference.

The top-level `comparability` is the weakest verdict among the series.

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

Input Schema

NameRequiredDescriptionDefault
endNoLast period to include, e.g. '2023'. Omit for the latest.
startNoFirst period to include, e.g. '2010' or '2010-01'. Omit for the start of the series.
conceptYesA concept id from list_concepts, e.g. 'population' or 'gdp-per-capita'.
geographyYesA country: ISO alpha-3 or alpha-2 code, or a name in common use ('Nigeria', 'UK', 'Korea, Rep.', 'Ivory Coast').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / concept / description
      Added value: +"A concept id from list_concepts, e.g. 'population' or 'gdp-per-capita'."
    • addedInput schema / properties / end / description
      Added value: +"Last period to include, e.g. '2023'. Omit for the latest."
    • addedInput schema / properties / geography / description
      Added value: +"A country: ISO alpha-3 or alpha-2 code, or a name in common use ('Nigeria', 'UK', 'Korea, Rep.', 'Ivory Coast')."
    • addedInput schema / properties / start / description
      Added value: +"First period to include, e.g. '2010' or '2010-01'. Omit for the start of the series."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real semantic substance the annotations cannot: the three-tier comparability vocabulary, the per-series `caveat` field, and the rule that top-level `comparability` is the weakest verdict across series. This is meaningful context, though it says nothing about provenance fields, coverage gaps, or whether raw values are returned.

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?

Opens with a single front-loaded sentence, then bolds the one instruction that matters, then presents the tiers in a scannable list with concrete World Bank/Eurostat examples. The examples cost length but earn it by making the non-comparability rule actionable; the trailing sentence about the top-level field is slightly out of place but short.

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?

For a read-only, no-output-schema tool with fully described parameters, the description covers the interpretive risk that a schema cannot — how to tell whether numbers may legitimately be compared. It leaves unclear whether the response includes data values or only series metadata, which is the one thing an agent must still guess.

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 each parameter already carries a description with examples, so the schema does the heavy lifting. The description only restates the concept/geography axis and adds no format or boundary guidance beyond it. Baseline 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?

States a specific resource — every publisher's series for one concept and geography — and the side-by-side framing makes the comparative intent concrete. An agent can distinguish it from a single-series fetch, though no sibling is named explicitly.

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?

Gives an important usage rule ('Read the comparability field before comparing numbers') and warns against charting `related_only` series together, but never says when to pick this tool over get_series, find_related_series, or build_panel. Usage context is implied rather than routed.

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