Skip to main content
Glama
awslabs

Threat Modeling MCP Server

Official
by awslabs

execute_code_validation_step

Automates the code validation step, analyzing the codebase to identify implemented security controls and mitigated threats, then generating a markdown report.

Instructions

Execute the complete code validation step (Phase 7.5) automatically.

This tool automates the code validation step, analyzing the codebase to determine which security controls are already implemented and which threats are mitigated.

Args: ctx: MCP context for logging and error handling

Returns: A markdown-formatted report of the code validation results

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states that the tool 'automates,' 'analyzes the codebase,' and returns a markdown report, but it does not disclose whether the tool modifies state, updates progress, requires a pre-existing codebase setup, or has side effects. This is a significant gap for an 'execute' tool that likely triggers a multi-step process.

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?

The description is concise and well-structured: a clear one-line summary, a brief explanatory sentence, and compact Args/Returns sections. No redundant phrases or unnecessary detail; every sentence earns its place.

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?

The description covers the core purpose and return format, and the output schema likely documents the exact report structure. However, it lacks context about prerequisites (e.g., architecture and threat model inputs), potential side effects, and how this step fits into the broader threat-modeling workflow. For a phase-execution tool, this is a noticeable completeness gap.

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?

The input schema has zero parameters, so the description does not need to explain parameter semantics. However, the description lists a 'ctx' argument for logging and error handling that is not present in the schema, which is slightly confusing but does not impact usability since it appears to be an internal MCP context rather than a user-facing parameter.

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 tool 'Execute[s] the complete code validation step (Phase 7.5) automatically' and explains what it does: analyzing the codebase to identify implemented security controls and mitigated threats. This specific verb+resource+scope distinguishes it from sibling validation tools like validate_security_controls and validate_threat_model_against_code, which are individual validations rather than the full phase automation.

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

Usage Guidelines3/5

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

The description implies this tool is used to run the entire code validation phase ('Phase 7.5') automatically, giving some context but no explicit when-to-use guidance or alternatives. It does not mention that users might prefer individual validation tools for targeted checks, nor does it state prerequisites or when not to use this tool.

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