Skip to main content
Glama

Log values for a day

log_values
Idempotent

Log anything that is not food for a day, by the person's own field names (get_overview lists them). A field that adds up (water, coffee) ADDS what you send, so send what happened now, never the new total; a reading (weight, mood) or a yes/no fills a day that has none. To change what the day already holds, use set_values. A name that is not a field is refused: ask the person whether to track it.

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": {
      "idempotency_key": "<idempotency_key>",
      "values": "<values>"
    },
    "name": "log_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoOmit for today.
valuesYesField name to value, in the person's units: {"Weight (kg)": 78.4, "Water (ml)": 500, "Headache": true}.
idempotency_keyYesA new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one.

Output Schema

NameRequiredDescriptionDefault
dateYes
writtenYes
replayedNo
write_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare non-read-only, idempotent, non-destructive, closed-world. The description adds the crucial semantics annotations can't: additive fields accumulate rather than overwrite, readings only populate empty days, and unknown field names are rejected rather than silently created. These are non-obvious behavioral traits an agent would otherwise get wrong.

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 sentences, each carrying distinct operational information: scope, value-type behavior, the mutation alternative, and the refusal case. Nothing is redundant with annotations or schema, and the highest-risk rule (additive vs. total) is placed early.

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?

A 3-parameter nested-object write tool with an output schema, so return values needn't be explained. The description covers the two things that actually cause bad calls: sending running totals to additive fields, and inventing field names. With 100% schema coverage plus annotations covering the safety profile, nothing material 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. The description adds semantic meaning beyond the schema's format rules: it explains that values are keyed by the person's own field names (discoverable via get_overview) and that numeric meaning depends on field type (increment vs. fill). It doesn't restate the idempotency or date parameters, which the schema already fully documents.

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+resource+scope: 'Log anything that is not food for a day, by the person's own field names.' It explicitly excludes food, points to get_overview for field names, and distinguishes itself from set_values. An agent can identify this tool without opening a 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?

Gives per-value-type routing rules: cumulative fields add an increment ('send what happened now, never the new total'), readings and yes/no fill only an empty day, and changing an existing day goes to set_values. It also names the failure path for unknown names (refuse, ask whether to track it). This is near-complete when/when-not guidance tied to sibling alternatives.

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.