Skip to main content
Glama

Read documentation

get_document
Read-onlyIdempotent

Read a documentation: content, rule and pending sources. Read it before changing it.

section reads only one section (a heading of outline); outline stays complete, so you know what you are not reading. To change only one section, read it and send it back with the same section to update_document: the rest of the content is kept intact, without you retyping it.

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": {
      "space": "<space>",
      "name": "<name>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the documentation in the space, e.g. “fonctionnalites”.
spaceYesSpace identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces.
sectionNo
versionNo

Output Schema

NameRequiredDescriptionDefault
nameYes
spaceYes
titleYes
authorYes
contentYes
outlineYesMarkdown headings the content must keep.
pendingYesPending sources, by state; details with pending_sources.
sectionNoSection that `content` carries; empty when `content` carries the whole documentation.
versionYes
archivedYes
guidanceYesRule of the documentation: what it describes and how to write it.
templateYes
client_idYes
updated_atYes
chronology_typesNoTimeline only: the types an entry can name, by their label.
source_categoriesYes
include_done_tasksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Nom de la documentation dans l'espace, ex. « fonctionnalites »."New value: +"Name of the documentation in the space, e.g. “fonctionnalites”."
    • changedInput schema / properties / section / anyOf
      Previous value: -[
      -  {
      -    "description": "Titre de section du plan (`outline`), pour ne lire ou n'écrire que celle-là.",
      -    "maxLength": 120,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Section heading from the outline (`outline`), to read or write only that section.",
      +    "maxLength": 120,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / space / description
      Previous value: -"Identifiant de l'espace, ex. « k3x9p2m4ta » : le champ `id` que donne list_spaces."New value: +"Space identifier, e.g. “k3x9p2m4ta”: the `id` field returned by list_spaces."
    • changedOutput schema / $defs / ChronologyTypeOut / properties / archived / description
      Previous value: -"true : archivé ; ses entrées restent valides, n'en écris plus de nouvelles."New value: +"true: archived; its entries remain valid, do not write new ones."
    • changedOutput schema / $defs / ChronologyTypeOut / properties / id / description
      Previous value: -"Identifiant du type, à passer en `type` à update_chronology_type ; ne change jamais."New value: +"Identifier of the type, to pass as `type` to update_chronology_type; never changes."
    • changedOutput schema / $defs / ChronologyTypeOut / properties / label / description
      Previous value: -"Ce qu'une entrée de la chronologie écrit pour nommer son type."New value: +"What a timeline entry writes to name its type."
    • changedOutput schema / properties / chronology_types / description
      Previous value: -"Chronologie seulement : les types qu'une entrée peut nommer, par leur libellé."New value: +"Timeline only: the types an entry can name, by their label."
    • changedOutput schema / properties / guidance / description
      Previous value: -"Règle de la documentation : ce qu'elle décrit et comment l'écrire."New value: +"Rule of the documentation: what it describes and how to write it."
    • changedOutput schema / properties / outline / description
      Previous value: -"Titres Markdown que le contenu doit garder."New value: +"Markdown headings the content must keep."
    • changedOutput schema / properties / pending / description
      Previous value: -"Sources en attente, par état ; détail avec pending_sources."New value: +"Pending sources, by state; details with pending_sources."
    • changedOutput schema / properties / section / description
      Previous value: -"Section que `content` porte ; vide quand `content` porte la documentation entière."New value: +"Section that `content` carries; empty when `content` carries the whole documentation."
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description's genuine addition is that `section` returns only one section while `outline` stays complete, telling the agent it is receiving a partial view – useful behavioral context beyond the annotations, though return format is left to 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight segments with the core action front-loaded and the section/update workflow second; every sentence earns its place. Minor friction from backticked identifiers and a mid-sentence line break, but nothing wasted.

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?

Rich annotations plus an output schema carry the return-value and safety burden, and the description supplies the one non-obvious nuance: partial reads via `section` and how to round-trip them into update_document. Only the `version` parameter's intent is left entirely unspecified.

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 50%, and the description compensates for the least obvious parameter by explaining that `section` is a heading from `outline` and that reading it leaves the outline complete. `version` and the name/space constraints remain schema-only, which caps it below 5.

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 documentation") and enumerates what comes back: content, rule and pending sources. It also positions itself against update_document via "Read it before changing it.", so an agent can tell the read path from the write path without opening either schema.

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 a concrete when-to-use condition ("Read it before changing it") and names the alternative workflow: read a section, send it back with the same `section` to update_document. There is no explicit when-not-to-use guidance, which keeps it short of a 5.

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