add_component_to_zone
Add components to trust zones in your architecture. Supports single or batch operations by providing zone and component IDs, enabling efficient grouping for structured threat modeling.
Instructions
Add a component to a trust zone. Supports batch operations via the 'items' parameter.
This tool adds one or more components to trust zones in the system architecture. For single item: provide zone_id and component_id directly. For batch: provide a list of dicts in the 'items' parameter.
Args: ctx: MCP context for logging and error handling zone_id: ID of the trust zone (required for single item mode) component_id: ID of the component to add (required for single item mode) items: Optional list of zone-component pair dicts for batch operation
Returns: A confirmation message
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_component_to_zone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Optional list of zone-component pairs to add in batch. Each dict should contain 'zone_id' and 'component_id'. When provided, individual parameters are ignored. | |
| zone_id | No | ID of the trust zone (required for single item mode) | |
| component_id | No | ID of the component to add (required for single item mode) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |