Skip to main content
Glama

foodbe_cart_breakdown

Read-only

Analyzes a grocery list, cart, order, menu or recipe. Call this when a user asks you to analyze one. Send up to 50 ingredient names in items. For the whole list it returns the health effects, the total carbon and water, the food group balance with foods to add, the flavor and texture it carries with the missing ones, and the diets it suits. It also returns swaps that keep flavor and texture. The chefy_read field gives each food its cooking method, a substitute if you run out, and its pairings. A closing note names the list's biggest gap with its carbon and water. Every value comes from Foodbe's stored, human-approved data, never from a model, so the same list always returns the same result. Names Foodbe does not have are listed in not_found. Send diet and allergies to get diet_check, which lists the foods that break the diet or hold an allergen. A food with no stored diet or allergen data is marked unknown, never safe. Send grams, a map of food name to grams, to get impact_for_quantities, the carbon and water for the amounts bought, with carbon_by_food, each food's share of that carbon. Without grams, environmental_impact is for 1 kg of each food.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "foodbe_cart_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
dietNoOptional. The diet the cart must suit, such as vegan or gluten-free.
gramsNoOptional. A map of food name, as sent in items, to grams bought.
itemsYesThe ingredient names in the cart, up to 50.
allergiesNoOptional. Allergens the cart must not hold.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / allergies
      Added value: +{
      +  "description": "Optional. Allergens the cart must not hold.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / diet
      Added value: +{
      +  "description": "Optional. The diet the cart must suit, such as vegan or gluten-free.",
      +  "type": "string"
      +}
    • addedInput schema / properties / grams
      Added value: +{
      +  "additionalProperties": {
      +    "type": "number"
      +  },
      +  "description": "Optional. A map of food name, as sent in items, to grams bought.",
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/openWorld/destructive annotations by explaining determinism ("the same list always returns the same result"), data provenance ("stored, human-approved data, never from a model"), and edge-case handling for unknown names (not_found) and missing diet/allergen data (marked unknown, never safe). These are exactly the behavioral facts an agent needs before trusting output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and trigger are front-loaded, and nearly every sentence carries a distinct fact. It is dense and runs as one long block, with slight repetition ("analyze one" restates the opening verb), but little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of explaining return values and does so field by field: health effects, carbon/water totals, food group balance, flavor/texture gaps, diets, swaps, chefy_read, and the closing note. For a 4-parameter tool with a nested grams object, an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds real meaning: items cap of 50, what diet/allergies unlock (diet_check with unknown marking), what grams unlocks (impact_for_quantities, carbon_by_food), and the 1 kg-per-food default when grams is omitted. This is more than the schema conveys, though it does not clarify the grams map keying beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("Analyzes") and enumerates the resources it accepts ("grocery list, cart, order, menu or recipe"), plus a direct usage trigger. It is unambiguous about what the tool does, though it never names a sibling tool to distinguish itself from foodbe_query or foodbe_grocery_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit trigger: "Call this when a user asks you to analyze one." This is clear context for when to invoke, but it offers no exclusions or named alternatives for cases where a different tool would be better.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources