Skip to main content
Glama

Get Target Details

get_target_details
Read-only

Where the user's current target for each nutrient comes from, its upper limit, and what the app says about the nutrient. A past diary day can show an earlier target.

origin.type: "standard" (from the standard the user follows), "fallback" (their standard sets none, so another's is used), "custom" (the user set it themselves; the reason isn't recorded), "calculated" (from their body and energy needs) or "default" (Nutriely's own suggestion). origin.outdated means the saved target was worked out before the current values, and recalculating in the app updates it. upper_limit is a level to stay under, separate from the target; vitamin A's is on retinol (RETOL), since it only applies to that form. about and diet_note are the app's guidance on the nutrient.

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

Input Schema

NameRequiredDescriptionDefault
codesYesNutrient codes, from get_diary or list_components. Up to 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description correctly spends its words on substance instead: it enumerates all five `origin.type` meanings, explains `origin.outdated` and that recalculating refreshes it, and defines `upper_limit` as a separate stay-under level including the vitamin A/retinol caveat. This is real semantic disclosure an agent could not get from the annotations.

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?

The first sentence is a slightly run-on list of three return concerns, but after that each sentence is a compact definition of one field. Given there is no output schema, the field-by-field explanation earns its space with little filler.

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, the description must carry the return-value semantics, and it does so for origin, outdated, upper_limit, about and diet_note. It is still missing the response shape (keyed by nutrient code? does it return the target value itself, not just its origin?) and what happens for an unknown code, which leaves an agent guessing at the edges.

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?

Schema description coverage is 100% and there is a single required `codes` parameter whose provenance and 20-item cap are already documented in the schema. The description adds nothing about `codes` itself and never says whether the response is keyed by those codes, so it earns the baseline rather than more.

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 makes clear the resource is per-nutrient target details: where the target comes from (`origin.type`), its `upper_limit`, and the app's `about`/`diet_note` guidance. That is a specific, recognisable resource, but it is framed as a list of returned fields rather than a statement of what the tool does, and it never distinguishes itself from plausible siblings like get_goals or get_goal_sources.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The only routing hint is buried in the schema (codes come from get_diary or list_components), and the sentence 'A past diary day can show an earlier target' hints at a temporal use case without stating a condition, since no date parameter exists.

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