Skip to main content
Glama
awslabs

Threat Modeling MCP Server

Official
by awslabs

add_component

Add architecture components individually or in batch, specifying provider, service, version, and configuration for threat modeling.

Instructions

Add a new component to the architecture. Supports batch operations via the 'items' parameter.

This tool adds one or more components to the system architecture. For single item: provide name, type, and optional fields directly. For batch: provide a list of component dicts in the 'items' parameter.

Args: ctx: MCP context for logging and error handling name: Name of the component (required for single item mode) type: Type of the component (required for single item mode) service_provider: Provider of the service (e.g., 'AWS', 'Azure', 'GCP') specific_service: Specific service name (e.g., 'EC2', 'S3', 'Lambda') version: Version of the component description: Description of the component configuration: Configuration details of the component items: Optional list of component dicts for batch operation

Returns: A confirmation message with the component ID(s)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName of the component (required for single item mode)
typeNoType of the component (e.g., 'Compute', 'Storage', 'Network') (required for single item mode)
itemsNoOptional list of components to add in batch. Each dict should contain 'name', 'type', and optionally 'service_provider', 'specific_service', 'version', 'description', 'configuration'. When provided, individual parameters are ignored.
versionNoVersion of the component
descriptionNoDescription of the component
configurationNoConfiguration details of the component
service_providerNoProvider of the service (e.g., 'AWS', 'Azure', 'GCP')
specific_serviceNoSpecific service name (e.g., 'EC2', 'S3', 'Lambda')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It explains the tool creates one or more components, supports single and batch modes, and returns a confirmation with component ID(s). It does not mention permissions, validation, or overwriting behavior, but for an add tool it is reasonably transparent.

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

Conciseness4/5

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

The description is well-structured with a summary, Args list, and Returns. However, the opening lines are somewhat redundant ('Add a new component' and 'This tool adds one or more components' repeat the same idea), and the Args list largely repeats schema descriptions. Still, it's reasonably concise and organized.

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

Completeness4/5

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

For an 8-parameter tool with two modes, the description provides enough context to invoke it correctly: it explains single vs batch, required fields in single mode, and the return value. It doesn't address edge cases or error handling, but with an output schema available, it is largely complete.

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 schema already documents all 8 parameters with 100% coverage, so baseline is 3. The description adds value by clarifying that name and type are required for single-item mode (schema has no required fields), and by explaining the batch behavior via items. However, it includes a phantom 'ctx' parameter not present in the schema, which is a minor flaw.

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 'Add a new component to the architecture' and further explains it adds one or more components. The verb 'add' and resource 'component' are explicit, and the batch note distinguishes this from update/delete/list sibling tools.

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 explains when to use single-item vs batch mode using the 'items' parameter, providing clear context for both paths. However, it doesn't explicitly mention alternatives like 'use this for creating, not updating components' or exclusions, so it lacks explicit when-not guidance.

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