tinplate_command_sql_guard
Audit AI agent shell commands (bash/sh) and SQL statements offline before execution, flagging destructive operations, piped execution, stacked SQL, and injection signals. (Endpoint: POST /v1/command-sql-guard)
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": {
"input": "<input>"
},
"name": "tinplate_command_sql_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Inspection mode: 'shell' for bash/sh/PowerShell commands, 'sql' for SQL queries, or 'auto' to classify automatically. | auto |
| input | Yes | Raw shell command or SQL query emitted by an AI agent, coding assistant, or Text-to-SQL pipeline. | |
| sql_policy | No | In SQL mode, 'read_only' allows only SELECT/EXPLAIN/SHOW/WITH; 'dml_allowed' allows INSERT/UPDATE/DELETE with WHERE; 'ddl_allowed' allows schema changes. | read_only |
| allow_chaining | No | In shell mode, whether command chaining (;, &&, ||) and subshells ($(), backticks) are permitted. | |
| allowed_commands | No | Optional allowlist of binary/command names permitted in shell mode (e.g., ['git', 'npm', 'ls']). | |
| require_sql_limit | No | In SQL mode, flag SELECT queries that omit a LIMIT/FETCH FIRST clause. |