Faostat Data
faostat_dataObservations from a FAOSTAT domain, the actual numbers, with units, year and data-quality flag. AUTHORITATIVE for "how much did produce in ", world agricultural trade flows, fertiliser and pesticide use, agricultural emissions and food-balance data. Pass codes from faostat_dimensions: area (country), element (what is measured) and item (the commodity) are all numeric domain-specific codes, not names. Example: domain "QCL", area "231" (United States of America), element "5510" (production quantity), item "15" (wheat), years "2020,2021,2022". Answers keylessly from a stored copy of FAO's bulk files for QCL (crops and livestock production), FBS (food balances 2010-), PP (producer prices, annual), RL (land use) and CP (consumer price indices, MONTHLY: food and general CPI and food price inflation by country, each observation carries month and period; example domain "CP", area "100" (India), item "23013" (food CPI), year "2024")), read one country or one commodity at a time (give area, or item without area to compare countries; names are accepted as well as codes; sort: "value_desc" ranks). Each answer says answered_from stored_copy, carries FAO's data date and the FAO attribution, and omits figures FAO flags X (from an external organization). Other domains need _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": {
"area": "231",
"item": "15",
"year": "2022",
"element": "5510",
"domain_code": "QCL"
},
"name": "faostat_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | One or more FAOSTAT area codes, comma-separated, e.g. "231" or "231,68,100". From faostat_dimensions dimension "area". | |
| item | No | One or more item codes, comma-separated, e.g. "15" (wheat). From faostat_dimensions dimension "item". | |
| sort | No | Stored copy only: "value_desc" returns the largest values first (e.g. top producers of one item in one year). | |
| year | No | One or more years, comma-separated, e.g. "2022" or "2018,2019,2020,2021,2022". Omit for every year the domain holds. | |
| limit | No | Max observations to return (default 100, max 2000). | |
| month | No | Stored copy, monthly domains only (CP): one or more months 1-12, comma-separated, e.g. "3" or "1,2,3". Omit for every month. Ignored by the annual domains. | |
| _apiKey | No | 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. | |
| element | No | One or more element codes, comma-separated, e.g. "5510" (production quantity). From faostat_dimensions dimension "element". | |
| domain_code | Yes | FAOSTAT domain code, e.g. "QCL". From faostat_domains. | |
| include_aggregates | No | Stored copy only: with sort "value_desc" and no area, regional and world aggregates (area codes 5000+) are left out unless this is true. |