generate_api_reference

Generate API reference documentation from code annotations, JSDoc, docstrings, and type definitions

Server Autonomous Documentation MCP perryjr1444-ux/autonomous-docs-mcp
Category Write
Risk class Medium
Parameters 00 required

What generate_api_reference does on Autonomous Documentation MCP

AI agents use generate_api_reference to create or update resources in Autonomous Documentation MCP — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Autonomous Documentation MCP environment.

Why generate_api_reference needs a policy

This tool reads code annotations and generates documentation output. While it creates/writes documentation files, the operation is reversible (documentation can be regenerated, edited, or deleted), poses no direct harm to production systems or data, and has minimal blast radius if misused. It falls under Write rather than Read because it produces new artifacts rather than merely querying existing data.

From the tool's definition The tool 'generate_api_reference' creates documentation artifacts ('Generate API reference documentation') from existing code metadata.

Questions about generate_api_reference

What does the generate_api_reference tool do? +

Generate API reference documentation from code annotations, JSDoc, docstrings, and type definitions. It is categorised as a Write tool in the Autonomous Documentation MCP MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on generate_api_reference? +

Register the Autonomous Documentation MCP server in PolicyLayer and add a rule for generate_api_reference: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Autonomous Documentation MCP. Nothing to install.

What risk level is generate_api_reference? +

generate_api_reference is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit generate_api_reference? +

Yes. Add a rate_limit block to the generate_api_reference rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block generate_api_reference completely? +

Set action: deny in the PolicyLayer policy for generate_api_reference. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides generate_api_reference? +

generate_api_reference is provided by the Autonomous Documentation MCP server (perryjr1444-ux/autonomous-docs-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

generate_api_reference is one line of Autonomous Documentation's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.