list_distributions
Pack: trefle · Endpoint: https://gateway.pipeworx.io/trefle/mcp
Native or introduced distribution zones (TDWG WGSRPD codes — e.g., “NWY” = Norway, “CAL” = California). Returns species lists by zone.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
zone | string | yes | TDWG zone code (e.g., “CAL”, “FRA”, “JAP”) |
page | number | no | 1-based page |
page_size | number | no | 1-100 |
Example call
Arguments
{
"zone": "CAL"
}
curl
curl -X POST https://gateway.pipeworx.io/trefle/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_distributions","arguments":{"zone":"CAL"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_distributions', {
"zone": "CAL"
});
More examples
{
"zone": "FRA",
"page": 1,
"page_size": 50
}
Response shape
Always returns: zone, total, returned, plants
| Field | Type | Description |
|---|---|---|
zone | string | TDWG zone code |
total | number | Total plants in zone |
returned | number | Number of plants in this response |
plants | array |
Full JSON Schema
{
"type": "object",
"properties": {
"zone": {
"type": "string",
"description": "TDWG zone code"
},
"total": {
"type": "number",
"description": "Total plants in zone"
},
"returned": {
"type": "number",
"description": "Number of plants in this response"
},
"plants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"number",
"null"
],
"description": "Trefle plant ID"
},
"scientific_name": {
"type": [
"string",
"null"
],
"description": "Scientific name"
},
"common_name": {
"type": [
"string",
"null"
],
"description": "Common name"
},
"family": {
"type": [
"string",
"null"
],
"description": "Plant family"
},
"family_common_name": {
"type": [
"string",
"null"
],
"description": "Family common name"
},
"genus": {
"type": [
"string",
"null"
],
"description": "Genus"
},
"year": {
"type": [
"number",
"null"
],
"description": "Year of record"
},
"author": {
"type": [
"string",
"null"
],
"description": "Author"
},
"status": {
"type": [
"string",
"null"
],
"description": "Status"
},
"rank": {
"type": [
"string",
"null"
],
"description": "Taxonomic rank"
},
"image": {
"type": [
"string",
"null"
],
"description": "Image URL"
},
"slug": {
"type": [
"string",
"null"
],
"description": "URL slug"
},
"trefle_url": {
"type": [
"string",
"null"
],
"description": "Trefle API URL"
}
}
}
}
},
"required": [
"zone",
"total",
"returned",
"plants"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"trefle": {
"url": "https://gateway.pipeworx.io/trefle/mcp"
}
}
}
See Getting Started for client-specific install steps.