faostat_get_rankings
Rank countries by a selected FAOSTAT domain, item, element, and year to compare agricultural statistics; set a limit and choose compact, object, or CSV output.
Instructions
Rank countries by a domain item/element/year. element_code is a DISPLAY code (QCL Production: 5510), unlike get_data filter code 2510. limit=10. response_format defaults to compact; objects and csv are supported.
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>",
"element_code": "<element_code>",
"item_code": "<item_code>",
"year": "<year>"
},
"name": "faostat_get_rankings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en | |
| year | Yes | ||
| limit | No | ||
| item_code | Yes | ||
| domain_code | Yes | ||
| element_code | Yes | ||
| response_format | No | compact |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |