Skip to main content
Glama

Log a moment

log_moment

Log one entry (a moment) against one of the user's trackers, when the user says that they did or measured something that they track ("I drank a glass of water", "my mood is 4"). A moment is not an event: use write_events for the schedule. Get trackerId from get_moments; this tool does not find a tracker by name or make one. time defaults to now and value to the tracker default; a rating is a whole number from ratingMin to ratingMax. Each call adds one new entry, so do not repeat a call that succeeded. Returns created. It has no undo receipt, and no tool edits or removes an entry: the user removes a wrong entry in the app.

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": {
      "trackerId": "<trackerId>"
    },
    "name": "log_moment"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoAn optional note, at most 1000 characters.
timeNoWhen it happened, a local datetime "YYYY-MM-DDTHH:MM" in the user's timezone. Defaults to now.
valueNoThe value. Defaults to the tracker default: one step for a tally or a quantity, the middle of the scale for a rating. A rating value must be a whole number from `ratingMin` to `ratingMax` of the tracker.
trackerIdYesThe tracker to log against: an `id` from get_moments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses non-obvious behavior: each call appends one new entry, a successful call must not be repeated, it returns `created`, and there is no undo receipt or any edit/delete tool — the user must fix mistakes in the app. That mutation-and-irreversibility profile is exactly what an agent needs before writing.

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 definition is front-loaded: purpose first, then the sibling exclusion, then the id source, then defaults and the retry warning. Most sentences carry distinct information, though the parameter-default sentences partially duplicate the schema and could be trimmed without loss.

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 mutation tool with no output schema, the description covers what an agent needs: how to obtain the required id, default values, rating constraints, the return value (`created`), retry safety, and the absence of any undo/edit path. Nothing material about invoking it correctly is missing.

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 description coverage is 100%, so defaults for `time` and `value`, the ratingMin/ratingMax constraint, and the `trackerId` source are already documented in the schema. The description restates the same facts (defaults to now, whole-number rating range, id from get_moments) rather than adding new semantics, so the baseline of 3 applies.

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 gives a specific verb and resource ('Log one entry (a moment) against one of the user's trackers') and immediately scopes it with the triggering user utterance. It also draws an explicit line against the sibling write_events ('A moment is not an event: use write_events for the schedule'), so the agent can route correctly without opening another schema.

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

Usage Guidelines5/5

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

It states the exact condition for use ('when the user says that they did or measured something that they track') and names the alternative tool with its domain. It also sets a precondition on the required id ('Get trackerId from get_moments') and an explicit exclusion ('this tool does not find a tracker by name or make one'), covering when-not-to-use as well.

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.