Skip to main content
Glama

Get targets

get_targets
Read-onlyIdempotent

Daily calorie and macro targets in effect on a date (default today).

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_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoCalendar date YYYY-MM-DD in the user's timezone

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered elsewhere. The description's added value is the default-date behavior and the 'in effect' framing, but it does not explain what 'in effect' resolves to when targets changed mid-day, nor how a missing target set is handled.

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?

One sentence, front-loaded with the resource ('Daily calorie and macro targets') and followed immediately by the temporal qualifier and default. Nothing is redundant and nothing is padded.

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?

For a single-parameter, read-only lookup with full schema coverage and thorough annotations, the description covers the essentials: what is returned, the date scoping, and the default. It does not say what the payload contains (per-meal vs daily totals, whether unset targets error or return empty), which is a minor gap given there is no output schema.

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?

The single parameter is fully documented in the schema, including the YYYY-MM-DD pattern and timezone note, so the baseline would be 3. The description adds meaning the schema does not carry: the parameter is optional and defaults to today, which is a real behavioral fact an agent needs before omitting it.

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 names the specific resource (daily calorie and macro targets) and the temporal scoping ('in effect on a date'), which is enough to separate it from the setter siblings like set_targets and set_meal_targets. The retrieval verb is only implied through the name and the readOnly annotation rather than stated outright, so it stops just short of a 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 rather than stated: the agent can infer 'call this to read current targets' and the '(default today)' note tells it the date argument is optional. There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named, even though set_targets sits in the same family and the read/write split is left for the agent to infer.

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