fas_production

Pack: fas · Endpoint: https://gateway.pipeworx.io/fas/mcp

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

NameTypeRequiredDescription
commoditystringyesCommodity name (e.g., “corn”, “soybeans”, “wheat”) or PSD commodity code (e.g., “0440000”)
countrystringnoCountry code (e.g., “US”, “BR”, “CN”). Optional — omit for world totals.
market_yearstringnoMarket 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

FieldTypeDescription
commoditystringCommodity name provided in the request
commodity_codestringPSD commodity code used for the query
typestringData type
countintegerNumber of production records returned
dataarrayProduction/supply/distribution records (up to 100)
truncatedbooleanWhether more than 100 records exist
Full JSON Schema
{
  "type": "object",
  "properties": {
    "commodity": {
      "type": "string",
      "description": "Commodity name provided in the request"
    },
    "commodity_code": {
      "type": "string",
      "description": "PSD commodity code used for the query"
    },
    "type": {
      "type": "string",
      "enum": [
        "production_supply_distribution"
      ],
      "description": "Data type"
    },
    "count": {
      "type": "integer",
      "description": "Number of production records returned"
    },
    "data": {
      "type": "array",
      "description": "Production/supply/distribution records (up to 100)",
      "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"
          }
        }
      }
    },
    "truncated": {
      "type": "boolean",
      "description": "Whether more than 100 records exist"
    }
  },
  "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.

Regenerated from source · build May 9, 2026