Skip to main content
Glama

Dhamma.Gift — Pāli Canon

compare_editions

Compare the Pali Canon's editions line by line: the Mahāsaṅgīti beside Buddha Jayanti (Sri Lanka), Chaṭṭha Saṅgāyana (Myanmar), Siam Rath (Thailand), the printed Mahāsaṅgīti of 2005 and the PTS editions (the whole canon; gaps: PTS has no Netti or Peṭakopadesa, of the Jātaka the verses only, of the later books only what PTS printed; Siam Rath has no Pātimokkha (the Mahāmakuṭa Pātimokkha stands in its place, pli-tv-bu-pm); the Mahāsaṅgīti of 2005 lacks a few passages of the later books. Details: https://dhamma.gift/docs/compare). Give a sutta ("sn56.11"), a line ("dn22:18.1") or a range ("sn56.11:5.1-5.4"). The answer starts with a summary per edition (name, license, lines present, missing, differing), then the lines where some edition reads differently, each with the differing words. Case, punctuation and ṁ/ṃ are not counted as differences.

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": {
      "id": "<id>"
    },
    "name": "compare_editions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA sutta (sn56.11), a line (dn22:18.1) or a range of lines (sn56.11:5.1-5.4).
allNoEvery line, not only the lines where an edition differs. Default false.
fromNoContinue from this line (the next_from of a previous answer).
limitNoLines per answer (default 60); the answer gives next_from to continue.
editionsNoEditions to compare with the Mahāsaṅgīti. Default: all of bjt, my, th, mso, pts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / editions / maxItems
      Added value: +10
    • addedInput schema / properties / from / maxLength
      Added value: +100
    • addedInput schema / properties / id / maxLength
      Added value: +100
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so: it discloses the response shape (per-edition summary of name, license, lines present/missing/differing, then differing lines with the words), the continuation mechanism via next_from, and the normalization rule that case, punctuation and ṁ/ṃ are not counted as differences. It also pre-empts false alarms by naming known edition gaps (PTS lacking Netti/Peṭakopadesa, Siam Rath lacking Pātimokkha with pli-tv-bu-pm standing in).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening clause is well front-loaded with the verb and resource, but the second sentence is a run-on with a long semicolon-chained parenthetical listing every edition's lacunae, which is hard to parse and partly redundant with the linked doc. Every fact is relevant, but the density and nesting work against quick scanning.

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?

There is no output schema, and the description fully compensates by describing the return structure, the pagination contract, and the difference-detection rules. For a comparison tool with five parameters and known data quirks, an agent has everything needed to call it and interpret the result.

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 id/all/from/limit semantics are already documented; the description largely repeats the id examples and the limit/next_from behavior. Where it genuinely adds value is decoding the cryptic enum values bjt/my/th/mso/pts into named editions, which the schema does not do.

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?

"Compare the Pali Canon's editions line by line" gives a specific verb plus resource, and the enumeration of the five editions and the identity of the baseline (Mahāsaṅgīti) removes ambiguity. It is clearly distinguishable from compare_translations, which would compare translations rather than editions.

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?

It supplies concrete accepted input forms ("sn56.11", "dn22:18.1", "sn56.11:5.1-5.4"), which tells the agent how to invoke it and implicitly when it applies. It never states exclusions or points at a sibling (e.g. "for translations use compare_translations"), so it stops short of full when/when-not guidance.

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.