Skip to main content
Glama

Log a weigh-in

log_weight
Idempotent

Use this when the person tells you their weight. Give the weight and unit, and when (null is now). Targets follow the smoothed trend, never one reading. Comes back with an Undo. Do not use to set a weight goal.

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": {
      "weight": "<weight>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "log_weight"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNokg or lb; null is their program's unit.
weightYesThe weight the scale showed, in unit.
measuredAtNoWhen they weighed, an ISO date-time; null is now.
idempotencyKeyYesA new random id for this change (a UUID). Send the same one again only to retry this exact change.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / measuredAt / description
      Added value: +"When they weighed, an ISO date-time; null is now."
    • addedInput schema / properties / unit / description
      Added value: +"kg or lb; null is their program's unit."
    • addedInput schema / properties / weight / description
      Added value: +"The weight the scale showed, in unit."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the write/idempotent/non-destructive profile, yet the description adds real context beyond them: 'Comes back with an Undo' discloses reversibility, and 'Targets follow the smoothed trend, never one reading' explains the downstream effect of logging. It stops short of describing validation behavior (e.g. the 20-900 bounds) or what happens if a reading is rejected.

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 short sentences, front-loaded with the trigger, then inputs, then behavioral consequence, then the exclusion. Every sentence carries new information; nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a small logging tool with full schema coverage, an output schema, and annotations, the description covers trigger, inputs, consequence, reversibility, and the main misuse case. The only gap is error/validation behavior, which is a minor omission given an output schema exists.

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 every parameter including idempotencyKey is already documented in the schema. The description restates weight, unit, and measuredAt ('null is now') without adding format or constraint detail the schema lacks, which is the expected baseline-3 case.

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 concrete trigger-plus-action: 'Use this when the person tells you their weight,' naming both the verb (log) and the resource (a weight reading). It also distinguishes itself from the nearest confusion case by saying 'Do not use to set a weight goal,' so an agent can separate it from goal-setting behavior 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?

It states the activation condition explicitly ('when the person tells you their weight') and adds an explicit exclusion ('Do not use to set a weight goal'). Both the when and the when-not are present, leaving nothing about invocation timing to inference.

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.