Skip to main content
Glama

faostat_list_dimensions

Read-onlyIdempotent

Lists a FAOSTAT dataset's dimensions, the names used to filter its data, and each dimension's code-list parts to help you select valid filters.

Instructions

List a FAOSTAT dataset's dimensions, the names its data is filtered by, and their parts.

One request to get_dimensions, kept for a day. Each dimension's id is the name to filter the dataset's data by and the dimension_id list_codes takes: QCL's area, element, item and year, PP's month, MDDW's survey, FS's year3 in place of year. Its parts are code lists of their own, which list_codes takes too, each with its coding systems (M49, FAO, ISO2 and ISO3 for QCL's countries). FAOSTAT answers an unknown dataset with HTTP 500 and no body, which raises NotFoundError; the list of domains is then read, and a dataset it lacks is named with the closest. A call sends the structure and, after that answer, the list of domains, each tried up to four times, eight requests at most, a login where the process holds no token, and a login and the request again where FAOSTAT refuses with 401 or 403.

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": {
      "domain_code": "<domain_code>"
    },
    "name": "faostat_list_dimensions"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the parts' labels: ``"en"`` (the default), ``"fr"`` or ``"es"``.en
offsetNoRows of the answer already shown, to skip: the note of a cut answer names the next offset. 0, the default, starts at the first row.
domain_codeYesThe dataset's code, as ``list_domains`` lists it, e.g. ``"QCL"`` (Crops and livestock products), ``"PP"`` (Producer Prices), ``"MDDW"`` (Minimum Dietary Diversity for Women) or ``"FS"`` (Suite of Food Security Indicators). An empty text, ``"."`` or ``".."`` is refused before sending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, idempotent, openWorld, non-destructive) with operational specifics: results cached for a day, unknown dataset returns HTTP 500 with empty body raising NotFoundError, the closest-name suggestion from the domain list, retry budget of four attempts per request and eight requests total, and an automatic login plus retry on 401/403. That is exactly the failure and auth behavior an agent needs before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, but the remainder is a dense run-on block where clauses like 'A call sends the structure and, after that answer, the list of domains, each tried up to four times, eight requests at most' take effort to parse. The dataset-specific examples (QCL, PP, MDDW, FS) are informative but expand length without always earning it.

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 no output schema, the description does the work of describing the return shape: per-dimension ids, their parts as separate code lists, and the coding systems available (M49, FAO, ISO2, ISO3). Combined with the error, retry and paging notes, an agent has enough to call and interpret results; only a clearer ordering relative to list_codes/list_domains is missing.

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 domain_code, lang and offset are already documented with examples and defaults, which sets the baseline at 3. The description adds little parameter-level detail beyond noting that lang controls the parts' labels and that offset follows from a truncated answer's note, both of which the schema already states.

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?

Specific verb and resource: 'List a FAOSTAT dataset's dimensions, the names its data is filtered by, and their parts.' It also ties itself to siblings by naming list_codes (which takes the dimension id) and referencing get_dimensions as the single underlying request. It stops short of an explicit statement of how it differs from faostat_list_codes or faostat_list_domains, so differentiation is inferable rather than stated.

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 its place in the workflow by explaining that each dimension id is what list_codes takes as dimension_id, and that unknown datasets fall back to the domain list. But there is no explicit 'call this before list_codes' or 'use list_domains when you only need dataset names' guidance, and no stated exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.