fas_imports

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

Check US agricultural imports by commodity and origin country. Returns import volumes, values, and source country details. Use fas_commodity_codes to find commodity codes (e.g., “coffee”, “cocoa”).

Parameters

NameTypeRequiredDescription
commoditystringyesCommodity name (e.g., “coffee”, “cocoa”, “sugar”, “beef”) or commodity code
countrystringnoOrigin country code (e.g., “BR” for Brazil, “CO” for Colombia). Optional — omit for all origins.
start_yearstringnoStart year (optional)
end_yearstringnoEnd year (optional)

Example call

Arguments

{
  "commodity": "coffee",
  "country": "BR",
  "start_year": "2022"
}

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_imports","arguments":{"commodity":"coffee","country":"BR","start_year":"2022"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fas_imports', {
  "commodity": "coffee",
  "country": "BR",
  "start_year": "2022"
});

More examples

{
  "commodity": "cocoa"
}

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 import records returned
dataarrayImport 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": [
        "imports"
      ],
      "description": "Trade direction"
    },
    "count": {
      "type": "integer",
      "description": "Number of import records returned"
    },
    "data": {
      "type": "array",
      "description": "Import records (up to 100)",
      "items": {
        "type": "object",
        "properties": {
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Import year"
          },
          "month": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Import month"
          },
          "partner": {
            "type": [
              "string",
              "null"
            ],
            "description": "Origin country or partner name"
          },
          "partner_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Partner country code"
          },
          "value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Import value"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Import 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