Skip to main content
Glama

faostat_list_domains

Read-onlyIdempotent

List FAOSTAT domains and datasets with groups and release dates to identify what data to retrieve; filter by search text, portal section, or language.

Instructions

List FAOSTAT's domains, the datasets get_data reads, with their groups and release dates.

One request to groupsanddomains, cached for five minutes. Each row is a domain (domain_level 2 or 3) or a subgroup of domains (domain_level 1, subgroup_flag "1", no dates), with its group, its last update, a date (date_update, 2025-12-31), its current and next release as printed (release_current, release_next) and its contact. A section of the portal lists other rows: browse leaves the subgroups out, and compare some datasets too.

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

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the names: ``"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.
searchNoText to look for, ignoring case, in a row's ``domain_code``, ``domain_name`` or ``group_name``, e.g. ``"QCL"``, ``"crops"`` or ``"prices"``; ``None`` lists every row.
sectionNoThe portal's section the list serves: ``"download"``, every domain and subgroup, as ``None`` lists them, ``"browse"`` or ``"compare"``.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, yet the description still adds real value: it names the upstream endpoint (``groupsanddomains``), discloses a five-minute cache, and explains the row taxonomy (``domain_level`` 1/2/3, ``subgroup_flag``, missing dates for subgroups). That caching and row-shape detail is exactly the kind of behavior an agent cannot get from the annotations.

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?

Two sentences, front-loaded with the purpose before the operational detail, and no filler. The parenthetical row-type clause is dense and the bare date example (``2025-12-31``) is slightly cryptic, which keeps it off a 5.

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 correctly spends its space describing the returned rows and their fields, and pagination is covered by the ``offset`` schema text. What is missing is any statement of list size or truncation behavior beyond the passing reference to "the note of a cut answer."

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 the schema already documents ``lang``, ``offset``, ``search`` and ``section`` with examples and defaults. The description's only addition is the observation that browse and compare sections omit some rows, which largely restates the ``section`` schema text; baseline 3 applies.

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 gives a specific verb and resource ("List FAOSTAT's domains") and anchors the resource to a sibling by saying these are "the datasets ``get_data`` reads." It never distinguishes itself from other list siblings such as ``faostat_list_codes`` or ``faostat_list_dimensions``, so the purpose is clear but sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies clear context for use: this is the lookup that yields the domains ``get_data`` consumes, and the ``section`` sentence explains which rows each portal section returns. There is no explicit when-not guidance or named alternative for the other list tools, so it stops short of full routing.

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