Skip to main content
Glama

MarkSight

Extract document outline

document_outline

Extract the heading outline of a markdown document: level, text, rehype-slug-compatible anchor id, and 1-based source line. Skips headings inside code fences.

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": {
      "markdown": "<markdown>"
    },
    "name": "document_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
markdownYes

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?

With no annotations, the description carries the full burden, and it does add real behavioral detail: the exact fields produced and the rule that headings inside code fences are skipped. However, it omits whether the outline is flat or nested, how results are ordered, and what happens on malformed or non-markdown input — all material for an 'outline' tool where hierarchy is typically expected.

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 sentences with the resource and the return contract front-loaded and no filler. The code-fence caveat is correctly appended as a qualifier rather than buried.

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?

For a single-parameter read-only extraction tool with no output schema, the description usefully stands in for a return-value spec by listing the four fields. The gap is structural ambiguity — flat versus nested result and ordering — plus undocumented input constraints, which matters somewhat but not severely for this complexity level.

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?

There is a single parameter with 0% schema description coverage, so the description must compensate. Saying the input is 'a markdown document' tells the agent the parameter is raw markdown text, but adds nothing about the 500,000-character cap, the 1-character minimum, or whether front-matter and setext headings count.

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?

States a specific verb ('Extract') and resource ('the heading outline of a markdown document'), and enumerates the returned fields (level, text, anchor id, source line), which functionally separates it from markdown_to_html and document_metrics. It never names or explicitly contrasts with those siblings, so the differentiation is inferential rather than stated.

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 is only implied: an agent can infer this is the tool for pulling heading structure out of markdown text. There is no explicit when-to-use statement, no guidance on choosing it over markdown_to_html or document_metrics, and no exclusion of cases (e.g., non-markdown input).

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.