Skip to main content
Glama
awslabs

Threat Modeling MCP Server

Official
by awslabs

validate_threat_remediation

Check if specific threats are remediated in your codebase and update the threat model accordingly.

Instructions

Check if specific threats are remediated in code and update threat model.

Given specific threat IDs, analyze the codebase to determine if these threats are mitigated by existing code and update the threat model accordingly.

Args: ctx: MCP context for logging and error handling code_directory: Directory containing code to analyze threat_ids: List of threat IDs to validate

Returns: Simple instruction for autonomous threat-specific analysis

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
threat_idsYes
code_directoryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations are absent, so the description must carry the full burden. It does disclose that the tool updates the threat model, indicating a mutating operation. Yet it leaves critical details vague, such as exactly what 'update accordingly' entails, prerequisites, reversibility, and the ambiguous 'Returns: Simple instruction for autonomous threat-specific analysis'. This is incomplete behavioral disclosure.

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

Conciseness3/5

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

The description is organized with Args/Returns sections, but the first two sentences are redundant, repeating the same core idea. The 'Returns' line is cryptic and adds confusion rather than clarity. It is not as concise as it could be, though not excessively long.

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

Completeness2/5

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

Given the complexity of threat modeling and the absence of annotations, the description leaves significant gaps. It does not clarify what 'update the threat model accordingly' means in practice, what the returned 'simple instruction' is for, or how the code analysis is performed. The output schema exists but is not described, and the tool's side effects are not fully specified.

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 description coverage is 0%, so the description must compensate. It explains code_directory and threat_ids meaningfully, adding value beyond the raw schema. However, it also lists 'ctx' as an argument, which is not in the schema, and the explanation of threat_ids is minimal, preventing a perfect score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Check if specific threats are remediated in code') and the resource ('specific threats', 'codebase'), and also indicates it updates the threat model. It distinguishes itself from sibling validation tools like validate_threat_model_against_code by targeting specific threat IDs and explicitly updating the model.

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 description implies when to use the tool: 'Given specific threat IDs' and 'analyze the codebase' provides clear context for targeted remediation validation. However, it does not explicitly mention alternatives or when not to use it, missing the strong exclusion language seen in higher-scoring examples.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/awslabs/threat-modeling-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server