Skip to main content
Glama
Asquarer02
by Asquarer02

get_food

Look up a single food by name and receive its complete nutrition data: category, unit, macros, tags, and calories per unit. Uses tolerant matching and returns suggestions when the name is ambiguous.

Instructions

Look up a single food by name and return its full entry with derived calories.

Matching is case-insensitive and tolerant: "chicken breast" resolves "Chicken Breast (Cooked)". A loose match is only accepted when it identifies exactly one food -- "cottage cheese" matches three different products, so it is reported as not-found WITH those three as suggestions rather than guessing.

Args: name: The food name, e.g. "Salmon", "greek yogurt (0% fat)", "Whole Egg".

Returns: The full entry: name, category, unit, pro, carb, fat, tags, exclude_for, calories_per_unit. All macro figures are per ONE unit of that food.

On no match, returns {"error": "food_not_found", "suggestions": [...]} rather
than raising or returning nothing. Retry with a suggested name verbatim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full burden and does an excellent job. It discloses case-insensitive matching, tolerant matching rules, the ambiguity policy for multiple matches, the exact return format, and the no-match error format with suggestions. It even instructs the caller to retry with a suggested name verbatim. This is far beyond typical description depth.

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

Conciseness5/5

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

The description is well-organized with a one-sentence summary, a short matching-behavior paragraph, an Args section, and a Returns section. Every sentence adds useful information—no filler or repetition. The length is justified by the important edge-case behavior that must be communicated.

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?

Despite having an output schema available, the description still clarifies return semantics and the error structure, which is helpful for planning. The matching rules, ambiguous-name handling, and examples make the tool self-contained. For a one-parameter lookup tool, this is complete and leaves minimal ambiguity.

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

Parameters5/5

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

The schema only defines 'name' as a string with no description, so the description must compensate and does so thoroughly. It explains what the parameter means ('The food name'), provides concrete examples including a formatted one ('greek yogurt (0% fat)'), and clarifies matching tolerance. This gives the agent everything needed to construct valid invocations.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Look up a single food by name and return its full entry with derived calories.' This clearly distinguishes the tool from siblings like list_foods (listing many) and calculate_macros (computing macros separately). It leaves no doubt about the tool's core function.

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?

The description clearly conveys when to use this tool: when you need one food's details by name. It does not explicitly mention alternative tools or when not to use it, but the 'single food' framing and the listed sibling names provide enough context for a competent agent. A direct alternative comparison would lift this to 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Asquarer02/usda-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server