review_code_snippet
Submit a code snippet and specify its programming language to receive an automated code review.
Instructions
Review a code snippet (not from a file) in the specified language.
Use this when you have a small piece of code to review that isn't in a file yet, or when you want to review an isolated snippet.
Args: code: The source code to review. language: Programming language (python, javascript, rust, go, etc.)
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": "review_code_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | No | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |