Skip to main content
Glama

Food for a day

get_nutrition
Read-onlyIdempotent

Use this when the person asks what they've eaten or how their calories and protein are going, and before removing a logged food. Reads a day's food (date null is today): every entry with its id, the totals against the day's targets, their usual foods and saved recipes, and the weight trend. Do not use to log food; use log_foods.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe day, as YYYY-MM-DD; null is today.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / date / description
      Added value: +"The day, as YYYY-MM-DD; null is today."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so the description's added value is in disclosing payload shape and the delete-entry workflow (you need the entry ids first). That is real context beyond the structured fields. It stops short of mentioning pagination or date-range limits, but the day-scoped design makes that largely moot.

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?

Front-loaded with the triggering condition and the exclusion before the return-value catalogue, which is dense but each clause maps to something the agent needs. Slightly long enumeration of return contents is the only drag, and it is largely justified by the delete workflow it supports.

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?

For a single-parameter read tool with full annotation coverage and an output schema, the description covers the remaining gaps: when to call it, which sibling handles logging, and why the returned ids matter. Nothing an agent needs to invoke it correctly is missing.

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?

The only parameter has full schema coverage and the description merely restates it ('date null is today'), adding no format or edge-case detail beyond the schema's 'YYYY-MM-DD; null is today'. Baseline 3 is appropriate when the schema already carries the semantics.

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?

States a specific verb and resource ('Reads a day's food') and enumerates exactly what comes back: entries with ids, totals against targets, usual foods and saved recipes, and weight trend. It explicitly contrasts with log_foods, so an agent can separate it from the write path without opening either schema.

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

Usage Guidelines5/5

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

Gives concrete triggering conditions ('when the person asks what they've eaten or how their calories and protein are going') plus a workflow prerequisite ('before removing a logged food'). It also names the exclusion and the alternative: 'Do not use to log food; use log_foods.'

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.