sql_parameterize_queries
Fix SQL injection vulnerabilities by converting unsafe SQL string concatenation into parameterized queries. Provide a file path to identify SQL code and replace risky patterns with safe parameterized statements.
Instructions
Convert unsafe SQL string concatenation to parameterized queries
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": {
"file_path": "<file_path>"
},
"name": "sql_parameterize_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| file_path | Yes | File containing SQL queries to fix |