Skip to main content
Glama

Delete a measurement

trainrec_delete_measurement
Destructive

Removes one reading, given its id and version. The person can undo it 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": {
      "id": "<id>",
      "version": "<version>"
    },
    "name": "trainrec_delete_measurement"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation profile is covered. The description adds genuinely new behavioral context: the deletion is undoable in the app, which tells the agent the effect is recoverable. It stops short of saying what happens on a version mismatch or whether the id is scoped to the current person.

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?

Two short sentences with zero filler, and the scope constraint plus the reversibility caveat are front-loaded. Nothing redundant.

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

Completeness3/5

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

For a destructive two-parameter mutation with no output schema, the description covers what is removed and that it is recoverable, which is the core. It omits what an agent needs to call it safely: what version is checked against, what happens when it does not match, and whether the caller must own the reading.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry both parameters. It names id and version but explains neither: it does not say that id identifies a specific reading versus a date range, and it leaves version's purpose (likely optimistic-concurrency guard) entirely unexplained, which is the highest-risk unknown on a delete call.

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?

"Removes one reading, given its id and version" states a specific verb (removes) and a specific, single-object resource, so an agent can tell this apart from the log/edit siblings. The only weakness is the wording mismatch between "reading" and the tool's "measurement" framing, which is minor.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The undo note hints at a reversibility tradeoff, but the description never tells the agent to prefer trainrec_undo_change over a re-delete, or what conditions warrant deletion.

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.

Resources