list_fruits
Pack: fruityvice · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/list_fruits for the schema, then POST the same URL with its arguments for the data.
List all available fruits with their nutritional profiles. Returns name, calories, protein, fat, carbs, sugar, and fiber for each.
Example call
Arguments
{}
curl
curl -X POST https://gateway.pipeworx.io/fruityvice/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_fruits","arguments":{}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_fruits', {});
Response shape
Always returns: count, fruits
| Field | Type | Description |
|---|---|---|
count | number | Total number of fruits in the list |
fruits | array |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of fruits in the list"
},
"fruits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Unique identifier for the fruit"
},
"name": {
"type": "string",
"description": "Name of the fruit"
},
"family": {
"type": "string",
"description": "Plant family classification"
},
"genus": {
"type": "string",
"description": "Genus classification"
},
"order": {
"type": "string",
"description": "Order classification"
},
"nutritions": {
"type": "object",
"properties": {
"calories": {
"type": "number",
"description": "Calories per 100g"
},
"fat": {
"type": "number",
"description": "Fat content per 100g in grams"
},
"sugar": {
"type": "number",
"description": "Sugar content per 100g in grams"
},
"carbohydrates": {
"type": "number",
"description": "Carbohydrates per 100g in grams"
},
"protein": {
"type": "number",
"description": "Protein content per 100g in grams"
}
},
"required": [
"calories",
"fat",
"sugar",
"carbohydrates",
"protein"
]
}
},
"required": [
"id",
"name",
"family",
"genus",
"order",
"nutritions"
]
}
}
},
"required": [
"count",
"fruits"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the fruityvice pack
{
"mcpServers": {
"fruityvice": {
"url": "https://gateway.pipeworx.io/fruityvice/mcp"
}
}
}
See Getting Started for client-specific install steps.