Skip to main content
Glama

Read a document by its link

get_document
Read-onlyIdempotent

Returns a document made with ReflowPDF (by you, or opened in the editor from your link) as it is now — the person may have edited it in the editor: its source HTML, template data and revision, which update_document takes as base_revision.

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

Input Schema

NameRequiredDescriptionDefault
document_idYesThe document_id (or the edit link) from render_pdf, render_template or open_in_editor.

Output Schema

NameRequiredDescriptionDefault
byYesWho wrote this revision: you, or the person in the editor.
dataYes
htmlYesThe document's source (a template when data is not empty).
kindNoAn HTML document (its {{ … }} is text), or a template with its data.
nameNo
guestNoPrinted without an account: the pages carry the ReflowPDF mark.
ownedNoThe document is the person's account's: your prints of it count to their plan.
titleNoThe document's title.
editUrlYes
previewsNoPages as pictures (PNG), kept with the PDF for its day.
revisionYes
updatedAtYes
documentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / guest
      Added value: +{
      +  "description": "Printed without an account: the pages carry the ReflowPDF mark.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / previews
      Added value: +{
      +  "description": "Pages as pictures (PNG), kept with the PDF for its day.",
      +  "items": {
      +    "properties": {
      +      "height": {
      +        "type": "integer"
      +      },
      +      "page": {
      +        "type": "integer"
      +      },
      +      "url": {
      +        "type": "string"
      +      },
      +      "width": {
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "page",
      +      "url",
      +      "width",
      +      "height"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / title
      Added value: +{
      +  "description": "The document's title.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context — the document may have been edited by the person in the editor, so the returned revision may be stale relative to your last render — but it says nothing about failure modes (missing document, link no longer valid) or what happens if the link is stale.

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?

Content is front-loaded with "Returns a document... as it is now," and every clause carries information about freshness or the revision contract. The single sentence is dense with nested parentheticals and an em-dash aside, which slightly hurts scannability but does not waste words.

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?

With only one required parameter and an output schema present, the definition does not need to describe return shape. It covers the subtle part — the document may have changed since you rendered it, and its revision feeds update_document — which is the main thing an agent could get wrong. Error behavior for invalid links is the only notable omission.

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

Parameters3/5

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

Schema coverage is 100% and the single parameter is fully documented in the schema, including its origin from render_pdf, render_template, or open_in_editor. The description adds only the idea of "your link" and "the editor from your link," which the schema already conveys, so the baseline 3 applies.

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?

States a specific verb and resource (returns a document) and enumerates the payload — source HTML, template data, revision — which is concrete and non-tautological. It scopes the resource ("made with ReflowPDF, by you or opened in the editor from your link"), but it never contrasts itself with close siblings like get_template or check_document, leaving differentiation to inference.

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

Usage Guidelines3/5

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

Usage is only implied: by saying the revision is what update_document takes as base_revision, it hints that you read this before updating. There is no explicit when-to-use statement, no when-not, and no named alternative, so an agent must infer the workflow from a subordinate clause.

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.