Skip to main content
Glama

Marrow Health: Apple Health for your AI

Undo a change

undo_entry
DestructiveIdempotent

Take back something you did, by the id its tool returned. One id, or ids with up to 20, each reported on its own. Still waiting for the phone: cancelled. Already applied: a meal, water, weight, workout, sleep, symptom or mood entry is removed from Marrow and Apple Health. An edit, a delete or a targets change is put back as it was.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "undo_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe id a tool returned
idsNoSeveral ids in one call, in place of id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "Several ids in one call, in place of id",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations: pending items are cancelled, applied entries are removed from both Marrow and Apple Health (a cross-system side effect the agent could not guess), and edits, deletes and targets changes are restored to their prior state. It also notes per-id reporting for multi-id calls.

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?

Short, front-loaded with the core action, then the outcome matrix. Phrasing like "Still waiting for the phone: cancelled" is terse to the point of being slightly cryptic, but 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 destructive, cross-system tool with no output schema, it explains the outcomes per change type and the multi-id reporting model. Remaining gaps are error/invalid-id behavior and confirmation that at least one of id or ids must be given.

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 earns extra by clarifying that the id comes from a previously returned tool result and that with ids each entry is reported on its own, implying partial success rather than all-or-nothing. It does not clarify whether id and ids are mutually exclusive or what happens if both are supplied.

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?

"Take back something you did, by the id its tool returned" gives a specific verb and the mechanism (an id from a prior tool call), and the final sentences explain what undo means for each kind of prior change, which separates it from delete_entry or edit_entry. It is clear without naming a sibling outright.

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

Usage Guidelines3/5

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

It implies the calling context (use an id that a prior tool returned) and covers the one-vs-many shape, but never states when to prefer undo_entry over edit_entry or delete_entry, nor what to do if the original id is unknown. Usage is inferable rather than explicit.

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