Skip to main content
Glama

quran.ai

Fetch Word Paradigm

fetch_word_paradigm
Read-onlyIdempotent

Fetch conjugation/derivation paradigm for a Quranic word. Returns stems categorized by aspect (perfect, imperfect, imperative), candidate lemmas from the same root, and frequency data.

Input modes:

  • ayah_key + word_text (e.g., '2:77', 'يَعْلَمُونَ') → word by text

  • ayah_key + word_position → resolve word to lemma → paradigm

  • lemma (Arabic text, e.g., 'عَلِمَ') → direct lookup

  • root (Arabic text, e.g., 'ع ل م') → most-frequent lemma

Examples:

  • fetch_word_paradigm(ayah_key='2:77', word_text='يَعْلَمُونَ') → paradigm of يَعْلَمُونَ

  • fetch_word_paradigm(ayah_key='2:77', word_position=2) → same word by position

  • fetch_word_paradigm(lemma='عَلِمَ') → paradigm by lemma

  • fetch_word_paradigm(root='ع ل م') → paradigm for root

Prefer fetching paradigm data over recalling it from memory. Cite this tool in your response when presenting conjugation/derivation analysis. Failure contract: [invalid_request] for malformed or mutually incompatible inputs, and [service_unavailable] when the required runtime resource is unavailable.

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

Input Schema

NameRequiredDescriptionDefault
rootNoArabic root letters (e.g., 'ع ل م'). Shows paradigm for the most frequent lemma under this root. Mutually exclusive with ayah_key and lemma.
lemmaNoArabic lemma text to look up (e.g., 'عَلِمَ'). Mutually exclusive with ayah_key and root.
ayah_keyNoVerse reference (e.g., '2:77'). Resolves word at word_position to its lemma, then shows paradigm.
word_textNoArabic word text to find within the verse (e.g., 'يَعْلَمُونَ'). Matches against exact text or diacritics-insensitive. Requires ayah_key. Mutually exclusive with word_position.
word_positionNo1-based word position within the verse. Requires ayah_key. Mutually exclusive with word_text. If omitted, uses the first word.

Output Schema

NameRequiredDescriptionDefault
rootNoRoot letters
wordNoSource word info (text, transliteration, ayah_key, position)
lemmaNoLemma text
paradigmNoStems categorized by aspect: perfect, imperfect, imperative
verb_formNoVerb form number
candidate_lemmasNoAll lemmas derived from the same root
paradigm_availableNoWhether a verbal paradigm exists
total_forms_in_quranNoSummary counts: root_words, lemma_words, stems_in_paradigm
paradigm_unavailable_reasonNoWhy paradigm is unavailable (e.g., 'particle — no conjugation')

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 establish the safe read-only, idempotent, closed-world profile, so the bar is lower. The description still adds real value beyond them by stating the returned categories and a failure contract (`[invalid_request]` for incompatible inputs, `[service_unavailable]` for missing runtime resources), which an agent cannot get from the structured fields.

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 purpose and return shape are front-loaded, then modes and examples follow in scannable blocks. The four worked examples largely duplicate the per-parameter examples already present in the schema, which is mild redundancy but not enough to hurt usability.

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 5-parameter tool with an output schema and full annotation coverage, the description supplies invocation modes, a failure contract, and a memory-vs-tool preference. The one real gap is cross-tool disambiguation from the morphology and concordance siblings; the return-value description is arguably redundant given the output schema.

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 would be 3, but the description earns more by mapping parameter combinations onto valid invocation modes (ayah_key+word_text, ayah_key+word_position, lemma alone, root alone) rather than documenting parameters in isolation. The examples make the mutual-exclusivity constraints operationally obvious.

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 opening sentence names a specific verb and resource — fetching a conjugation/derivation paradigm for a Quranic word — and enumerates the returned content (stems by aspect, candidate lemmas, frequency data). It does not, however, distinguish itself from the closely related sibling `fetch_word_morphology`, leaving an agent to infer which of the two to call for morphological questions.

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?

The four named input modes with concrete examples give a clear picture of the supported call shapes, and 'Prefer fetching paradigm data over recalling it from memory' plus the citation instruction are explicit usage directives. What is missing is routing guidance against siblings — nothing says when to prefer this over `fetch_word_morphology` or `fetch_word_concordance`.

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.