fas_exports

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

Check US agricultural exports by commodity and destination. Returns export volumes, values, and trade partner details. Use fas_commodity_codes to find commodity codes (e.g., “corn”, “wheat”).

Parameters

NameTypeRequiredDescription
commoditystringyesCommodity name (e.g., “corn”, “soybeans”, “wheat”, “beef”, “pork”, “cotton”) or commodity code
countrystringnoDestination country code (e.g., “CN” for China, “MX” for Mexico, “JP” for Japan). Optional — omit for all destinations.
start_yearstringnoStart year (e.g., “2020”). Optional.
end_yearstringnoEnd year (e.g., “2024”). Optional.

Example call

Arguments

{
  "commodity": "corn",
  "country": "CN",
  "start_year": "2020",
  "end_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_exports","arguments":{"commodity":"corn","country":"CN","start_year":"2020","end_year":"2024"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('fas_exports', {
  "commodity": "corn",
  "country": "CN",
  "start_year": "2020",
  "end_year": "2024"
});

More examples

{
  "commodity": "soybeans"
}

Response shape

Always returns: commodity, commodity_code, direction, count, data, truncated

FieldTypeDescription
commoditystringCommodity name provided in the request
commodity_codestringFAS commodity code used for the query
directionstringTrade direction
countintegerNumber of export records returned
dataarrayExport 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": "FAS commodity code used for the query"
    },
    "direction": {
      "type": "string",
      "enum": [
        "exports"
      ],
      "description": "Trade direction"
    },
    "count": {
      "type": "integer",
      "description": "Number of export records returned"
    },
    "data": {
      "type": "array",
      "description": "Export records (up to 100)",
      "items": {
        "type": "object",
        "properties": {
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Export year"
          },
          "month": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Export month"
          },
          "partner": {
            "type": [
              "string",
              "null"
            ],
            "description": "Destination country or partner name"
          },
          "partner_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Partner country code"
          },
          "value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Export value"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Export quantity"
          },
          "unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unit of measurement"
          }
        }
      }
    },
    "truncated": {
      "type": "boolean",
      "description": "Whether more than 100 records exist"
    }
  },
  "required": [
    "commodity",
    "commodity_code",
    "direction",
    "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