Skip to main content
Glama

Query food, drink and weight logs

query_logs
Read-onlyIdempotent

What the person logged in the app: food with calories, macros and fruit and veg portions, drinks by kind (coffee, water, alcohol...), and typed weight. Each entry carries its time and part of day: morning, midday, evening or late. For a day's totals, use query_metrics.

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

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive. Omitted: today in the account time zone.
fromNoFirst day, inclusive. Omitted: six days before `to`, so the last seven days only. Pass it for anything longer, up to 366 days per call.
kindNo
limitNoRows per page, 1 to 500.
clientNoFor a coach: a client id from list_clients, to read that client. Omitted: your own account.
cursorNoThe cursor from the previous page, to continue.
part_of_dayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that each entry carries its time and part of day, which is useful return-shape context, but says nothing about paging behavior, default result size, or the 366-day cap beyond what the schema states.

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?

Three short sentences with no filler; the content of the logs is front-loaded and the alternative-tool pointer is placed last where it belongs. Every clause carries information.

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, describing what an entry contains (calories, macros, veg portions, drink kind, time, part of day) is exactly the missing information an agent needs. Date-range defaults, paging and coach/client scoping are handled by the schema descriptions, so nothing material is left uncovered.

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 coverage is 71%, so the schema already documents the range, paging, client and cursor parameters in detail. The description adds meaning mainly for part_of_day (morning/midday/evening/late) and by naming the kinds of drinks captured, which is roughly baseline value rather than new semantics.

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 resource precisely and enumerates its contents (food with calories/macros/veg portions, drinks by kind, typed weight), and it explicitly routes totals requests to query_metrics. The action verb is only implied via the name and title rather than stated, so it falls just short of a full verb+resource statement.

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?

It gives one explicit when-not/alternative rule: 'For a day's totals, use query_metrics.' No guidance is given about query_intraday or the list_* siblings, and nothing says when a filter combination is preferable, but the most likely confusion is resolved.

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