Skip to main content
Glama

Marrow Health: Apple Health for your AI

Delete entries

delete_entry
DestructiveIdempotent

Remove entries from Marrow and Apple Health by id: food entries (ids from nutrition_log, the user's own or ones you added) and weight, water or body fat entries you logged (ids from metric_samples). One entry_id, or entry_ids with up to 20. Each id is reported on its own. Entries of the last 30 days. Only when the user asks. undo_entry with a returned id restores that entry.

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

Input Schema

NameRequiredDescriptionDefault
entry_idNoThe entry's id: a food's from nutrition_log, or a weight, water or body fat entry's from metric_samples
entry_idsNoSeveral ids in one call, in place of entry_id
idempotency_keyNoOptional. The same key never logs twice. Use a new one to log an identical entry again on purpose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / entry_id / description
      Previous value: -"The entry's id from nutrition_log"New value: +"The entry's id: a food's from nutrition_log, or a weight, water or body fat entry's from metric_samples"
    • addedInput schema / properties / entry_ids
      Added value: +{
      +  "description": "Several ids in one call, in place of entry_id",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "entry_id"
      -]
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which already flag destructive and idempotent), the description discloses the 30-day eligibility limit, the 20-id batch cap, per-id result reporting, that deletion propagates to Apple Health, and the undo path. That is exactly the extra context a destructive 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and target, and every clause carries information — scoping, batch limits, result granularity, time window, permission gate, reversal. It is telegraphic to the point of choppiness in fragments like 'Entries of the last 30 days,' but there is no filler.

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?

Covers scope, source systems, batch limits, the time window, the user-consent gate, and recovery, which is most of what a destructive mutation needs with no output schema. It leaves open the failure behavior for out-of-window or already-deleted ids, but the essentials are present.

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 coverage is 100%, so the parameter descriptions already carry id provenance, the maxItems=20 limit, and the idempotency_key contract. The description restates the single-vs-batch choice and the 20 cap without adding format or precedence details the schema lacks, so the baseline of 3 applies.

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 ('Remove') plus the exact resources (food, weight, water, body fat entries) and the two backing systems (Marrow and Apple Health). It also names the id sources (nutrition_log, metric_samples), so an agent can tell it apart from undo_entry and edit_entry without opening 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?

'Only when the user asks' is an explicit gating condition, and 'undo_entry with a returned id restores that entry' names the reversal alternative outright. It never contrasts with edit_entry or explains what to do when an id falls outside the 30-day window, so guidance is clear but not exhaustive.

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