reviewCode
Identify correctness issues, style problems, and improvement opportunities in code snippets. Tailor feedback by specifying language and focus areas.
Instructions
Reviews a code snippet and provides feedback on correctness, style, and potential improvements
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>",
"language": "<language>"
},
"name": "reviewCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to review | |
| context | No | What the code is supposed to do | |
| language | Yes | The programming language of the code | |
| focusAreas | No | Specific areas to focus the review on |