glm_find_bugs
Analyze code or files to detect potential bugs, edge cases, and error-prone patterns. Get a list of issues with explanations using GLM.
Instructions
Find potential bugs in code using GLM.
Use for: bug detection, edge case analysis, error prone patterns.
Args: code_or_file: Inline code or file path to analyze working_directory: Directory context for file paths model: "haiku" or "sonnet"
Returns: List of potential bugs with explanations
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": {
"code_or_file": "<code_or_file>"
},
"name": "glm_find_bugs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | sonnet | |
| code_or_file | Yes | ||
| working_directory | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |