Skip to main content
Glama

quran.ai

Delete study notes

interactive_study_ledger_delete
Destructive

Delete the user's notes, only when the user asks. Pass preview=true first: every open reader shows the proposal with Apply and Discard. Ask the user to confirm in the chat, and apply it by passing its proposal_id once they agree. After a deletion every open reader offers Undo for 15 minutes; pass the returned undo id back as undo to put the notes back. Failure contract: [conflict] when the notes changed since revision was read, or the change would duplicate a note: read them again; [invalid_request] for a note, group or passage that doesn't exist, naming what does; [service_unavailable] when the notes cannot be changed.

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

Input Schema

NameRequiredDescriptionDefault
idsNoThe notes' ids
undoNoPut back the notes this deletion removed
previewNoCheck and propose, without deleting
revisionNoThe ledger revision from your last interactive_study_ledger_read.
proposal_idNoApply this preview

Output Schema

NameRequiredDescriptionDefault
undoNoFor a deletion: pass it to delete as undo within 15 minutes
statusYes
note_idNo
revisionYesThe ledger revision now, for a following change
sentenceYesRepeat this to the user
proposal_idNoFor a preview: pass it back to apply

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds far more: a two-phase preview/apply proposal that appears in every open reader, a 15-minute undo window, concurrency expectations around revision, and a concrete failure contract with [conflict], [invalid_request] and [service_unavailable] and the remedy for each.

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 action and gating condition, then the workflow, then the failure contract in a compact semicolon-delimited list. Every sentence carries information, though the middle workflow sentences are dense and pack confirm/apply steps together.

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

Completeness5/5

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

For a destructive, multi-step tool with an output schema, this covers the safety workflow, the confirmation requirement, the undo recovery window, and all named error codes with remedies. Nothing an agent needs in order to call it correctly is missing.

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, but the description adds real meaning beyond the one-line schema text: preview proposes rather than deletes, proposal_id applies a specific proposal, undo restores a deletion, and revision drives the [conflict] check. Only the ids parameter is left entirely to the schema.

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 precise verb and resource ('Delete the user's notes') and immediately scopes it ('only when the user asks'), which separates it from the add/edit/read siblings in the same ledger family. An agent knows exactly what this tool does without opening the 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 gives an ordered workflow: preview=true first, then ask the user to confirm in chat, then apply via proposal_id. It also states the gating condition ('only when the user asks') and the recovery path via undo, so when-to-use and when-not-to-use are both 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.