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 split a compound (sammāsambuddhassasammā + sambuddha + -ssa genitive).

  • 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.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds substantial behavioral context: it is rule-based, not a full morphological analyzer, does not reverse sandhi, and returns possible stems that need verification via get_word_definition. This goes beyond the structured annotations and gives the agent accurate expectations about the tool's limitations and output.

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 description is well-structured with a one-sentence summary, emoji-supported sections, and explicit bullet points for usage and limitations. It is longer than necessary but each section earns its place. The minor internal contradiction adds noise and slightly detracts from conciseness, so it does not reach a perfect 5.

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?

Given the presence of an output schema, the description does not need to explain return values. It covers when to use, recommended workflow, limitations, and verification steps, making it quite complete. However, the compound-splitting contradiction leaves a gap in understanding, preventing a perfect score.

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?

The input schema has one parameter 'word' with a clear description ('An inflected Pāli word') and examples, achieving 100% schema coverage. The main description reinforces this with additional examples and context about what constitutes an inflected word, but it does not add meaning beyond what the schema already provides. Baseline 3 is appropriate.

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 clearly states the core function: 'Strip Pāli inflectional suffixes to find the root form (basic stem).' This specifies the verb (strip), resource (Pāli word), and the result (root form). It also distinguishes itself from sibling tools like get_word_definition by focusing on morphological analysis rather than dictionary lookup.

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 description explicitly provides 'Use this tool when' bullets, a recommended workflow, and limitations. It names get_word_definition as the alternative for looking up stems. However, there is an internal contradiction: the second bullet claims you can 'split a compound,' while the Limitations section states 'Compound words (samāsa) are NOT split.' This inconsistency undermines the clarity of usage guidance, though the overall context is still helpful.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose. Search tools are differentiated by strategy (keyword, hybrid, semantic, exhaustive). Reading tools separate content retrieval, comparison, and viewer rendering. Parsing and definition tools have complementary roles. No overlapping functionality.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case, e.g., compare_translations, get_sutta, list_editions, search_by_keyword. The only slight deviation is open_sutta_viewer using 'open' instead of 'view', but it still fits the pattern.

Tool Count5/5

12 tools is well within the ideal range for a domain-specific server. Each tool addresses a distinct need: retrieval, search, parsing, dictionary, citation, structure overview, and comparison. No bloat or thinness.

Completeness5/5

The tool surface covers the full lifecycle for a read-only Pāli canon server: fetching content, searching (multiple modes), viewing with translations, comparing translations, parsing words, looking up definitions, listing editions and structure, and generating citations. There are no obvious gaps for the intended use case.

Resources