Skip to main content
Glama

Engelberg Center Corpus

fetch_document

Retrieve the text of a specific Engelberg Center publication by document ID. Use after a search() call to get more context around a relevant chunk, or to read a paper in page order.

Long documents are paged: at most max_chunks chunks are returned per call, starting at start_chunk. The response includes total_chunks and next_start_chunk (null when you have reached the end) — pass next_start_chunk back to continue reading.

Returns document metadata (including version: "published" or "author_draft" — see citation_note for how to cite drafts) and text chunks in sequence with page numbers and section headings.

Args: document_id: The document ID returned by search() or list_documents() start_chunk: Zero-based chunk offset to start from (default 0) max_chunks: Maximum chunks to return (default 40, max 100)

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": {
      "document_id": "<document_id>"
    },
    "name": "fetch_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_chunksNo
document_idYes
start_chunkNo

Output Schema

NameRequiredDescriptionDefault
errorNo
chunksYes
documentYes
returnedYes
total_chunksYes
next_start_chunkYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs / DocumentChunk / properties / speaker
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Speaker"
      +}
    • addedOutput schema / $defs / DocumentChunk / properties / timestamp
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Timestamp"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it discloses the key operational behavior: paging with max_chunks per call from start_chunk, total_chunks and next_start_chunk in the response, and null next_start_chunk as the end-of-document signal. It also flags that metadata includes version "published" vs "author_draft" and points at citation_note for drafts. It says nothing about access restrictions, rate limits, or failure modes such as an invalid document_id.

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-loaded with purpose, then pagination contract, then return shape, then per-argument notes — a logical reading order with no filler sentences. The args block is slightly redundant with the schema's titles but still adds the max-100 constraint and provenance.

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 three-parameter retrieval tool with an output schema, this covers everything an agent needs to call it correctly and to loop through pages until next_start_chunk is null. Return values are explained at a level that complements rather than duplicates the output schema.

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 0%, so the description must supply meaning, and it does for all three parameters: provenance for document_id, zero-based offset semantics for start_chunk, and both the default (40) and the hard ceiling (100) for max_chunks — the ceiling is not present in the schema. Minor gap: units for start_chunk/max_chunks are described as "chunks" but chunk size is never characterized.

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 specific verb and resource ("Retrieve the text of a specific Engelberg Center publication by document ID") plus the scope of returning full text rather than snippets. That cleanly separates it from search and list_documents, which return matches and inventories respectively.

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?

Explicitly says when to reach for it: after a search() call to expand context, or to read a paper in page order, and notes that document_id comes from search() or list_documents(). It stops short of stating exclusions, and it never differentiates itself from the sibling tool simply named "fetch", leaving one ambiguous overlap.

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.

Resources