Skip to main content
Glama

list_caffeine

Read-onlyIdempotent

List caffeine doses by local date with daily totals. use: caffeine history or today's total. range: up to 366 days per call; default the last 14 local calendar days through today. output: daily totals cover every dose in the range; the dose list shows the 200 most recent and says how many it omitted.

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": "list_caffeine"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast local date, YYYY-MM-DD; default today.
fromNoFirst local date, YYYY-MM-DD; default 13 days before today.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"First local date, YYYY-MM-DD. Default: 13 days before today."New value: +"First local date, YYYY-MM-DD; default 13 days before today."
    • changedInput schema / properties / to / description
      Previous value: -"Last local date, YYYY-MM-DD. Default: today."New value: +"Last local date, YYYY-MM-DD; default today."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly/idempotent/closed-world) by disclosing the 366-day per-call cap, the 14-day default window, and, critically, the truncation rule: daily totals are complete but the dose list is capped at 200 most recent entries with an explicit omitted count. That truncation disclosure is exactly the kind of behavior an agent cannot infer from structured fields.

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?

Four compact clauses with explicit 'use:', 'range:', and 'output:' labels; every sentence carries information. Front-loading the purpose before the range and output details makes it scannable.

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 two-optional-param read tool with an output schema and full annotation coverage, nothing needed to call it correctly is missing: purpose, window semantics, range limit, and result truncation are all stated. Return-value structure is correctly left to the output schema.

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 schema already documents both parameters at 100% coverage, including defaults, so the baseline is 3. The description adds the 366-day maximum range constraint not present in the schema, but otherwise restates the default window rather than adding new meaning.

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 ('List caffeine doses') plus the shape of the result ('daily totals' and 'dose list'). The resource is unambiguous against the sibling catalog (hydration, sleep, glucose, etc.), so an agent can select it without opening the schema.

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

Usage Guidelines4/5

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

The 'use:' line names two concrete intents — caffeine history and today's total — which tells the agent when this tool is the right call. It stops short of naming exclusions or pointing to any alternative tool, but the resource-specific framing leaves little ambiguity.

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.