Skip to main content
Glama
telota

bbaw-dse-mcp

by telota

sd_get_raw_document_by_id

Fetch raw XML for a TEI document by its xml:id to enable custom processing and edition-specific analysis.

Instructions

Retrieve raw XML document by its xml:id.

PURPOSE: Fetch raw XML for a document using its TEI xml:id attribute.

WHEN TO USE:

  • After finding a document via search or browse

  • When you need the raw XML for custom processing

  • As a low-level building block for edition-specific tools

WHEN NOT TO USE:

  • For exploring/discovering documents → use browse or search tools

  • When you only have a file path → use get_raw_document_by_path()

Args: document_id: The xml:id attribute of the TEI document collection: Optional collection filter (relative to data_path) ctx: FastMCP Context for progress reporting

Returns: RawDocument with id and xml content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionNo
document_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDocument identifier (xml:id or filename)
xmlYesRaw XML content
pathNoFile path in database
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the output type (RawDocument with id and XML content), the parameter semantics, and mentions progress reporting via ctx. It doesn't discuss error cases or authorization requirements, but for a simple retrieval operation the disclosure is solid.

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?

The description is well-structured with clear sections (PURPOSE, WHEN TO USE, WHEN NOT TO USE, Args, Returns). Every sentence adds value and there is no fluff or repetition of schema fields.

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 simple 2-parameter read tool, the description is complete: it covers purpose, usage guidance, parameter details, and return type. The presence of an output schema means return values don't need extensive explanation, but the description still provides them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero description coverage, but the description fully compensates by explaining each parameter: document_id is the TEI xml:id, collection is an optional filter relative to data_path, and ctx is for progress reporting. This adds meaning well beyond the bare 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?

The description opens with 'Retrieve raw XML document by its xml:id', which is a specific verb+resource+identifier. It clearly distinguishes this low-level raw retrieval tool from siblings like sd_get_document_by_id and sd_get_raw_document_by_path by emphasizing the TEI xml:id and raw XML nature.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit WHEN TO USE and WHEN NOT TO USE sections list concrete scenarios (after search/browse, custom processing, building block) and explicitly direct users to sibling tools (browse/search for discovery, get_raw_document_by_path for file paths). This provides clear alternatives and exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/telota/bbaw-dse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server