Skip to main content
Glama

Dhamma.Gift — Pāli Canon

get_text

Fetch a sutta by id (e.g. "dn22", "mn1", "sn56.11") — the Pali text (Mahāsaṅgīti) of every segment. Pali only by default; pass langs for translations, translators to name a translator (e.g. ["en_sujato"]), editions for the whole text of other Pali editions line by line (the whole canon, see compare_editions). Same data as dhamma.gift/api/text.

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": {
      "suttaId": "<suttaId>"
    },
    "name": "get_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
langsNoTranslation languages to include, e.g. ["ru","en"]. Default: none (Pali only).
suttaIdYesSutta id, e.g. dn22, mn1, sn56.11.
editionsNoOther Pali editions to add, each segment beside the Mahāsaṅgīti: bjt (Buddha Jayanti, Sri Lanka), my (Chaṭṭha Saṅgāyana, Myanmar), th (Siam Rath, Thailand), mso (Mahāsaṅgīti as printed, 2005), pts (Pali Text Society), or ["all"]. The whole canon (gaps: https://dhamma.gift/docs/compare).
translatorsNoExplicit translator keys, e.g. ["en_sujato"] to include Sujato.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / editions / description
      Previous value: -"Other Pali editions to add, each segment beside the Mahāsaṅgīti: bjt (Buddha Jayanti, Sri Lanka), my (Chaṭṭha Saṅgāyana, Myanmar), th (Siam Rath, Thailand), mso (Mahāsaṅgīti as printed, 2005), pts (Pali Text Society), or [\"all\"]. DN, MN, SN and AN only."New value: +"Other Pali editions to add, each segment beside the Mahāsaṅgīti: bjt (Buddha Jayanti, Sri Lanka), my (Chaṭṭha Saṅgāyana, Myanmar), th (Siam Rath, Thailand), mso (Mahāsaṅgīti as printed, 2005), pts (Pali Text Society), or [\"all\"]. The whole canon (gaps: https://dhamma.gift/docs/compare)."
  2. Changed6 schema fields changed
    • addedInput schema / properties / editions / maxItems
      Added value: +10
    • addedInput schema / properties / langs / items / maxLength
      Added value: +60
    • addedInput schema / properties / langs / maxItems
      Added value: +30
    • addedInput schema / properties / suttaId / maxLength
      Added value: +100
    • addedInput schema / properties / translators / items / maxLength
      Added value: +60
    • addedInput schema / properties / translators / maxItems
      Added value: +30
  3. Changed1 schema field changed
    • addedInput schema / properties / editions
      Added value: +{
      +  "description": "Other Pali editions to add, each segment beside the Mahāsaṅgīti: bjt (Buddha Jayanti, Sri Lanka), my (Chaṭṭha Saṅgāyana, Myanmar), th (Siam Rath, Thailand), mso (Mahāsaṅgīti as printed, 2005), pts (Pali Text Society), or [\"all\"]. DN, MN, SN and AN only.",
      +  "items": {
      +    "enum": [
      +      "bjt",
      +      "my",
      +      "th",
      +      "mso",
      +      "pts",
      +      "all"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / suttaId / description
      Previous value: -"SuttaCentral-style id, e.g. dn22, mn1, sn56.11."New value: +"Sutta id, e.g. dn22, mn1, sn56.11."
  5. First observed

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral load. It does describe defaults (Pali only, langs default none) and edition gaps via a docs link, but says nothing about response size, pagination, missing-segment behavior, or whether gaps produce errors — notable given "the whole canon" return volume.

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?

Front-loaded with the core action and id example, then layered expansions in a single dense paragraph. Slightly long with nested parentheticals (e.g. the compare edition docs link) but every clause is informative.

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 4-parameter read tool with 100% schema coverage and no output schema, the description supplies what the schema cannot: id format, default output language, and the semantic relationship among langs/translators/editions. Nothing essential to calling it 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?

Schema coverage is 100%, so the baseline is 3 regardless. The description reinforces the key semantic (langs/translators are additive to default Pali) and the translator key format, but adds no new syntax or constraint detail beyond the 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?

Specific verb + resource: fetch a sutta by id, with concrete id examples ("dn22", "mn1", "sn56.11"). It distinguishes itself from the sibling compare_editions and implies contrast with compare_translations, so an agent can tell which tool returns primary text.

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?

Clear default behavior (Pali only) and explicit conditions for expanding: pass langs for translations, translators to name a translator, editions for whole-text other editions, with a pointer to compare_editions. No explicit when-not-to-use statement, but the routing signal to the sibling is strong.

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.