Skip to main content
Glama

Faostat Dimensions

faostat_dimensions
Read-onlyIdempotent

The valid codes for one dimension of one FAOSTAT domain, the country/area codes, element codes (production quantity, area harvested, yield, import value, ...), item codes (wheat, cattle, nitrogen fertiliser, ...) or years a domain actually carries. Call this BEFORE faostat_data: FAOSTAT codes are numeric and domain-specific, so guessing them returns nothing rather than an error. Example: domain "QCL" dimension "element" lists production quantity (5510), area harvested (5312) and yield (5412); domain "QCL" dimension "item" lists the crops and livestock products. Answers keylessly from a stored copy of FAO's bulk files for five domains (QCL crops and livestock production, FBS food balances 2010-, PP producer prices, RL land use, CP consumer price indices, monthly), with the data date in every answer; any other domain needs _apiKey for FAO's account-gated live API.

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": {
      "dimension": "element",
      "domain_code": "QCL"
    },
    "name": "faostat_dimensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax codes to return (default 50, max 1000).
searchNoCase-insensitive substring filter on the code label, e.g. "wheat".
_apiKeyNoOptional. A FAOSTAT access token, or "email:password" for a FAOSTAT account: sends the call live to FAO's account-gated query API (any domain). Without it the call is answered from the stored copy of QCL, FBS, PP, RL and CP.
dimensionYesWhich dimension to list: "area" (countries and territories), "areagroup" (regional aggregates), "element" (the measured quantity), "item" (the commodity), "itemsgroup" (commodity aggregates), "year", "flag" (data-quality flags) or "unit".
domain_codeYesFAOSTAT domain code from faostat_domains, e.g. "QCL".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional. A FAOSTAT access token, or \"email:password\" for a FAOSTAT account: sends the call live to FAO's account-gated query API (any domain). Without it the call is answered from the stored copy of QCL, FBS, PP and RL."New value: +"Optional. A FAOSTAT access token, or \"email:password\" for a FAOSTAT account: sends the call live to FAO's account-gated query API (any domain). Without it the call is answered from the stored copy of QCL, FBS, PP, RL and CP."
  2. Changed2 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"FAOSTAT access token, or \"email:password\" for a free FAOSTAT account. Required: FAO's query API no longer answers anonymous calls."New value: +"Optional. A FAOSTAT access token, or \"email:password\" for a FAOSTAT account: sends the call live to FAO's account-gated query API (any domain). Without it the call is answered from the stored copy of QCL, FBS, PP and RL."
    • changedInput schema / required
      Previous value: -[
      -  "domain_code",
      -  "dimension",
      -  "_apiKey"
      -]New value: +[
      +  "domain_code",
      +  "dimension"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / _apiKey
      Added value: +{
      +  "description": "FAOSTAT access token, or \"email:password\" for a free FAOSTAT account. Required: FAO's query API no longer answers anonymous calls.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "domain_code",
      -  "dimension"
      -]New value: +[
      +  "domain_code",
      +  "dimension",
      +  "_apiKey"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the key behavioral fact: calls are answered keylessly from a stored copy of five named domains, while other domains go live against FAO's account-gated API. It also notes the data date is included in every answer, which matters for staleness assessment.

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 and the critical ordering instruction, but the single dense paragraph packs the domain list, examples, credential behavior and provenance into one unbroken block. Slightly long, though each element carries information an agent needs.

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?

No output schema exists, yet the description covers what comes back (valid codes, data date in every answer) and the failure mode of bad inputs. For a 5-parameter lookup tool with full schema coverage, nothing material 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 baseline is 3, but the description adds real meaning: it explains that `domain_code` values come from faostat_domains, that dimensions are domain-specific, and shows a `search` use case ("wheat" on QCL/item) that maps directly to the filter parameter.

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 — listing valid codes for one dimension of one FAOSTAT domain — and enumerates the dimension families it covers (area, element, item, year) with concrete examples like QCL/element returning 5510, 5312, 5412. This clearly separates it from faostat_domains (which domain) and faostat_data (which values).

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?

Explicitly instructs "Call this BEFORE faostat_data" and gives the reason: FAOSTAT codes are numeric and domain-specific, so guessing silently returns nothing rather than an error. It also names the alternative path — any domain outside QCL/FBS/PP/RL/CP requires `_apiKey` for the live API.

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.