Skip to main content
Glama

quran.ai

Organize study notes

interactive_study_ledger_organize
Destructive

Rearrange the user's notes, only when the user asks: create, rename, reorder, merge or ungroup groups, and move notes. It never changes a note's words and never deletes a note. The changes apply in order, as one change. For more than one note or a merge, 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. 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_organize"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesNoThe changes, in order. Omit when applying a proposal.
previewNoCheck and propose, without changing anything
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 only declare the generic profile (destructiveHint=true, not idempotent, closed world); the description goes well beyond them by stating that note text is never modified, nothing is deleted, all changes commit atomically in order, and a preview is rendered with Apply/Discard in every open reader. The failure contract spelling out `[conflict]`, `[invalid_request]`, and `[service_unavailable]` with recovery steps is exactly the behavioral context annotations cannot convey. The stated group removal on merge/ungroup is consistent with destructiveHint=true, not contradictory.

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?

Content is front-loaded: capability, then invariant, then workflow, then failure contract. Every sentence carries distinct information with no filler. It is dense to the point of being a run-on in the middle (the preview/confirm/apply sequence packs three steps into one sentence), which costs a point but not usability.

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 non-idempotent mutation tool with a bounded change-list schema, the definition covers scope, invariants, the preview/confirm/apply loop, concurrency handling via `revision`, and per-error recovery. An output schema exists, so return values need no explanation, and nothing essential for calling 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 operational meaning the schema does not: `revision` is the value read from interactive_study_ledger_read and is the basis for `[conflict]` detection, `proposal_id` applies a previously previewed change (and `changes` should be omitted then), and `preview=true` is required for multi-note or merge operations. It stops short of clarifying the interaction between supplying both `changes` and `proposal_id`.

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 specific verb and resource ("Rearrange the user's notes") and enumerates the exact operations: create, rename, reorder, merge, ungroup, move. It also draws a hard boundary against the edit and delete siblings ("never changes a note's words and never deletes a note"), so an agent can distinguish it from interactive_study_ledger_edit and interactive_study_ledger_delete without opening a 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 explicit gating condition ("only when the user asks"), a mandatory pre-step for multi-note or merge operations ("pass preview=true first"), a required human confirmation step in chat, and the follow-up call using proposal_id. That is a complete when-to-use, when-to-preview, and how-to-apply sequence rather than an implied one.

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.