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
| Name | Type | Required | Description |
|---|---|---|---|
commodity | string | yes | Commodity name (e.g., “coffee”, “cocoa”, “sugar”, “beef”) or commodity code |
country | string | no | Origin country code (e.g., “BR” for Brazil, “CO” for Colombia). Optional — omit for all origins. |
start_year | string | no | Start year (optional) |
end_year | string | no | End 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
| Field | Type | Description |
|---|---|---|
commodity | string | Commodity name provided in the request |
commodity_code | string | FAS commodity code used for the query |
direction | string | Trade direction |
count | integer | Number of import records returned |
data | array | Import records (up to 100) |
truncated | boolean | Whether 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.