Skip to main content
Glama

Get document content

get_document_content
Read-onlyIdempotent

Get the text content of a specific document, lecture session, or flashcard set. Use this when you need to read the actual content of a material to answer questions about it. Each call returns at most 12000 characters; long documents are read in parts with page or offset, and the result's note says which part you got and how to read the rest.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_document_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoStart reading at this page (e.g. 16 when the student asks about page 16). Works when the text has page headings; the result says if it does not.
offsetNoCharacter offset to start reading from. Pass the nextOffset of the previous result to read the next part of a long document.
documentIdNoDocument ID to reference
flashcardSetIdNoFlashcard set ID to reference
lectureSessionIdNoLecture session ID to reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Character offset to start reading from. Pass the nextOffset of the previous result to read the next part of a long document.",
      +  "maximum": 100000000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Start reading at this page (e.g. 16 when the student asks about page 16). Works when the text has page headings; the result says if it does not.",
      +  "maximum": 10000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description adds genuinely new behavior — a 12000-character cap per call and a part-wise reading model driven by page/offset with a result note explaining what was returned. It does not address error cases or what happens if zero or several of the three IDs are supplied.

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?

Three sentences, front-loaded with the purpose, then usage, then the size/pagination constraint. No redundant restatement of the title and no wasted clauses.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five all-optional parameters and no output schema, the definition should say that exactly one of the three ID parameters is required and describe the shape of the returned content note. It covers the paging model well but leaves the ID-selection contract and return shape under-specified.

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, but the description ties page and offset together into a coherent paging strategy and explains that the result communicates which part was read and how to continue. The three mutually exclusive resource ID parameters (documentId, flashcardSetId, lectureSessionId) are not disambiguated in the description despite all being optional.

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?

Uses a specific verb and resource ('Get the text content of a specific document, lecture session, or flashcard set'), which is meaningfully different from metadata or download siblings. It does not name an adjacent alternative (e.g. get_document or get_document_metadata) to draw the boundary explicitly, so it stops short of a 5.

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 when-to-use condition: 'when you need to read the actual content of a material to answer questions about it.' It does not state when not to use it or which sibling to pick when only metadata or a download URL is needed, so routing against alternatives is left to inference.

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