Skip to main content
Glama
rodhayl
by rodhayl

generate_docs

Create documentation for code files and folders, supporting jsdoc, readme, API, and usage examples formats to improve code understanding and maintenance.

Instructions

Generate docs (jsdoc/readme/api/examples) for a file or folder.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile or directory to document
docTypeNoDocumentation type (default: jsdoc)
Behavior2/5

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

No annotations are provided, yet the description fails to disclose whether this creates new files, modifies existing ones, overwrites content, or returns text directly. For a 'generate' tool, file system side effects are critical behavioral traits that remain undocumented.

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?

Single sentence efficiently front-loaded with verb and object. Slightly informal 'docs' abbreviation is acceptable, though 'documentation' would be more precise. No wasted words.

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?

Adequate for the simple 2-parameter schema with complete coverage, but incomplete regarding behavioral expectations. Without an output schema, the description should clarify whether results are returned inline or written to disk.

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%, establishing baseline 3. The parenthetical list '(jsdoc/readme/api/examples)' mirrors the enum values already documented in the schema, adding no semantic depth beyond what the schema provides.

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 (Generate) and identifies the resource (docs) plus target (file or folder). It distinguishes from siblings like analyze_file or draft_file by specifying documentation generation, though it could explicitly contrast with generate_agents_md.

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?

No guidance provided on when to use this versus draft_file or generate_agents_md. No prerequisites or contextual triggers mentioned.

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

Install Server

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/rodhayl/mcpLocalHelper'

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