ChatGPT code review
chatgpt_code_reviewReview code for bugs, security issues, performance, and readability using ChatGPT or another configured AI provider, with severity ratings and suggested fixes.
Instructions
Have ChatGPT (or any AI, via provider) review code for bugs, security problems, performance and readability, with severity ratings and suggested fixes.
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": "chatgpt_code_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to review. | |
| focus | No | Optional: limit the review to these areas. | |
| model | No | Model ID for the chosen provider, e.g. 'gpt-5.6-sol' or 'gemini-3.8-flash'. You can also write 'provider:model', e.g. 'xai:grok-4.6'. Leave empty to use that provider's default. | |
| context | No | Optional: what the code is meant to do, or the surrounding system. | |
| language | No | Programming language, e.g. 'TypeScript'. | |
| provider | No | Which AI to ask: openai (ChatGPT), anthropic (Claude), gemini, xai (Grok), deepseek, mistral, meta (Llama), perplexity, moonshot (Kimi), qwen, cohere, groq, openrouter, ollama or lmstudio. Leave empty for the default. Run ai_list_providers to see which are configured. | |
| temperature | No | Creativity, 0 to 2. Lower is more focused. Some reasoning models ignore this; the bridge drops it automatically. | |
| reasoning_effort | No | For reasoning models only: how hard the model should think. Higher is slower and more expensive. | |
| max_output_tokens | No | Upper limit on the length of ChatGPT's reply, in tokens. |