Skip to main content
Glama

Verify Threats in Code

verify_threats_in_code
Read-only

Verify whether modelled STRIDE/LINDDUN threats are mitigated in a scan's uploaded code or AST. If threat_id is provided, returns synchronous verdict; otherwise dispatches batch verification across all diagram threats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scan_idYesCode review scan id
threat_idNoOptional specific threat id/code to verify
code_contentNoOptional inline code snippet to verify
repository_idNoOptional repository id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / async_
      Removed value: -{
      -  "default": true,
      -  "type": "boolean"
      -}
    • changedInput schema / properties / code_content / description
      Previous value: -"Optional inline code context"New value: +"Optional inline code snippet to verify"
    • changedInput schema / properties / repository_id / description
      Previous value: -"Optional connected repo to fetch code from"New value: +"Optional repository id"
    • changedInput schema / properties / scan_id / description
      Previous value: -"CodeReviewScan id (uuid)"New value: +"Code review scan id"
    • changedInput schema / properties / threat_id / description
      Previous value: -"Optional: a single threat id or code"New value: +"Optional specific threat id/code to verify"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavior context by disclosing the synchronous-vs-batch dispatch modes, but says nothing about how the batch path reports back, latency, or any limits.

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

Conciseness5/5

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

Two tightly packed sentences with zero filler. The core purpose is front-loaded and the mode-switching rule follows immediately, so an agent can read the whole contract at a glance.

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

Completeness3/5

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

Read-only annotations and a fully documented schema cover most of the contract, but with no output schema the description should explain what each mode returns. The batch path is described only as 'dispatches,' leaving the agent unsure whether it gets results, a job handle, or nothing back.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: presence of threat_id switches the tool from batch to synchronous single-threat verification. It also clarifies that verification runs against uploaded code or AST, tying to code_content, though scan_id and repository_id get no added explanation.

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 a specific verb (verify) and resource (STRIDE/LINDDUN threats in a scan's uploaded code or AST), which clearly separates it from generate_threat_model and code_review_scan. However, it never names a sibling or explicitly contrasts itself with the threat-modeling and remediation tools, so the differentiation is implicit.

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

Usage Guidelines4/5

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

The second sentence gives an explicit decision rule: supplying threat_id yields a synchronous verdict, omitting it dispatches batch verification across diagram threats. That is a genuine when-to-use branch, but there is no guidance on prerequisites, when not to use it, or which sibling to pick for related tasks.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.