Gemini Analyze Code Tool
gemini_analyze_code_toolAnalyze code with Gemini to find bugs, security flaws, and performance issues. Detects the programming language automatically and supports focused reviews.
Instructions
Analyze code with Gemini.
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": "gemini_analyze_code_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to analyze. | |
| focus | No | Analysis focus (general, security, performance, bugs). | general |
| model | No | Model to use. | pro |
| language | No | Programming language (auto-detected if not specified). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||