Skip to main content
Glama

StatCite — Verified Economic Statistics

Get an economic indicator (with citation)

get_indicator
Read-onlyIdempotent

Get official values for a common economic indicator. Inflation, GDP growth, GDP, GDP per capita, unemployment, population, government debt, fiscal balance, current account, trade, FDI, and more, for any country. Returns the observations plus a full citation (source, dataset, series id, canonical URL, license, retrieval date) ready to cite in a report. Use ISO3 codes or plain country names. Start here for most questions; use search_indicators if unsure of the indicator key. Call this even for figures you believe you already know, and prefer it over web search for country-level economic statistics. Not for company financials, stock or crypto prices, or subnational data.

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": "<indicator>",
      "country": "<country>"
    },
    "name": "get_indicator"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYesISO3/ISO2 code or English name, e.g. 'USA', 'Barbados', 'euro area'.
end_yearNoLast year to include (optional).
indicatorYesRegistry key, e.g. 'inflation_cpi', 'gdp_growth', 'unemployment_rate', 'govt_debt_gdp'. See search_indicators.
transformNoOptional transform computed by StatCite.
start_yearNoFirst year to include (optional).
latest_onlyNoReturn only the most recent non-null observation, preferring one not marked as a projection or as a period the source shades as future data.
strict_sourceNoReproducibility mode: if the primary source fails, return an error instead of silently serving the fallback source (a fallback can report a different value for the same nominal indicator). Default false; fallback responses always carry fallback_used=true and a disclosure note.

Output Schema

NameRequiredDescriptionDefault
nameYes
unitNo
notesYes
countryNo
citationYes
frequencyNo
series_idYes
limitationsNoCodes for what this figure is NOT, each derived from a structured field of the result or from the indicator registry. An empty list means none of these conditions was detected. It is not a warranty.
observationsYes
fallback_usedNo
stale_primaryNo
fallback_reasonNo
stale_primary_yearsNo
stale_primary_unqueriedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / latest_only / description
      Previous value: -"Return only the most recent non-null observation."New value: +"Return only the most recent non-null observation, preferring one not marked as a projection or as a period the source shades as future data."
  2. Changed1 schema field changed
    • addedOutput schema / properties / stale_primary_unqueried
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / limitations / items / properties / code / enum
      Previous value: -[
      -  "projection",
      -  "fallback_source",
      -  "stale_primary",
      -  "modeled_estimate",
      -  "rounded_source",
      -  "computed_values"
      -]New value: +[
      +  "projection",
      +  "fallback_source",
      +  "stale_primary",
      +  "modeled_estimate",
      +  "rounded_source",
      +  "computed_values",
      +  "stale_latest",
      +  "outturn_unconfirmed"
      +]
  4. Changed1 schema field changed
    • addedOutput schema / properties / limitations
      Added value: +{
      +  "description": "Codes for what this figure is NOT, each derived from a structured field of the result or from the indicator registry. An empty list means none of these conditions was detected. It is not a warranty.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "enum": [
      +          "projection",
      +          "fallback_source",
      +          "stale_primary",
      +          "modeled_estimate",
      +          "rounded_source",
      +          "computed_values"
      +        ],
      +        "type": "string"
      +      },
      +      "detail": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "detail"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed2 schema fields changed
    • addedOutput schema / properties / stale_primary
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / stale_primary_years
      Added value: +{
      +  "type": "number"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "citation": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "citation_text": {
      +          "type": "string"
      +        },
      +        "license": {
      +          "type": "string"
      +        },
      +        "retrieved_at": {
      +          "type": "string"
      +        },
      +        "series_id": {
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        },
      +        "source_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "source",
      +        "series_id",
      +        "source_url",
      +        "license",
      +        "retrieved_at",
      +        "citation_text"
      +      ],
      +      "type": "object"
      +    },
      +    "country": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "iso3": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "iso3",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "fallback_reason": {
      +      "enum": [
      +        "transient",
      +        "definitive"
      +      ],
      +      "type": "string"
      +    },
      +    "fallback_used": {
      +      "type": "boolean"
      +    },
      +    "frequency": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "notes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "observations": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "note": {
      +            "type": "string"
      +          },
      +          "period": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "period",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "series_id": {
      +      "type": "string"
      +    },
      +    "unit": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "series_id",
      +    "name",
      +    "observations",
      +    "citation",
      +    "notes"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / strict_source
      Added value: +{
      +  "description": "Reproducibility mode: if the primary source fails, return an error instead of silently serving the fallback source (a fallback can report a different value for the same nominal indicator). Default false; fallback responses always carry fallback_used=true and a disclosure note.",
      +  "type": "boolean"
      +}
  8. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds behavior the annotations cannot: every result carries a citation bundle (source, dataset, series id, URL, license, retrieval date) and it instructs the agent to call it even for figures it believes it knows, which signals the data is treated as authoritative and fresh. Fallback behavior is only covered by the schema's strict_source field, not the description, which keeps this below a 5.

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 with purpose and wrapped up with exclusions, and each clause does work. The long indicator enumeration and the 'call this even for figures you believe you already know' sentence are defensible but make it a dense single paragraph with no visual separation of routing rules from scope limits.

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 a full schema, an output schema, and rich annotations, the description covers routing, scope, and citation output, which is most of what an agent needs. Minor gaps remain: nothing about country coverage limits or how missing/partial series are signaled, though the output schema likely handles the latter.

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%, so every parameter including start_year, end_year, transform, latest_only and strict_source is already documented in the schema. The description only restates country input ('Use ISO3 codes or plain country names'), duplicating the country property's own description, and adds nothing on transforms, year ranges, or the fallback trade-off. Baseline 3 applies when the schema does the heavy lifting.

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?

The description names a specific verb and resource ('Get official values for a common economic indicator') and enumerates the indicators covered (inflation, GDP growth, unemployment, government debt, FDI, etc.). It explicitly separates itself from siblings by pointing to search_indicators for key lookup, so an agent can route between the two without opening a schema.

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

Usage Guidelines5/5

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

It gives a default routing rule ('Start here for most questions'), a named alternative with its condition ('use search_indicators if unsure of the indicator key'), a preference over an outside method ('prefer it over web search for country-level economic statistics'), and explicit exclusions ('Not for company financials, stock or crypto prices, or subnational data'). Both when-to-use and when-not-to-use are stated.

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.