Skip to main content
Glama

Set or clear a day's values

set_values
DestructiveIdempotent

Set a day's value outright, or clear it with null: a stated total ("make today's water 2 litres"), a correction, a yes/no that changed. For calories and macros this states the day's total; to change one food, use edit_food. Overwrites what the day holds, so confirm with the person first. Undo puts it back.

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

Input Schema

NameRequiredDescriptionDefault
dateNoOmit for today.
valuesYesField name to the value the day should hold, or null to clear it.
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.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=false, and the description adds real value on top: it names what is destroyed ('Overwrites what the day holds'), mandates human confirmation for a destructive write, and points at the recovery mechanism via undo. That is exactly the kind of beyond-annotation context a mutation tool needs.

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 sentences, front-loaded with the action and the null-to-clear behavior, then the routing rule, then the destructive-safety note. Quoted examples are short and disambiguating; no sentence is filler.

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 destructive, nested-object write with three parameters, the definition covers intent, the alternative, the total-vs-delta semantics, the overwrite consequence, and the undo path, while an output schema handles return values. Nothing an agent needs to call this correctly or safely 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 earns above that by clarifying the semantic model of `values`: it is the day's absolute total, not an increment, and null clears rather than sets. That total-vs-delta distinction is the most likely source of caller error and is only implicit in the schema wording.

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 ('Set a day's value outright, or clear it with null') and immediately illustrates the three concrete cases a user might mean (stated total, correction, yes/no that changed). It also names the sibling it is not ('to change one food, use edit_food'), so an agent can distinguish it from log_values and edit_food without reading schemas.

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 explicit routing guidance ('For calories and macros this states the day's total; to change one food, use edit_food') plus a required workflow step ('confirm with the person first') and a recovery path ('Undo puts it back'). The only gap is that it does not contrast against other same-family writes such as set_goals or log_values, but the description stands on its own without them.

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.