update_component
Update existing components in your architecture model, modifying attributes like name, type, version, or configuration. Supports single-item and batch updates to keep threat models accurate.
Instructions
Update an existing component in the architecture. Supports batch operations via the 'items' parameter.
This tool updates one or more existing components in the system architecture. For single item: provide id and fields to update directly. For batch: provide a list of component dicts in the 'items' parameter (each must include 'id').
Args: ctx: MCP context for logging and error handling id: ID of the component to update (required for single item mode) name: New name of the component type: New type of the component service_provider: New provider of the service specific_service: New specific service name version: New version of the component description: New description of the component configuration: New configuration details of the component items: Optional list of component dicts for batch update
Returns: A confirmation message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the component to update (required for single item mode) | |
| name | No | New name of the component | |
| type | No | New type of the component | |
| items | No | Optional list of components to update in batch. Each dict must contain 'id' and any fields to update. When provided, individual parameters are ignored. | |
| version | No | New version of the component | |
| description | No | New description of the component | |
| configuration | No | New configuration details of the component | |
| service_provider | No | New provider of the service | |
| specific_service | No | New specific service name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |