Skip to main content
Glama

Get Nutrient Gaps

get_nutrient_gaps
Read-only

What has been low: average daily intake of each nutrient against the user's own target over a date range, lowest first. Averages only count days with diary entries, and days_logged says how many that was: a few logged days make a weak average. Nutrients with a maximum rather than a target are left out. Up to 90 days.

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": {
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_nutrient_gaps"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYesLast day, YYYY-MM-DD.
start_dateYesFirst day, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish that this is a safe, closed-world read, so the bar is lower, and the description goes well beyond them. It discloses the averaging semantics (only logged days count), warns that few logged days make a weak average, notes the days_logged field, and states that maximum-based nutrients are omitted. It does not describe the ordering ties or the shape/units of returned values, keeping it off 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.

Conciseness5/5

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

The definition is dense but front-loaded, leading with the core result then layering caveats in order of consequence. Every clause carries operational meaning (sort order, averaging rule, exclusions, range limit), with no filler or restatement of the title.

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 no output schema and only two required parameters, the description has to carry the return-value burden and largely does: per-nutrient averages versus target, sort order, and the days_logged companion field. It leaves the exact response structure and units implicit, which is a modest but real gap.

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 both date parameters are already documented, making 3 the baseline. The description adds a real constraint not present in the schema: the range is capped at 90 days, which affects how an agent formulates start_date and end_date.

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 opens with a precise verb+resource framing: average daily intake of each nutrient versus the user's own target over a date range, sorted lowest first. That is far more specific than a tautology and implicitly separates it from stats/contributions style tools. It stops short of naming which sibling to use instead, so it stays at 4 rather than 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 implied by the computed concept ('what has been low' versus a target), and hard constraints (90-day cap, maximum-based nutrients excluded) are stated. However, there is no explicit when-to-use versus get_nutrient_stats or get_nutrient_contributions guidance, leaving the agent to infer selection.

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