Skip to main content
Glama

Remove Diary Entry

remove_diary_entry
DestructiveIdempotent

Remove an entry from the user's diary, such as a wrong match. Use when the user asks to remove something. entry_id comes from the diary, recent meals or a logging result. quantity takes off only that much: it undoes a log that added to an existing entry, whose total_quantity_in_entry is higher than what was just logged.

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": {
      "entry_id": "<entry_id>",
      "request_id": "<request_id>"
    },
    "name": "remove_diary_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_idYesThe diary entry to remove.
quantityNoOnly take off this much. Leave out to remove the whole entry.
request_idYesA new unique string for this action. Reuse it only when retrying the same action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, and the description adds useful behavioral detail about partial removal via quantity. It does not fully explain downstream effects such as recalculating diary totals, but it goes beyond the annotation-level safety profile.

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?

The definition is compact and front-loads the core action, with the important quantity nuance placed after it. The phrase 'remove something' is slightly broad, but the surrounding diary-entry context keeps it focused.

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 diary mutation with rich annotations and full schema descriptions, the description covers the key intent, parameter provenance, and partial-removal behavior. Minor gaps around recalculating totals or response behavior are not critical given the existing structured metadata.

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 schema already defines all three parameters. The description still adds meaning by explaining that entry_id comes from the diary, recent meals, or a logging result, and by clarifying the partial-undo scenario for quantity.

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?

The description states a specific verb and resource: remove an entry from the user's diary. It adds a concrete example ('such as a wrong match') and explains partial removal, though it does not explicitly differentiate itself from nearby removal-related siblings.

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 gives a broad when-to-use cue ('when the user asks to remove something') and explains where entry_id comes from. However, it does not state when not to use it or distinguish it from other delete/removal tools such as delete_favorite_meal.

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