Skip to main content
Glama

IEA energy statistics for one country and one indicator

energy_iea_energy_statistics_api
Read-only

IEA (International Energy Agency) energy statistics for one country and one indicator (default CO2BySource: CO2 emissions by fuel and product, MtCO2), from the public IEA stats API. Returns the latest year(s) in the source. Indicator list is the IEA catalogue; not every indicator has data for every country. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": "energy_iea_energy_statistics_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoHow many latest years to return, 1 to 5 (default 1)
countryNoIEA country code (3 letters), e.g. USA
indicatorNoIEA indicator id, e.g. CO2BySource (default)

Output Schema

NameRequiredDescriptionDefault
yearsNo
sourceNo
countryNo
recordsNo
checkedAtNo
indicatorNo
latestYearNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already cover read-only and open-world behavior. The description adds meaningful context beyond them: it returns latest year(s), the indicator catalogue may lack country coverage, and each successful call costs $0.002 via x402 while failed calls are free. It does not discuss rate limits or response shape, but the output schema covers returns.

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, then moves through default behavior, return horizon, availability caveat, and pricing. It is dense but efficient, with no clearly redundant sentences.

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, open-world statistics tool with three optional parameters and an output schema, the description covers purpose, defaults, data availability caveats, and payment behavior. It lacks explicit routing to alternative tools, but otherwise provides what an agent needs to invoke it correctly.

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 all three parameters are documented in the schema. The description adds value by explaining the default indicator's meaning (CO2 emissions by fuel and product, MtCO2), that years controls how many latest years are returned, and that indicator coverage varies by country.

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 operation: retrieve IEA energy statistics for one country and one indicator, naming the default indicator and source. It does not explicitly distinguish this tool from other energy-data siblings, so it falls short of a 5.

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 explains scope constraints such as one country and one indicator, the default indicator, and that not every indicator has data for every country. However, it does not say when to use this tool versus other energy datasets or when not to use it, leaving usage guidance implied.

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