grok_review_code
Reviews code snippets to detect bugs, security issues, performance problems, and readability improvements, with optional focus areas and language context.
Instructions
Have Grok review a code snippet for bugs, security issues, performance and readability.
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": "<code>"
},
"name": "grok_review_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source code to review. | |
| focus | No | Optional focus such as "security" or "performance". | |
| language | No | Programming language, e.g. "typescript". |