Skip to main content
Glama

Get Climate Data

get_climate_data
Read-onlyIdempotent

World Bank CCKP climate data for any country: historical observations and CMIP6 climate-model projections. Returns mean temperature, max/min temperature, or precipitation, by emissions scenario. Pass the components as separate args, this tool assembles the brittle composite "indicator code" for you. Values are returned keyed by ISO3 country code; the inner key is "-07" (annual/period) or per-season months.

WORKED EXAMPLES (all verified live):

  1. Historical annual mean temperature for the USA (defaults): {"geography":"USA"} => tas climatology over 1995-2014, ~10.2°C.

  2. Projected warming (anomaly) for the USA mid-century under a high scenario: {"geography":"USA","scenario":"ssp585","period":"2040-2059","product":"anomaly"} => ~2.4°C above baseline.

  3. Historical annual precipitation for all countries: {"geography":"all_countries","variable":"pr","product":"climatology","period":"1995-2014","scenario":"historical"} => mm/year per country.

If assembly ever fails for an exotic combination, pass the full composite string via indicator_code instead.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "geography": "USA"
    },
    "name": "get_climate_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTime period. For historical use "1995-2014" (the default when scenario=historical). For projections use a 20-year window e.g. "2020-2039","2040-2059","2060-2079","2080-2099". Defaults to 1995-2014 (historical) or 2040-2059 (projection).
productNoWhat to return: "climatology" (absolute values, verified) or "anomaly" (change vs reference period, use with a projection scenario, verified). Default "climatology".
scenarioNoEmissions/scenario. "historical" for observed past, or a projection SSP: "ssp119","ssp126","ssp245","ssp370","ssp585" (low -> high emissions). Default "historical".
variableNoClimate variable. Verified: "tas" (mean temp °C), "tasmax" (max temp), "tasmin" (min temp), "pr" (precipitation mm/year). Default "tas".
geographyNoISO3 country code (e.g. "USA", "BRA"), or "all_countries" for every country. Default "all_countries".
collectionNoDataset collection. Default and only fully API-verified value is "cmip6-x0.25" (model-derived, covers historical + projections). The portal lists "era5-x0.25"/"cru-x0.5" observation collections but those did not return data through this JSON API in testing, prefer cmip6-x0.25.
aggregationNo"annual" (single value) or "seasonal" (four season values), verified. Default "annual".
indicator_codeNoOptional raw 11-token composite code to pass through verbatim, bypassing assembly. Order: collection_type_variable_product_aggregation_period_percentile_scenario_model_modelCalculation_statistic. Example: "cmip6-x0.25_climatology_tas_climatology_annual_1995-2014_median_historical_ensemble_all_mean".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / collection / description
      Previous value: -"Dataset collection. Default and only fully API-verified value is \"cmip6-x0.25\" (model-derived, covers historical + projections). The portal lists \"era5-x0.25\"/\"cru-x0.5\" observation collections but those did not return data through this JSON API in testing — prefer cmip6-x0.25."New value: +"Dataset collection. Default and only fully API-verified value is \"cmip6-x0.25\" (model-derived, covers historical + projections). The portal lists \"era5-x0.25\"/\"cru-x0.5\" observation collections but those did not return data through this JSON API in testing, prefer cmip6-x0.25."
    • changedInput schema / properties / product / description
      Previous value: -"What to return: \"climatology\" (absolute values, verified) or \"anomaly\" (change vs reference period — use with a projection scenario, verified). Default \"climatology\"."New value: +"What to return: \"climatology\" (absolute values, verified) or \"anomaly\" (change vs reference period, use with a projection scenario, verified). Default \"climatology\"."
    • changedInput schema / properties / scenario / description
      Previous value: -"Emissions/scenario. \"historical\" for observed past, or a projection SSP: \"ssp119\",\"ssp126\",\"ssp245\",\"ssp370\",\"ssp585\" (low→high emissions). Default \"historical\"."New value: +"Emissions/scenario. \"historical\" for observed past, or a projection SSP: \"ssp119\",\"ssp126\",\"ssp245\",\"ssp370\",\"ssp585\" (low -> high emissions). Default \"historical\"."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "geography": "USA"
      +  },
      +  {
      +    "geography": "USA",
      +    "period": "2040-2059",
      +    "product": "anomaly",
      +    "scenario": "ssp585"
      +  },
      +  {
      +    "geography": "all_countries",
      +    "period": "1995-2014",
      +    "product": "climatology",
      +    "scenario": "historical",
      +    "variable": "pr"
      +  }
      +]
  3. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: the ISO3 outer key and "<startYear>-07" inner key format, and the caveat that era5/cru collections did not return data through this API. It stops short of describing pagination or error behavior, but for a read-only data fetch that is minor.

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?

Front-loaded with purpose, then examples, then the fallback note, so an agent can stop reading early. The examples are long but each demonstrates a distinct parameter combination, so they earn their space; only slight trimming would improve it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 optional parameters, no output schema, and no enums, the description carries the burden well: it documents defaults, valid values, return keying, and the escape hatch. Nothing an agent needs to call it correctly is missing.

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 the baseline is 3, but the description adds real meaning on top: it explains that the tool assembles the brittle 11-token indicator_code composite from separate args, and the collection caveat steers away from unverified values. The worked examples show how parameters combine, which the schema alone does not convey.

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?

States a specific verb and resource: World Bank CCKP climate data for any country, covering historical observations and CMIP6 projections, returning temperature or precipitation by scenario. An agent immediately knows what it retrieves and the shape of the result.

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?

Gives explicit when-to-use guidance: anomaly pairs with a projection scenario, climatology for absolute values, historical vs SSP scenario selection, and a documented fallback to indicator_code for exotic combinations. The three verified worked examples map concrete argument sets to expected outputs.

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.