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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the component (required for single item mode) | |
| type | No | Type of the component (e.g., 'Compute', 'Storage', 'Network') (required for single item mode) | |
| items | No | Optional 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. | |
| version | No | Version of the component | |
| description | No | Description of the component | |
| configuration | No | Configuration details of the component | |
| service_provider | No | Provider of the service (e.g., 'AWS', 'Azure', 'GCP') | |
| specific_service | No | Specific service name (e.g., 'EC2', 'S3', 'Lambda') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |