Skip to main content
Glama

Dharma Sources

Resolve a citation to a work

resolve_work
Read-onlyIdempotent

Turn a citation as people write it ("MN 10", "SN 47.18", "Dhp 1"), a Taishō number ("T 251"), a Tohoku number ("Toh 21"), a BDRC id ("bdr:P252") or a Lotsawa House or 84000 URL into the record it names, with its editions and its parallels in other canons. Use this to check that a cited text exists before quoting it.

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": {
      "reference": "<reference>"
    },
    "name": "resolve_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
referenceYesCitation or catalogue number, for example "MN 10"

Output Schema

NameRequiredDescriptionDefault
matchesYes
unavailableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds that resolution reaches external catalogues (Taishō, Tohoku, BDRC, 84000) and that the result carries editions and cross-canon parallels. It does not state what happens when a citation fails to resolve, which is a mild gap given the openWorld annotation.

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

Conciseness5/5

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

Two sentences, front-loaded with the action and followed by the use case. The parenthetical examples are dense but each illustrates a distinct accepted format class, so all of the wording earns its place.

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?

For a single-required-parameter lookup with an output schema, the description covers the input domain and the intended workflow well. The only omission is failure behavior for unresolvable citations, a minor gap against an otherwise complete definition.

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% and the schema only exemplifies 'MN 10', but the description materially widens the accepted reference space by naming five other identifier families, including catalogue numbers and URLs. That is genuine meaning added beyond the schema, though it does not discuss normalization or malformed input.

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?

States a precise verb and resource: turning a citation into 'the record it names, with its editions and its parallels in other canons.' The enumerated input families (MN/SN/Dhp citations, Taishō, Tohoku, BDRC ids, Lotsawa House/84000 URLs) make the scope unmistakable and clearly separate it from a free-text search or a fetch-by-id tool.

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 an explicit use case: 'Use this to check that a cited text exists before quoting it,' which tells the agent the typical workflow context. It does not contrast against the siblings (search, fetch, list_sources) or say when not to use it, so it falls short of a 5.

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.