Skip to main content
Glama

get_document

Read-only

Read a document at one version (the latest by default) as JSX, with the version number. The JSX starts with a comment that explains its notation. Read it before editing: edit_document needs that version as its base_version, and its edits replace text in this JSX.

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
aliasNoAn alias, such as `latest`; `latest` when neither this nor `version` is given.
versionNoA version, by number.
document_idYesThe document to read, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
idYesThe document, `doc_…`.
jsxNoThe [Rendermate document](https://rendermate.com/docs/documents) at this version, written as JSX; only when it's read, not when it's created or committed. Edit it with edit_document, giving this version as `base_version`.
authorNoThe API key, or the member, that made it.
sha256YesSHA-256 of the document as canonical JSON.
messageNoWhat the commit changes and why.
versionYesThe version's number: 1 for the document as created, one more for each commit.
commit_idYesThe commit that made the version.
committed_atNoRFC 3339.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description goes beyond them by disclosing the return shape (JSX prefixed with a notation-explaining comment) and the default-version behavior. It omits any statement about auth scope or size/truncation limits, keeping it short of a 5.

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 tight sentences, front-loaded with what is returned, then the format caveat, then the workflow reason to call it. No filler sentences or redundant restatement of the name.

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 an output schema and full annotations already present, the description only needs to cover format and workflow, which it does. A note on document size, permissions, or error behavior when a version does not exist would round it out, but nothing essential for correct invocation is missing.

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 each parameter carries its own description, including the alias/version precedence rule. The description's "latest by default" restates the schema's alias default rather than adding new meaning. Baseline 3 applies since the schema does the heavy lifting.

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 ("Read a document") plus the serialization format (JSX) and scope (one version, latest by default). This is clearly distinguishable from write-side siblings such as edit_document or delete_document.

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?

Gives an explicit when-to-use directive — "Read it before editing" — and names the alternative consumer (edit_document), explaining that its base_version comes from this call. An agent knows both the trigger and the downstream dependency without 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