Skip to main content
Glama
awslabs

Threat Modeling MCP Server

Official
by awslabs

update_connection

Update existing architectural connections by modifying source, destination, protocol, port, encryption, or description. Supports batch operations via items list.

Instructions

Update an existing connection in the architecture. Supports batch operations via the 'items' parameter.

This tool updates one or more existing connections in the system architecture. For single item: provide id and fields to update directly. For batch: provide a list of connection dicts in the 'items' parameter (each must include 'id').

Args: ctx: MCP context for logging and error handling id: ID of the connection to update (required for single item mode) source_id: New ID of the source component destination_id: New ID of the destination component protocol: New protocol used for the connection port: New port used for the connection encryption: New encryption status description: New description of the connection items: Optional list of connection dicts for batch update

Returns: A confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoID of the connection to update (required for single item mode)
portNoNew port used for the connection
itemsNoOptional list of connections to update in batch. Each dict must contain 'id' and any fields to update. When provided, individual parameters are ignored.
protocolNoNew protocol used for the connection
source_idNoNew ID of the source component
encryptionNoNew encryption status
descriptionNoNew description of the connection
destination_idNoNew ID of the destination component

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 of behavioral disclosure. It reveals that the tool updates one or more existing connections, supports batch operations, and requires each batch item to include 'id'. It also states the return value is a confirmation message. However, for a mutation tool, it does not disclose side effects, error behavior, reversibility, or permission requirements, leaving significant gaps.

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 first-line summary, a brief explanation of modes, an Args list, and a Returns section. It is front-loaded with the core purpose. However, the Args list largely duplicates schema descriptions, adding length without new information, though it remains reasonably concise overall.

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?

This is a moderately complex tool with 8 parameters and batch support. The description adequately explains the two usage modes and batch requirements, but lacks information on partial updates, error handling, or how this tool differs from other update_* tools. An output schema exists, so return details are not needed, but the description still has notable gaps for a tool of this complexity.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all parameters. The description adds some usage semantics (single vs batch modes) but mostly restates the schema descriptions (e.g., 'New ID of the source component'). It also introduces a 'ctx' argument that does not appear in the input schema, which is confusing and adds minimal value beyond what the schema provides.

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?

The description clearly states the tool's purpose: 'Update an existing connection in the architecture' and mentions batch support via 'items'. This is a specific verb+resource pair. However, it does not distinguish this tool from sibling update_* tools (e.g., update_component, update_data_store), so it lacks explicit differentiation.

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 usage context for both single and batch modes: 'For single item: provide id and fields to update directly. For batch: provide a list of connection dicts in the 'items' parameter.' It also explains that each batch item must include 'id'. However, it does not mention when to prefer this tool over alternatives or when not to use it, so exclusions and alternatives are missing.

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