检查操作风险
check_riskDetects potential risks in SQL statements, shell commands, and API calls, then grades severity based on context and environment to distinguish safe, scoped operations from destructive ones.
Instructions
检测代码或操作指令中的潜在风险,支持 SQL、Shell 命令、API 调用等多种输入类型。能够根据上下文分析操作的影响范围和风险等级。
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": "check_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 要检查的代码或操作指令 | |
| language | No | 代码语言类型(sql/shell/api/auto,默认自动检测) | auto |