Skip to main content
Glama

Resolve citation

resolve_reference
Read-onlyIdempotent

Converts citations, PTS pages, links, or sutta names into canonical Pāli text and reference details, including titles, PTS/VRI numbers, translations, edition pages, and ambiguity candidates.

Instructions

Turn any citation, PTS page, link or sutta name (Pāli or English title, e.g. "Satipatthana Sutta"; ambiguous names list the candidates) into the canonical text it names, with its title, PTS location, VRI paragraph numbers, available English translations, Thai/Myanmar/VRI edition pages and numbering notes. Works offline. The reference may be written in any supported script (Sinhala, Thai, Myanmar, Devanagari, Khmer, Lao, Lanna); set script to get Pāli titles in that script.

Input Schema

NameRequiredDescriptionDefault
scriptNoWrite the Pāli in this script: roman (default), sinhala, thai, myanmar, devanagari, khmer, lao or lanna (Tai Tham). Citations, IDs and English stay in Roman. ISO codes (sinh, mymr, deva, khmr, laoo, lana) work too.
referenceYesAny citation: MN 10, SN 56.11, SN 56:11, AN 3.65, Dhp 183, Dhp 1-20, Snp 1.8 (or Sn 1.8), Ud 1.10, Iti 27, Thag 1.1, Ja 1, Pj 1, Bi Pc 5, Kd 1, Mv 1, Pvr 1.1, Kv 1.1, a PTS page such as M i 55, a Thai/Myanmar/VRI edition page such as Thai MN 1.103 or Myanmar Dhp 15, or a suttacentral.net / accesstoinsight.org / dhammatalks.org link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavior: offline operation and the ambiguity fallback that lists candidates instead of failing. It does not discuss error handling for unresolvable references, which keeps it below 5.

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-loads the core transformation, then layers accepted input forms, then the script option, with no filler sentences. The list of return fields is long but each item tells the agent something it would otherwise have to discover by calling.

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?

With only two parameters and no output schema, the description compensates fully: it describes the return payload, accepted input shapes, script behavior, ambiguity handling, and offline capability. An agent can invoke this correctly without any further documentation.

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 the baseline is 3; the description earns an extra point by explaining what `script` actually changes – it affects the script of returned Pāli titles while citations, IDs and English stay Roman. That is a real output-semantics detail the enum alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific transformation (reference → canonical text) and enumerates the output payload: title, PTS location, VRI paragraphs, translations, edition pages. It is very clear what the tool does, but it never names or contrasts itself with the similarly-named sibling find_citations, leaving that disambiguation to inference.

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?

Gives a clear context for use: any citation, PTS page, edition page, or link in any supported script, plus an explicit edge-case rule that ambiguous sutta names return candidates rather than a single guess. It offers no exclusion or 'use X instead' routing, which is the only thing separating it from a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.