Skip to main content
Glama

Get Goal Stats

get_goal_stats
Read-only

One goal over a date range: amount per day, least, average and most, days the target was met, and the foods that counted most. 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": {
      "key": "<key>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_goal_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesGoal key from get_goals.
end_dateYesLast day, YYYY-MM-DD.
start_dateYesFirst day, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, destructiveHint=false, so safety is covered. The description adds real behavioral context: what statistics are computed and a 90-day range ceiling, neither of which appears in the annotations or schema. It stops short of explaining aggregation semantics or edge cases like missing days.

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?

Two tight sentences, front-loaded with the subject (one goal over a date range), followed by the returned metrics and then the range cap. No redundant wording.

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?

With no output schema, the description carries the burden of describing return values, and it does so by listing the statistics. Combined with full schema coverage for all three parameters and clear read-only annotations, nothing essential is missing for correct invocation.

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 would be 3. The description adds a constraint not present in the schema: the range is capped at 90 days, which directly affects how start_date/end_date must be chosen. It also frames 'key' as identifying one goal, consistent with the schema's pointer to get_goals.

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 gives a specific verb+resource: statistics for a single goal over a date range. It enumerates the metrics returned (per-day amount, min/avg/max, target-met days, top contributing foods), which clearly separates it from aggregate tools like get_nutrient_stats. It does not explicitly name a sibling alternative, which keeps it 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 by 'One goal over a date range' and the 'Up to 90 days' cap, which tells the agent the scope and a hard limit. There is no explicit statement of when to prefer this over alternatives or prerequisites beyond that.

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