glm_document
Add or update documentation for a file: generate docstrings, READMEs, or API docs in Google, Sphinx, NumPy, or Javadoc style using GLM.
Instructions
Add or update documentation for a file using GLM.
Use for: adding docstrings, generating README, documenting APIs.
Args: file_path: Path to file to document style: "google", "sphinx", "numpy", "javadoc" working_directory: Project directory model: "haiku" or "sonnet"
Returns: File with added documentation
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": {
"file_path": "<file_path>"
},
"name": "glm_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | haiku | |
| style | No | ||
| file_path | Yes | ||
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |