Skip to main content
Glama

List Tipiṭaka Structure

list_structure
Read-onlyIdempotent

Show the structure of all three pitakas with coverage statistics.

💡 Use this tool when:

  • The user asks for an overview of the Tipiṭaka (what's in it / which collections).

  • You need to check coverage before promising a search will find something — segment_count > 0 is the active-loaded signal.

  • Verifying scope when compiling an artifact.

📊 Current state (v1.1+, at parity with SuttaCentral bilara-data):

  • Sutta Piṭaka complete: DN 37, MN 155, SN 1,829, AN 1,419, KN 2,351 sections (~284,702 segments) — Pāli + Sujato EN

  • Vinaya Piṭaka complete: Bhikkhu Vibhaṅga 222, Bhikkhunī Vibhaṅga 127, Khandhaka 22, Parivāra 51 + Pātimokkha 2 (~71,557 segments) — Pāli + Brahmali EN

  • Abhidhamma Piṭaka complete: 7 books (ds, vb, dt, pp, kv, ya, patthana) ~88,414 segments — Pāli only (bilara has no English for any Abhidhamma book)

  • Total ~444,673 segments in the DB

⚠️ Known quirks:

  • The schema carries duplicate legacy + SC-modern codes side by side:

    • Vinaya: vin-v/vin-m/vin-c/vin-p (legacy, segment_count = 0) alongside pli-tv-bu-vb/pli-tv-bi-vb/pli-tv-kd/pli-tv-pvr (active, populated).

    • Abhidhamma: ym/pt (legacy = 0) alongside ya/patthana (active).

  • Use the active flag — each nikaya carries active: true/false (true ⇔ segment_count > 0). Pick active nikayas; the others are metadata placeholders from an older migration.

🌐 Languages: Returns Pāli + Thai + English labels regardless of enabled set (these are metadata, not segment text). Text content follows ENABLED_LANGUAGES. Thai translations aren't loaded yet.

Returns: Hierarchical structure: - pitakas{vinaya/sutta/abhidhamma} → nikayas[] - Each nikaya: code, name (3 languages), sutta_count, segment_count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses important behavioral quirks: legacy vs. active schema codes, the meaning of the 'active' flag, and language handling (returns Pāli/Thai/English labels regardless of enabled languages, while text follows ENABLED_LANGUAGES). This is genuinely useful context that annotations alone do not provide.

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 longer than average, but it is well-structured with clear headers ('Use this tool when', 'Current state', 'Known quirks') and front-loaded with the core purpose. Every sentence adds relevant detail—coverage numbers, schema quirks, and output shape—so it earns its length, though it could arguably be tightened.

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 tool with no parameters and only basic annotations, the description is remarkably complete: it explains the full hierarchical structure, current data status, legacy-code issues, the active flag semantics, language behavior, and the return shape. Nothing important about scope or behavior is left ambiguous.

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?

There are zero parameters, so the baseline is 4. The description compensates by detailing what the returned structure looks like (pitakas → nikayas, fields included) and clarifies the meaning of key output fields like segment_count and active, which adds value beyond the empty schema.

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 'Show the structure of all three pitakas with coverage statistics', which is a specific verb+resource combination that clearly distinguishes this tool from search and retrieval siblings. It also indicates the unique value proposition (coverage statistics) and the scope (all three pitakas).

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?

The description includes an explicit 'Use this tool when' section listing three concrete triggers: user asks for overview, checking coverage before promising search, and verifying scope when compiling artifacts. This gives clear guidance on when to select this tool over alternatives like survey_corpus or search tools.

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