Skip to main content
Glama

Log what actually happened on an experiment day

log_experiment_day
Idempotent

Records whether a user followed their assigned experiment-day action, with an optional note, so adherence can be analyzed honestly.

Instructions

Records what ACTUALLY happened on an experiment day: followed true or false (did the user do what that day's arm said), with an optional note. Only intervention and control days can be logged (not washout or unassigned days), not future days and not after the experiment was stopped. date defaults to today; id defaults to the one experiment running today (needed when none or several run). Logging a day again with a different answer keeps the earlier answer under earlier (nothing is lost); the same answer again changes nothing. analyze_experiment reports intention to treat (every assigned day) and per protocol (only days logged as followed), so honest logging, including false, matters. Local file only (experiments.json): never contacts Suunto, needs no credentials. Output: { id, date, arm, saved: { followed, note, loggedAt, earlier }, changed }. Not read-only, not destructive, idempotent.

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": {
      "followed": "<followed>"
    },
    "name": "log_experiment_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe experiment id (default: the one running today).
dateNoThe day, YYYY-MM-DD (default today; not in the future).
noteNoOptional, e.g. 'coffee at 15:00'.
followedYestrue: the user did what that day's arm said. false: they did not.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that re-logging preserves the prior answer under `earlier`, that an identical answer is a no-op, that state lives only in a local experiments.json with no Suunto contact or credentials, and it even spells out the return shape. The closing 'not read-only, not destructive, idempotent' correctly echoes and contextualizes the hints.

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?

Front-loaded with the verb and resource, then constraints, then consequences, then return shape — a logical progression with no filler sentences. Slightly over-dense and the trailing annotation restatement is mildly redundant, keeping it just below a 5.

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 4-parameter write tool with no output schema, the definition covers eligibility rules, defaults, idempotency/overwrite behavior, downstream analysis impact, and the exact return object. Nothing an agent needs in order to call it correctly is missing.

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 is 3, but the description adds genuine semantics: why `id` matters ('needed when none or several run') and that `date` cannot be in the future and defaults to today. The meaning of `followed` is restated with the arm-relative interpretation rather than raw boolean definition.

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?

States a specific verb and resource ('Records what ACTUALLY happened on an experiment day') plus the core semantics of the `followed` flag, which is precise enough to separate it from log_session or draft_session_log style tools. It does not explicitly name a sibling it is not, relying instead on within-tool scoping (only intervention/control days) to draw the boundary.

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?

Gives clear when-not conditions: not washout or unassigned days, not future days, not after the experiment was stopped, and it explains that honest false answers matter for per-protocol analysis. It lacks an explicit named alternative for logging non-experiment activity, so it stops short of the full when/when-not/alternatives bar.

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