Skip to main content
Glama

md_read

Read-only

Returns a Markdown field (task or bug spec and result, feature or product spec, version notes) in parts: a page of up to 40 thousand characters, a section by heading or ::: doc title, or a line range; the response holds { fromLine, toLine, totalLines, hasMore, nextFromLine, sha } and the text as a separate block. Useful when a context shows a large field as null with an outline.

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": {
      "entity": "<entity>",
      "field": "<field>"
    },
    "name": "md_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
IDNoEntity ID; a task or feature can also be addressed by key.
docNoNested ::: doc section by its title.
keyNoTask number or feature key (#F12) when the ID is unknown.
lineNoLine of the heading or section from the outline when the title repeats.
fieldYesspec; result for a task; notes for a version.
limitNoNumber of lines, within one page.
entityYestask (a task or bug), feature, product or version.
sectionNoSection by its heading line with hashes, e.g. "## Decisions".
fromLineNoFirst line, from 1.
lineNumbersNotrue - line numbers in the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations, it discloses page size (up to 40 thousand characters), the pagination contract via hasMore and nextFromLine, the exact response envelope { fromLine, toLine, totalLines, hasMore, nextFromLine, sha }, and that the text arrives as a separate block. That is real behavioral detail an agent cannot get from 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 sentences, front-loaded with the core verb and the retrieval modes, with no filler. The dense inline list of response keys is slightly heavy but each item is load-bearing for pagination.

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 10 parameters and no output schema, the description carries the burden of explaining the return shape and does so fully, including how to continue paging. It also explains the null-outline failure mode that motivates the tool, so an agent has everything needed to call it correctly.

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 100%, so baseline is 3; the description still adds value by framing the three mutually alternative addressing modes (page, section by heading or ::: doc title, line range) and by stating the 40k-character page size, which the schema does not encode. It leaves params like line, lineNumbers and doc unexplained beyond the schema text.

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?

The description states a specific verb and resource ('Returns a Markdown field') and enumerates the fields it covers (task/bug spec and result, feature/product spec, version notes) plus three retrieval modes. It never names a sibling, so the read-vs-search-vs-patch distinction with md_grep/md_patch is only implicit, which keeps it at 4 rather than 5.

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?

It gives a concrete trigger scenario: 'Useful when a context shows a large field as null with an outline,' which tells the agent exactly when this tool is the right call. It stops short of naming alternatives (e.g. md_grep for locating text) or stating when not to use it.

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