Skip to main content
Glama
io.github.rwestergren/cronometer-api-mcp

io.github.rwestergren/cronometer-api-mcp

by rwestergren

get_diary_groups

Read-onlyIdempotent

Retrieve an account's diary groups (meal slots) and their names to correctly interpret food log entries, since custom group names and extra slots shift ordering.

Instructions

Get the account's diary groups (meal slots) and their names.

Group names are customizable, so "Lunch" is not always the same slot: an account with extra groups such as "Post-workout" shifts every later group. Use this to interpret entries from get_food_log, whose order field carries the group in its upper bits (order >> 16): group here is that number, so an entry with order 196609 is in group 3.

Returns each group as {group, pref, name, enabled}, in diary order. Group 0 is a regular slot whose name depends on the account. A group with enabled=false is hidden in the app but may still contain older entries.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.7

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive safety profile, and the description adds real context beyond that: group names are customizable and shift with extra groups, group 0 is an account-dependent regular slot, and enabled=false groups are hidden but may still hold older entries. It does not discuss auth or rate limits, but those are not the salient concerns here.

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 purpose and the get_food_log linkage are front-loaded, and each sentence contributes — the bit-shift note and the enabled=false caveat both prevent misreading. It is slightly dense in the middle with the order/group arithmetic, but nothing is wasted.

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 zero-parameter read tool with an output schema, the description covers everything an agent needs: what is returned, ordering, the meaning of group 0, how to join against get_food_log orders, and the hidden-group caveat. Return-value details are appropriately left to the 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 tool takes zero parameters, so the baseline is 4. The bit-shift explanation (`order >> 16`) and the 196609→group 3 example describe how to map returned data rather than parameter meaning, which is a bonus but not a parameter concern.

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?

The description opens with a specific verb and resource ('Get the account's diary groups (meal slots) and their names') and explicitly distinguishes the tool's role from get_food_log by naming the relationship between the two. An agent can identify the tool 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?

It gives a clear trigger — 'Use this to interpret entries from get_food_log, whose `order` field carries the group in its upper bits' — so the when-to-use condition is explicit. It does not state when-not to use it or name an alternative source for group metadata, but the context is sufficient for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.