Skip to main content
Glama

Snowbelly Nutrition

Calories in a food

food_calories

Calories, protein, fiber, carbs and fat for an everyday food (USDA FoodData Central values), per 100 g and per common portion, or for a given number of grams.

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": "food_calories"
  }
}

Input Schema

NameRequiredDescriptionDefault
foodYese.g. banana, egg, rice, avocado
gramsNooptional portion in grams

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does useful work by disclosing the data source and the units returned (per 100 g, per common portion, or a specified gram amount), which signals a read-only lookup. It says nothing about behavior for unrecognized foods (fuzzy match vs. error) or whether branded items are covered, which matters for an agent picking inputs.

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?

A single front-loaded sentence that packs the returned nutrients, the source, and the unit conventions with no filler. Nothing could be removed without losing information.

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?

There is no output schema, so the description must state what comes back, and it does so concretely (five nutrient values at three possible bases). The only gap is failure/ambiguity handling for unfamiliar food strings, which is minor for a two-parameter lookup.

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 100%, so the baseline is 3, and the description goes slightly beyond it: it clarifies that omitting 'grams' still yields per-100 g and per-common-portion values, whereas supplying grams scales to that amount. That is meaningful semantics for the optional parameter, not a restatement.

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?

Names the resource (an everyday food) and the exact payload (calories, protein, fiber, carbs, fat), plus the data source (USDA FoodData Central). The phrase 'for an everyday food' implicitly scopes it away from the sibling aggregate tools (daily_calories, protein_fiber_targets), though no sibling is named.

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: look up nutrition for one food item. There is no explicit statement of when to prefer this over daily_calories or macro_calories, and no guidance on unsupported inputs such as branded or composite dishes.

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