Skip to main content
Glama

ensure_feature_docs_tool

Creates missing documentation files for recent feature changes, using Git history to detect affected features and generate appropriate docs paths.

Instructions

Ensure documentation exists for all recent feature changes.

Creates docs/{feature}/{feature}-{fix-type}.md for each detected feature change, or docs/{feature}/{fix-type}.md if no related docs exist yet.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoGit ref to start from (default: recent commits)
project_rootNoProject root path (auto-detected if empty)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/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; it does disclose that this is a write operation creating markdown files at concrete path templates, which is real behavioral value. However, it never states whether existing docs are overwritten, whether the operation is idempotent, or what happens when a doc already exists, which is the key risk for a file-writing tool.

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?

The purpose is front-loaded in one sentence and the path conventions follow, with no filler. The second path template ('docs/{feature}/{fix-type}.md if no related docs exist yet') is phrased ambiguously enough to require a second read, which slightly undercuts the otherwise tight structure.

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, so return values need not be explained, and the two parameters are fully covered by the schema. What is missing for a file-writing tool with zero annotations is overwrite/idempotency semantics and how 'feature changes' are detected, leaving the agent unable to predict side effects.

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 'since' and 'project_root' are already documented in the schema; the description adds no syntax or format detail beyond that. Baseline 3 applies since the schema does the heavy lifting.

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 gives a specific verb+resource ('Ensure documentation exists for all recent feature changes') and even names the output file paths, so an agent knows this generates feature docs. It does not explicitly distinguish itself from close siblings like ensure_changelog_tool or ensure_agents_md_tool, leaving that differentiation to the resource noun alone.

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 by the phrase 'for all recent feature changes' and the 'since' parameter, which suggests it runs after recent feature work. There is no explicit when-to-use/when-not, no mention of scan_missing_docs_tool or get_docs_stats_tool as alternatives, and no stated prerequisite that feature changes must exist.

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