Skip to main content
Glama

Dharma Sources

Fetch a source record

fetch
Read-onlyIdempotent

Fetch one record by id: a work ("sc:mn10"), an edition ("sc:mn10/en/sujato", "lh:words-of-the-buddha/heart-sutra") or a passage ("sc:mn10/en/sujato:1.1-1.6", "lh:words-of-the-buddha/heart-sutra:3-5", "cbeta:T08n0251_p0848c07-p0848c10", "84000:toh21:1.3-1.7"), or a catalogue record ("bdrc:P252"). Returns the text with segment or paragraph references when the licence allows, and always the citation and canonical URL. Long texts are paged; follow metadata.nextId. metadata.related lists records to fetch next, such as the author's BDRC entry.

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": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from `search` or `resolve_work`

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYes
titleYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, but the description adds substantial behavior beyond them: text is returned with segment/paragraph references only when the licence allows, citation and canonical URL are always included, and long texts are paged via `metadata.nextId`. These are real constraints and response-shape facts an agent could not derive from the annotations.

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?

One tight paragraph, front-loaded with the verb and resource, then id examples, then return behavior, then pagination. Every sentence carries information. The long parenthetical id lists are dense but functional; they could be trimmed slightly without loss.

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 single-parameter read tool with an output schema and full annotation coverage, this is complete: it covers valid id shapes, what comes back, the licence caveat on text, and how to handle paged or related records. Nothing an agent needs in order to call it correctly is missing.

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 single `id` parameter is already documented as coming from `search` or `resolve_work`, so the baseline is 3. The description earns above baseline by giving concrete id-format examples across four namespaces (sc:, lh:, cbeta:, 84000:, bdrc:), which conveys syntax the schema string type does not.

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?

The description opens with a specific verb and resource ('Fetch one record by id') and enumerates exactly which record types apply: works, editions, passages, and catalogue records. That is far beyond a restatement of the name. It stops short of 5 only because it never explicitly contrasts itself with the siblings (search, resolve_work, list_sources), leaving the boundary to be inferred from the single-record-by-id framing.

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 gives concrete operational guidance: follow `metadata.nextId` when a text is paged, and fetch the records listed in `metadata.related` next. That tells an agent how to continue a workflow rather than just what the tool is. It provides no explicit when-not-to-use or statement of which sibling to prefer, 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.