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

NameTypeRequiredDescription
namestringyesThe 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

FieldTypeDescription
idnumberUnique identifier for the fruit
namestringName of the fruit
familystringPlant family classification
genusstringGenus classification
orderstringOrder classification
nutritionsobject
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.

Regenerated from source · build May 9, 2026