Skip to main content
Glama

quran.ai

Add a study note

interactive_study_ledger_add

Add one note to the user's notes ledger, only when the user asks: a title in the user's words, the passage it is on, optional longer details, and optionally a group, existing or new. One note can be on several passages: pass the others in more_passages. Every open reader shows it 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": {
      "passage": "<passage>",
      "title": "<title>",
      "revision": "<revision>"
    },
    "name": "interactive_study_ledger_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoAn existing group's exact name or id, or a new group's name. Omit for Ungrouped.
titleYesThe note's title, in the user's words
phraseNoExact Arabic words inside the passage, to note only those words.
detailsNoLonger writing under the title
passageYesAn ayah such as '2:255', a range such as '2:255-257', or a whole surah such as '112' or 'al-ikhlas'.
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.3/5.0
Behavior5/5

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

Annotations only state readOnlyHint=false and idempotentHint=false; the description goes well beyond them by disclosing that every open reader updates at once, that writes are guarded by a revision token, and that duplicate notes are rejected. The failure contract enumerates three error codes with remedies, which is unusually rich behavioral disclosure for a mutation tool.

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?

Purpose and the user-consent gate are front-loaded, and the failure contract is separated out in a labeled clause, which aids scanning. The paragraph is dense and repeats some schema-level parameter meaning (group, more_passages), costing it a point.

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?

With seven parameters, a rich input schema, an output schema, and non-readonly annotations, the description still covers the mutation effect, concurrency model, and recovery paths. Nothing an agent needs in order to call it correctly and handle failures 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 it: the title must be 'in the user's words,' a group may be existing or new, and more_passages exists specifically for one note spanning several places such as confusable ayahs. It also explains the role of revision through the conflict contract rather than merely restating the schema's 'last read' phrasing.

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 opens with a specific verb and resource: 'Add one note to the user's notes ledger,' which makes it clearly a creation tool rather than an edit, delete, or read. It does not explicitly name sibling tools such as interactive_study_ledger_edit or interactive_study_ledger_delete, so the add-vs-modify distinction is inferred from the verb rather than stated.

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 the failure contract tells the agent to 'read them again' on a conflict, which is actionable next-step guidance. However, it never names the alternative tool for revising an existing note (edit), so the agent must infer routing from sibling names alone.

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.