Skip to main content
Glama

get_food

Read-only

Retrieve per-100 g nutrient values for a Ukrainian food by exact name or closest match, so you can compare nutrition data accurately.

Instructions

Nutrition per 100 g for one food (exact name, or the closest match).

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

Input Schema

NameRequiredDescriptionDefault
nameYesFood name in Ukrainian

Output Schema

NameRequiredDescriptionDefault
fatYes
kcalYes
nameYes
carbsYes
emojiYes
proteinYes
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and closed-world scope are covered. The description does add real behavior beyond that by disclosing the fuzzy fallback to the 'closest match', though it does not say whether a miss still errors or how loose the matching is.

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?

A single sentence with no filler, and the output unit (per 100 g) is front-loaded. It is arguably too terse for the amount of behavioral nuance it is carrying, but nothing is wasted.

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?

An output schema exists, so return structure need not be explained, and the sole required parameter is documented in both schema and description. What is missing is only edge-case behavior, such as what happens when nothing matches at all.

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?

With one fully documented parameter and 100% schema coverage, the baseline is already met by the schema's 'Food name in Ukrainian'. The description goes one step further by clarifying that the name is resolved by exact match first and closest match otherwise, which the schema does not state.

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?

The description states precisely what is returned (nutrition per 100 g) for a single food, which implicitly separates it from the bulk-oriented siblings search_foods/top_foods and from calculate_meal. It is clear without naming any sibling explicitly, so it falls just short of a 5.

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?

Usage is only implied: an agent can infer this is the single-food lookup versus searching or aggregating, but the description never says when to prefer it over search_foods or calculate_meal. The parenthetical gives input guidance (exact name or closest match) rather than routing guidance.

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