Skip to main content
Glama

quran.ai

Edit a study note

interactive_study_ledger_edit
Destructive

Change one note's title, details or passage, only when the user asks. Keep the user's meaning: refine wording, never merge two notes. Every open reader shows the change at once. 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

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>",
      "revision": "<revision>"
    },
    "name": "interactive_study_ledger_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe note's id
titleNoA new title
phraseNoExact Arabic words inside the new passage
detailsNoNew details; an empty string clears them
passageNoA new passage, as for interactive_study_ledger_add. It replaces every passage the note was on, so give them all, the rest in more_passages
revisionYesThe ledger revision from your last interactive_study_ledger_read.
more_passagesNoMore passages for the same note, each with its own optional phrase: other ayahs or word spans, apart from the first or in another surah. Use it when one note is about several places, such as two similar ayahs that get confused. Order does not matter.

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/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds genuine context beyond them: the change propagates to 'every open reader' at once, and a structured failure contract maps three error codes to causes and recovery actions (re-read on conflict, invalid targets named). It does not spell out that a supplied passage replaces all existing passages — that disclosure lives only in the schema.

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 its precondition, then the invariant, then a clearly labeled failure contract — a logical ordering with little waste. The failure-contract sentence is long and semicolon-crammed, which costs a point on readability but not on usefulness.

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?

An output schema exists, so return values need no prose, and the annotations cover the safety profile. The description fills the remaining gaps an agent needs — when to act, what must not change, and how to recover from each failure class — for a seven-parameter mutation tool.

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 all seven parameters are already documented, and the description mostly restates rather than extends them. It does tie `revision` to the conflict failure mode ('the notes changed since `revision` was read'), which is a useful semantic link, but adds no format or constraint detail beyond the schema.

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?

States a specific verb and resource ('Change one note's title, details or passage') and scopes it to a single note ('never merge two notes'), which separates it from the add and organize siblings by implication. It never names an alternative tool outright, so the differentiation stops short of the top mark.

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' gives an explicit trigger condition, and 'never merge two notes' plus 'refine wording' gives a clear negative boundary. What is missing is routing guidance to named alternatives — nothing tells the agent to use interactive_study_ledger_add for a new note or interactive_study_ledger_delete for removal.

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.