Skip to main content
Glama

IRENA — Renewable Electricity Generation by Country

irena.energy.generation_country
Read-onlyIdempotent

Query electricity generation (GWh) by energy technology for any country from the IRENA IRENASTAT database. Covers 226 countries and territories, 21 technologies including Total renewable, Solar PV, Onshore and Offshore wind, Renewable hydropower, Bioenergy subcategories, Geothermal, Marine energy, and Total non-renewable. On-grid, off-grid, or combined. Annual data from 2000 to 2024. Essential for energy transition analysis, NDC tracking, and climate policy research.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryYesISO 3166-1 alpha-3 country code (e.g. USA, DEU, CHN, IND, BRA). Must be exactly 3 letters.
year_toNoEnd year (inclusive, 2000–2024, must be ≥ year_from). Default: 2024.
year_fromNoStart year (inclusive, 2000–2024). Default: 2020.
technologyNoEnergy technology to query. Default: "Total renewable". Options: Total renewable, Solar photovoltaic, Onshore wind energy, Offshore wind energy, Renewable hydropower, Bioenergy subcategories, Geothermal energy, Total non-renewable, etc.
grid_connectionNoGrid connection type. Default: "OnGrid".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and idempotentHint=true, covering safety and repeatability. The description adds context about data coverage (226 countries, 2000-2024, grid options) but doesn't disclose any additional behavioral traits like rate limits, authentication, or response aggregation behavior. With annotations carrying the main safety burden, this is adequate.

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 moderately sized but front-loaded with the core purpose. The list of technologies is somewhat verbose but informative. It is well-structured, moving from action to scope to use cases, and contains no filler.

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 an output schema present and strong annotations, the description covers the essential aspects: what is queried, the data range, grid options, and the intended use cases. It doesn't explicitly describe how results are formatted or paginated, but the output schema likely handles that. It is complete enough for an agent to correctly invoke the tool.

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 description coverage is 100%, so all parameters are well-documented. The description adds some context, such as the list of technologies and grid connection options, but these are largely redundant with the schema enums. It does not add extra meaning like units, examples of valid country codes, or citation requirements beyond what the schema provides.

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 states a specific verb ('Query'), a clear resource ('electricity generation (GWh)'), and a scoping dimension ('by energy technology for any country'). It distinguishes itself from sibling tools like irena.energy.capacity_country (capacity vs. generation) and irena.energy.share_renewables (share vs. generation). The mention of 226 countries and 21 technologies further differentiates it.

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?

The description implies the tool is for generation data rather than capacity or share, but it does not explicitly tell the agent when to prefer this over siblings. It also doesn't mention any prerequisites or exclusions (e.g., missing data for certain years). However, the phrasing 'for any country' and the listed options (on-grid, off-grid, combined) give a clear context of use.

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.