Skip to main content
Glama

Get doc

get_doc
Read-only

Read a doc (a long-form document): its title (name) and its body as HTML (p, h1-h3, ul/ol/li, blockquote, hr, strong, em, a, img, details toggles). Docs live inside boards as sub-boards: get_board lists them. Carries updated_at, last_edited_by, last_viewed_by_you and now.

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

Input Schema

NameRequiredDescriptionDefault
doc_idYesDoc id (a board_id whose kind is "doc", e.g. a sub-board linked from get_board)

Output Schema

NameRequiredDescriptionDefault
nowYesCurrent time (ISO); compare with updated_at and last_viewed_by_you
dataYes
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds real context by disclosing the body's element vocabulary (p, h1-h3, ul/ol/li, blockquote, hr, strong, em, a, img, details) and the metadata carried (updated_at, last_edited_by, last_viewed_by_you, now), which helps an agent plan parsing and freshness checks.

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?

The core capability is front-loaded in the first clause, followed by location context and return metadata. The HTML element enumeration is long but earns its place by telling the agent what markup to expect; overall there is no filler.

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?

This is a single-parameter read tool with a full output schema and complete safety annotations. The description covers the remaining agent-facing questions: where doc ids come from and what content shape to expect, leaving nothing essential unstated.

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 doc_id description already explains it is a board_id of kind "doc" linked from get_board. The description's sub-board note largely restates that, adding little new meaning about the parameter itself; baseline 3 applies when 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 doc") and immediately specifies what comes back: title plus body as HTML. The parenthetical "a long-form document" and the note that docs are sub-boards disambiguate it from get_board and get_deck.

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 context is implied by the sentence "Docs live inside boards as sub-boards: get_board lists them," which tells the agent how to obtain a valid doc_id. However, it never states when to use this versus edit_doc or create_doc, and gives no explicit exclusions or preconditions.

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