Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
file_pathYesFile containing SQL queries to fix
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations, so description must carry behavioral burden. 'Convert' implies file modification but doesn't state whether file is edited in place, whether original is backed up, or requirement of api_key. No details on side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence is efficient but minimal, providing only the core action. Could include more detail without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, description is insufficient to call correctly. Missing information about api_key usage, output/return value, and file handling behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%; file_path has a basic description, api_key is undocumented. The tool description doesn't explain api_key's purpose or how parameters interact. No additional meaning added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the action (convert) and target (unsafe SQL string concatenation to parameterized queries). Distinct from sibling tools like sql_detect_injection (detect) and sql_audit_report (audit) which focus on analysis rather than transformation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this vs sql_detect_injection or sql_audit_report. No prerequisites, conditions, or exclusions provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barnburner121/claude-plugin-marketplace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server