Skip to main content
Glama

get_food_details

Read-only

A food's servings, allergens, dietary labels and nutrition.

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": {
      "foodId": "<foodId>"
    },
    "name": "get_food_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
foodIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.4/5.0
Behavior2/5

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

readOnlyHint=true already declares this is a safe read, so the description carries the remaining burden and adds almost nothing: no note on what happens with an invalid or unknown foodId, no indication of missing-data behavior (e.g., foods without allergen info), and no return shape detail.

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

Conciseness3/5

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

Very short, so nothing is wasted, but it is under-specified rather than tight — a fragment with no verb or context rather than a front-loaded statement of what the tool does.

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

Completeness3/5

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

With no output schema, the field list partially substitutes for return documentation, which helps. However, for a lookup keyed on an undocumented identifier, the description should at minimum explain how to obtain foodId and what a failed lookup returns.

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

Parameters2/5

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

Schema description coverage is 0% and the single required parameter foodId is completely undocumented. The description never mentions the identifier, its expected form, or where to source it (search_foods / lookup_food_barcode), leaving the only parameter semantically opaque.

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

Purpose3/5

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

The description enumerates the resource contents (servings, allergens, dietary labels, nutrition) but is a bare noun phrase with no verb, so the retrieval action is only implied. It gives an agent a rough idea of what comes back, yet never distinguishes this from siblings like search_foods, lookup_food_barcode, get_ingredient_nutrition, or get_recipe.

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

Usage Guidelines2/5

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

No guidance on when to call this versus search_foods or lookup_food_barcode, and no hint that a foodId must first be obtained from a search. The agent must infer the workflow entirely from the sibling list.

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.