get_fruit
Pack: fruityvice · Endpoint: https://gateway.pipeworx.io/fruityvice/mcp
Get nutritional facts for a specific fruit. Returns calories, protein, fat, carbs, sugar, and fiber per 100g (e.g., ‘apple’, ‘banana’).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | yes | The name of the fruit (e.g., “banana”, “apple”, “mango”). |
Example call
Arguments
{
"name": "banana"
}
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":"get_fruit","arguments":{"name":"banana"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_fruit', {
"name": "banana"
});
More examples
{
"name": "apple"
}
Response shape
Always returns: id, name, family, genus, order, nutritions
| Field | Type | Description |
|---|---|---|
id | number | Unique identifier for the fruit |
name | string | Name of the fruit |
family | string | Plant family classification |
genus | string | Genus classification |
order | string | Order classification |
nutritions | object |
Full JSON Schema
{
"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"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"fruityvice": {
"url": "https://gateway.pipeworx.io/fruityvice/mcp"
}
}
}
See Getting Started for client-specific install steps.