Skip to main content
Glama
awslabs

Threat Modeling MCP Server

Official
by awslabs

add_connection

Add connections between components in your architecture. Supports single or batch operations, specifying source and destination IDs, protocol, port, encryption, and description.

Instructions

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

This tool adds one or more connections between components in the system architecture. For single item: provide source_id, destination_id, and optional fields directly. For batch: provide a list of connection dicts in the 'items' parameter.

Args: ctx: MCP context for logging and error handling source_id: ID of the source component (required for single item mode) destination_id: ID of the destination component (required for single item mode) protocol: Protocol used for the connection (e.g., 'HTTP', 'HTTPS', 'TCP') port: Port used for the connection encryption: Whether the connection is encrypted description: Description of the connection items: Optional list of connection dicts for batch operation

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNoPort used for the connection
itemsNoOptional list of connections to add in batch. Each dict should contain 'source_id', 'destination_id', and optionally 'protocol', 'port', 'encryption', 'description'. When provided, individual parameters are ignored.
protocolNoProtocol used for the connection (e.g., 'HTTP', 'HTTPS', 'TCP')
source_idNoID of the source component (required for single item mode)
encryptionNoWhether the connection is encrypted
descriptionNoDescription of the connection
destination_idNoID of the destination component (required for single item mode)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the two operating modes and the return value ('A confirmation message with the connection ID(s)'), but it does not mention side effects, validation, error handling, or duplicate behavior. This is adequate but has clear gaps.

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 front-loaded with a clear summary, but it repeats the same idea in the first two sentences ('Add a new connection...' and 'This tool adds one or more connections...'). The Args section duplicates schema parameter descriptions, adding redundancy. It is not overly long, but every sentence does not earn its place.

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 a 7-parameter tool with no annotations and an output schema, the description covers the core purpose, usage modes, and return type. It lacks edge-case context such as duplicate handling or validation behavior, but overall it provides enough information for an agent to select and invoke the tool correctly.

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 100%, so the baseline is 3. The description adds value by explicitly explaining the single vs batch interaction model, including that source_id and destination_id are required for single mode and that items contains a list of connection dicts. This clarifies relationships beyond individual schema descriptions.

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 connection to the architecture' and 'adds one or more connections between components in the system architecture,' using a specific verb and resource. It distinguishes from sibling tools like update_connection and delete_connection by focusing on creation and explicitly mentioning batch mode.

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 provides clear guidance on when to use single vs batch mode: 'For single item: provide source_id, destination_id, and optional fields directly' and 'For batch: provide a list of connection dicts in the items parameter.' This gives actionable context, though it does not explicitly mention alternative tools 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