Skip to main content
Glama

Get food

get_food
Read-onlyIdempotent

One saved food, recipe or batch by id or name, with full nutrition per 100 g and per serving, a recipe's ingredients, and a batch's ingredients, weights, grams left and portions eaten by others.

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": {
      "food": "<food>"
    },
    "name": "get_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
foodYesAn id or name from the library

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world, non-destructive), so the bar is lower. The description still adds real context about what the call returns: nutrition normalized per 100 g and per serving, a recipe's ingredient list, and a batch's ingredients, weights, grams left, and portions eaten by others. It does not state what happens when the id/name is not found or ambiguous, which keeps it below a 5.

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?

One front-loaded sentence that leads with the scope (single item, id or name) before the return contents. It is dense but every clause carries information; the trailing noun pile is slightly heavy to parse but nothing is redundant.

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

Completeness4/5

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

With one required parameter, no nested objects, and no output schema, the description carries the burden of explaining return values and does so across all three entity types. Missing only edge-case behavior (not-found, ambiguous name, unit rounding), which is a modest gap rather than a blocker for correct invocation.

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

Parameters3/5

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

There is a single parameter with 100% schema description coverage ('An id or name from the library'), so the schema already does the heavy lifting. The description restates 'by id or name' without adding resolution semantics such as name-match strictness or ambiguity handling, making this baseline-level.

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 ('one saved food... by id or name') and resource, and enumerates the three entity kinds it resolves (food, recipe, batch) plus the payload shape. It does not name a sibling such as list_foods or get_food_log to contrast against, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

The phrase 'One saved food... by id or name' implies single-item retrieval as opposed to listing, which gives implied usage guidance. There is no explicit when-to-use, when-not-to-use, or alternative routed to, so the agent must infer that list_foods covers enumeration and get_food_log covers consumption history.

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