Skip to main content
Glama

read_doc

Read-onlyIdempotent

Read workspace documents with tier labeling, optionally extracting a specific markdown section by exact heading for targeted architecture or task content.

Instructions

Read a workspace document with tier labeling. Optional section extracts a markdown heading.

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": {
      "path": "<path>"
    },
    "name": "read_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDocument path. Paths starting with "content/" are MCP-owned (project-relative). All others are workspace-relative (e.g. "pypto-3.0-notes/arch.md"). Use list_knowledge_topics() to discover registered paths.
sectionNoExtract a specific markdown section by exact heading text (case-sensitive). Leave empty to read from the top. Use read_doc with a bad section name to see the TOC.
max_charsNoMaximum characters to return (500–50000)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds that sections are extracted by markdown heading and mentions tier labeling, but says nothing about truncation behavior from max_chars or what the tier labels signify, leaving those gaps unaddressed beyond the annotations.

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 with no filler, and the core action is front-loaded. The phrase "with tier labeling" is opaque enough that it costs some clarity, but overall the text is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the parameters are fully described, so return values need not be explained. Still, for a tool whose distinguishing feature is supposedly tier labeling, the description leaves that concept undefined and gives no indication of when to pick it over read_file.

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%, so path, section and max_chars are fully documented in the schema. The description confirms section-based extraction but adds no syntax or semantics (e.g., what tier labeling produces) beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ("Read a workspace document") plus two behaviors (tier labeling, optional section extraction). However, it never distinguishes itself from the sibling read_file, nor does it explain what "tier labeling" means, so an agent cannot fully tell why it would choose this over a plain file read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance at all: nothing says when to prefer this over read_file, and the discovery hint (list_knowledge_topics) lives only in the schema, not the description. The agent must infer usage context from the schema alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.