generate_documentation
Creates technical design docs, API references, runbooks, READMEs, or module overviews from supplied source material, returning a structured prompt for the host LLM to complete.
Instructions
Generate technical documentation — design doc, API reference, runbook, README, or module overview — from supplied source material. Returns a structured prompt the host LLM completes into the document.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docType": "<docType>",
"subject": "<subject>",
"sourceMaterial": "<sourceMaterial>"
},
"name": "generate_documentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docType | Yes | Type of documentation to generate. | |
| subject | Yes | What is being documented (component name, API name, system area). | |
| audience | No | Primary readers: 'new joiners', 'on-call engineers', 'API consumers', etc. | |
| sourceMaterial | Yes | Source code, OpenAPI spec, design notes, existing docs to base the output on. |