Skip to main content
Glama

Get doc

get_doc
Read-onlyIdempotent

Get one doc by ID: title, space, visibility, lock state, url, content (Plate JSON) and contentText. Set format to markdown for Markdown content.

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

Input Schema

NameRequiredDescriptionDefault
docIdYesDoc ID.
formatNomarkdown returns content as Markdown.
response_formatNoHow much to return. concise applies when omitted; detailed adds every field and the full text.

Output Schema

NameRequiredDescriptionDefault
idYesDoc ID.
stateNoactive or archived.
titleYesDoc title.
contentTextNoContent as plain text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 the tool's safe read profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false), so the bar for the description to add behavioral context is lower. The description only partly earns credit: it discloses the default content representation (Plate JSON) and the effect of the format switch, but does not say what happens when the doc is missing or inaccessible (not-found or permission error).

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?

Two compact sentences that put the tool's scope first and the format hint second, with the field list and the content-format note in between. The closing "Set format to markdown for Markdown content" partly repeats the schema, so the description could be shorter without losing meaning.

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?

An output schema exists, so the description need not enumerate return values; it does so anyway, which is extra but not harmful. For a read-only single-document lookup, the definition is nearly complete; the only real gap is the undefined not-found or permission-denied behavior.

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?

With 100% schema description coverage, the schema already documents all three parameters, so the baseline is 3. The description adds little: its explanation of the format parameter restates the schema's own text and says nothing about the response_format parameter's concise-versus-detailed default, so it neither fills a gap nor introduces ambiguity.

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?

A specific verb and resource are paired with a precise identifier ("Get one doc by ID") and the field list makes the scope of the return obvious, which separates it from the list_doc_* siblings. It stops short of naming a specific alternative such as get_doc_version or get_doc_space, so the distinction is only implied.

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?

The only usage guidance is the conditional "Set format to markdown for Markdown content", which covers one parameter choice but says nothing about when to use this tool rather than get_doc_version, get_doc_tree, or get_canvas. A reader is otherwise left to infer that this is the general single-document read.

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