fas_production
Pack: fas · Endpoint: https://gateway.pipeworx.io/fas/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/fas_production for the schema, then POST the same URL with its arguments for the data.
Get global agricultural production, consumption, and inventory data by commodity and country. Returns production volumes, supply estimates, consumption figures, and trade flows by year.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
commodity | string | yes | Commodity name (e.g., “corn”, “soybeans”, “wheat”) or PSD commodity code (e.g., “0440000”) |
country | string | no | Country code (e.g., “US”, “BR”, “CN”). Optional — omit for world totals. |
market_year | string | no | Market year (e.g., “2024”). Optional. |
Example call
Arguments
{
"commodity": "corn",
"country": "US",
"market_year": "2024"
}
curl
curl -X POST https://gateway.pipeworx.io/fas/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fas_production","arguments":{"commodity":"corn","country":"US","market_year":"2024"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('fas_production', {
"commodity": "corn",
"country": "US",
"market_year": "2024"
});
More examples
{
"commodity": "wheat"
}
Response shape
Always returns: commodity, commodity_code, type, count, data, truncated
| Field | Type | Description |
|---|---|---|
commodity | string | Commodity name provided in request |
commodity_code | string | Standardized commodity code |
type | string | Data type |
count | integer | Number of records returned |
data | array | Production/supply/distribution records (max 100 returned) |
truncated | boolean | Whether results were truncated to 100 records |
Full JSON Schema
{
"type": "object",
"properties": {
"commodity": {
"type": "string",
"description": "Commodity name provided in request"
},
"commodity_code": {
"type": "string",
"description": "Standardized commodity code"
},
"type": {
"type": "string",
"enum": [
"production_supply_distribution"
],
"description": "Data type"
},
"count": {
"type": "integer",
"description": "Number of records returned"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"country": {
"type": [
"string",
"null"
],
"description": "Country name"
},
"country_code": {
"type": [
"string",
"null"
],
"description": "Country code"
},
"market_year": {
"type": [
"integer",
"null"
],
"description": "Market year"
},
"attribute": {
"type": [
"string",
"null"
],
"description": "Attribute (e.g., production, consumption, inventory)"
},
"value": {
"type": [
"number",
"null"
],
"description": "Attribute value"
},
"unit": {
"type": [
"string",
"null"
],
"description": "Unit of measurement"
}
}
},
"description": "Production/supply/distribution records (max 100 returned)"
},
"truncated": {
"type": "boolean",
"description": "Whether results were truncated to 100 records"
}
},
"required": [
"commodity",
"commodity_code",
"type",
"count",
"data",
"truncated"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"fas": {
"url": "https://gateway.pipeworx.io/fas/mcp"
}
}
}
See Getting Started for client-specific install steps.