Skip to main content
Glama

Parse Pāli Word

parse_pali_word
Read-onlyIdempotent

Strip Pāli inflectional suffixes to find the root form (basic stem).

💡 Use this tool when:

  • You find an inflected Pāli word (e.g. dukkhassa, bhikkhūnaṁ) and get_word_definition doesn't find it directly — Pāli inflects nouns across 7 cases × 2 numbers, ~16 forms per root.

  • You want to see possible stems before another get_word_definition lookup.

🔄 Recommended workflow: parse_pali_word(inflected_form) → get possible_stems[] → call get_word_definition(stem) per stem until you find a definition.

⚠️ Limitations:

  • Rule-based first-pass — strips common suffixes (case endings, vowel shortening). Not a full morphological analyzer.

  • Compound words (samāsa) are NOT split — dukkhanirodha won't be broken into dukkha + nirodha.

  • Sandhi (sound junctions) like tena ahaṁ → tenāhaṁ aren't reversed.

  • Returns possible stems — verify each via get_word_definition.

⚠️ possible_stems are rule output, not findings. They come from the suffix table applied to your input — nothing was looked up, so no field carries a segment_id, and some candidates are not Pāli words at all. Treat each as a spelling to try in get_word_definition, never as an attested form.

Input Schema

NameRequiredDescriptionDefault
wordYesAn inflected Pāli word (e.g. "dukkhassa", "bhikkhūnaṁ", "sīlavā").

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / word / description
      Previous value: -"คำบาลีที่ inflected (เช่น \"dukkhassa\", \"bhikkhūnaṁ\", \"sīlavā\")"New value: +"An inflected Pāli word (e.g. \"dukkhassa\", \"bhikkhūnaṁ\",\n  \"sīlavā\")."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds substantial behavioral context: it is a rule-based first pass, does not split compounds, does not reverse sandhi, and crucially warns that possible_stems are unattested rule output with no segment_id and may not be real Pāli words.

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?

Well-organized with bolded sections (Use this tool when / Recommended workflow / Limitations) and front-loaded purpose. Slightly verbose, as the 'possible_stems are not attested' caveat is effectively stated twice (in Limitations and again in the final warning), which costs 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?

Given an output schema exists, the description is more than complete: it explains the semantics and reliability of possible_stems that an agent cannot safely infer from the schema alone. Nothing needed to call or interpret the tool correctly is missing.

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?

Only one parameter and schema description coverage is 100%, so the schema already documents the 'word' input with examples. The description reinforces the input type with the same examples but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb ('strip inflectional suffixes') and resource ('inflected Pāli word') with an explicit goal ('find the root form / basic stem'). It clearly distinguishes itself from get_word_definition by framing itself as the fallback that produces candidate stems for that tool.

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?

Provides an explicit 'Use this tool when' block with two triggering conditions and a named alternative (get_word_definition). The 'Recommended workflow' section spells out the exact call sequence parse_pali_word -> get_word_definition over possible_stems, leaving nothing to inference.

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.

Resources