Skip to main content
Glama

generate_documentation

Generate and maintain code documentation for any project. Specify output format as Markdown, HTML, or JSDoc for clear, up-to-date docs.

Instructions

Automatically generates and maintains code documentation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format for documentationmarkdown
projectPathYesPath to the project directory to document
Install Server

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It implies the tool writes or modifies documentation in the project, but does not state whether it overwrites existing files, creates new files, or requires specific permissions. The word 'automatically' adds minor context, but significant side-effect behavior is left undisclosed.

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 description is a single front-loaded sentence with no filler or repetition. It states the core action immediately. It is concise, though the brevity does sacrifice some behavioral detail that would be helpful.

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?

The schema covers both parameters, but the description omits important context such as output location, overwrite behavior, whether documentation is generated in place, and what the return value is. For a tool with no annotations and no output schema, this leaves the agent without enough information to anticipate the tool's full 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 coverage is 100%, so the description does not need to re-explain parameters, and it does not. The schema already documents projectPath and format, including the enum options and default. The description adds no extra meaning about parameter semantics, which is acceptable because the schema carries the load.

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 specific verb ('generates and maintains') and a clear resource ('code documentation'), so an agent understands the tool's domain. It is distinct from the listed siblings, which focus on planning, analysis, and quality checks rather than documentation. The word 'maintains' is slightly ambiguous about whether it updates existing docs, but overall the purpose is clear.

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 choose this tool over alternatives or what conditions warrant its use. It does not mention prerequisites, project size considerations, or that this should be run after code changes. The agent must infer usage purely from the tool name and sibling list.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jacm-dev/module-craft'

If you have feedback or need assistance with the MCP directory API, please join our Discord server