triage_semgrep_finding
Triage a single Semgrep or scanner finding with GMI Inference to get a validated verdict, severity, confidence, reason, and fix, with estimated and actual cost.
Instructions
Triage one semgrep or scanner finding with GMI Inference.
Returns one validated finding as JSON: verdict, severity, confidence, reason, fix, stage used, latency, tokens, cost, and the estimate made before the call. An unparsed reply returns verdict null and unparsed true. It never returns clean. The verdict is stored in the findings store (per-user ~/.gmi-security-mcp/findings.db by default) and the result carries finding_id. An explicit db_path is allowed, with a warning that the caller is responsible for not committing it.
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": {
"finding": "<finding>",
"code": "<code>"
},
"name": "triage_semgrep_finding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| file | No | ||
| line | No | ||
| check | No | ||
| db_path | No | ||
| finding | Yes | ||
| threshold | No | ||
| two_stage | No | ||
| max_tokens | No | ||
| stage1_model | No | ||
| stage2_model | No | ||
| spend_cap_usd | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |