Security
Detect common SQL injection attack patterns in input strings
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/sql-injection-detector' \
-H 'Content-Type: application/json' \
-d '{"text":"Enter text or code to scan for SQL injection patterns...","caseSensitive":false,"checkComments":true,"checkUnion":true,"checkTimeBased":true,"checkBoolean":true,"whitelist":"Comma-separated patterns to whitelist (e.g., SELECT user_id FROM users)"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/sql-injection-detector| Name | Type | Required | Description |
|---|---|---|---|
| text | textarea | Yes | — |
| caseSensitive | checkbox | No | Enable case-sensitive pattern matching |
| checkComments | checkbox | No | Detect SQL comment patterns (--, /*, */, #) |
| checkUnion | checkbox | No | Detect UNION-based SELECT injection |
| checkTimeBased | checkbox | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-sql-injection-detector": {
"name": "sql-injection-detector",
"description": "Detect common SQL injection attack patterns in input strings",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sql-injection-detector",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "sql-injection-detector",
"arguments": {
"text": "Enter text or code to scan for SQL injection patterns...",
"caseSensitive": false,
"checkComments": true,
"checkUnion": true,
"checkTimeBased": true,
"checkBoolean": true,
"whitelist": "Comma-separated patterns to whitelist (e.g., SELECT user_id FROM users)"
}
}
}Questions or issues? Contact [email protected]
| Detect time-based injection (WAITFOR DELAY, SLEEP, BENCHMARK) |
| checkBoolean | checkbox | No | Detect boolean-based injection patterns |
| whitelist | text | No | Patterns that should be considered safe (comma-separated) |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}