Skip to main content
Glama

Huddle

get_doc

Read-onlyIdempotent

Read one document with its draft and its history. Use it before you save or publish, because both need the draft_version and the revision number it gives. Returns the published text, the open draft when there is one, and the revisions newest first.

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": {
      "id": "<id>"
    },
    "name": "get_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe document id, from list_docs or search_docs

Output Schema

NameRequiredDescriptionDefault
idYesThe document id.
bodyYesThe published body.
draftNoThe unsaved draft body, when one is open. A draft is the whole point of this port: it is state that outlives the request that created it, belongs to no revision yet, and must survive a reload without being published.
titleYesIts title.
archivedYesArchived documents retain their content and can be restored.
revisionsYesThe revision history, newest first.
draft_at_msNoWhen the draft was last touched, absent when there is none.
draft_differsYesWhether the draft differs from the published body. Computed on the SERVER: a client that decided this for itself would disagree with the server the moment someone else published.
draft_versionYesMonotonic fence for every save, discard and publication.
updated_at_msYesWhen the document was created, last published, archived or restored: the clock the document list carries for it, so a client holding this view can tell when the list has seen a newer document.
draft_idle_minutesYesHow long the draft has been idle, in whole minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety is covered; the description adds the material precondition that save/publish depend on values from this call. It also notes the conditional draft ('when there is one') and revision ordering, though the return shape is largely duplicated by the output schema.

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 short sentences ordered as purpose, when-to-use with rationale, then return shape. Nothing is redundant and the actionable guidance sits up front.

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?

With one required parameter, full schema coverage, annotations, and an output schema, the remaining burden on the description is purpose and sequencing. Both are supplied, including the cross-tool dependency on draft_version and revision.

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 id parameter already documents its origin (list_docs or search_docs) plus an example. The description adds no further meaning about the id beyond the fact that exactly one document is fetched, so the baseline 3 applies.

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 a specific verb and resource ('Read one document') and immediately scopes the payload to the document plus its draft and history. That scope distinguishes it from siblings like list_docs or search_docs, which the id parameter explicitly points back to as sources.

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?

It states a concrete conditional: call this before save or publish, because those operations require the draft_version and revision number returned here. That ties usage to named sibling workflows rather than leaving timing 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