Skip to main content
Glama

Prepare a document for analysis

doc_prepare

Builds a document's structural map and returns the required evidence-first workflow before any analysis task. Use it first to orient document reading and ensure cited evidence.

Instructions

Build a structural map and return the required evidence-first workflow. Use this first for any document analysis task.

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": "doc_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path, or a path relative to the MCP server process.
maxHeadingsNoMaximum headings/sections shown in the map.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it: it never states whether the tool is read-only, whether it writes or caches anything on disk, or what form the 'workflow' takes. The only behavioral hint is that it returns a workflow in addition to a map, which is useful but far from sufficient for a tool with zero annotation coverage.

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 short sentences with the primary output stated first and the usage instruction second; nothing is padded. The only weak spot is the unexplained jargon 'evidence-first workflow', which spends words without conveying meaning.

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

Completeness2/5

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

There is no output schema and no annotations, so the description must explain what comes back — yet it only says 'a structural map' and 'the required evidence-first workflow' without describing the shape, contents, or how the returned workflow should drive subsequent calls. For a tool that is explicitly the entry point to a multi-step process, that is a material gap.

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 description coverage is 100%, so both `path` and `maxHeadings` are already documented in the schema. The description adds nothing about path resolution or how heading limits affect the map, so the baseline 3 applies.

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 uses a concrete verb and output ('Build a structural map') plus a second deliverable ('return the required evidence-first workflow'), so an agent knows what it produces. It is somewhat undercut by the vague phrase 'evidence-first workflow' and by not distinguishing itself from the sibling doc_map, which presumably also maps structure.

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?

'Use this first for any document analysis task' gives explicit ordering guidance that selects this tool over the siblings at the start of a task. It stops short of saying when NOT to use it or naming which sibling to call afterwards, so it is clear context without full routing.

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

Deploy Server

Other Tools