Skip to main content
Glama

doc_context_build

Builds compact documentation context for a feature or change, tailored to a target audience and the files that changed, so docs generation stays focused without broad file reads.

Instructions

Build compact context for docs generation

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "doc_context_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
featureNoFeature or change to document
audienceNoTarget audience
changedFilesNoFiles that changed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

C2.5/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 burden of behavioral disclosure and does not meet it. It does not say whether the tool reads the repository, how large the resulting context is, whether output is truncated, or whether the operation has any side effects. "Compact" hints at size reduction but gives no concrete constraint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, which is good. But it is terse to the point of under-specification, so brevity costs more than it saves here. Nothing is redundant; there simply is not enough content.

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?

With no annotations, no output schema, and three parameters, the description needed to explain what gets built and what the agent receives. It does neither, leaving the return value and the read/scope behavior undocumented. This is insufficient for the tool's complexity.

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%, with all three parameters (feature, audience enum, changedFiles) documented in the schema itself. The description adds no meaning beyond that — it does not explain how audience alters output or how changedFiles influences scoping. 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.

Purpose3/5

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

The description pairs a verb ("Build") with a resource ("compact context for docs generation"), so the general intent is readable. However, "context" is undefined — it could mean file excerpts, summaries, dependency maps, or token-budgeted bundles — and nothing distinguishes this from siblings like doc_update_plan or flow_summarize. The purpose is only vaguely conveyed.

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?

There is no guidance on when to call this tool, when not to, or which sibling to use instead. An agent cannot tell whether this precedes doc_update_plan, replaces it, or is a standalone helper. Usage must be inferred entirely from the name.

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