add_flow
Add asset flows to a threat model, specifying source, destination, and security controls. Supports batch addition of multiple flows.
Instructions
Add a new asset flow to the system. Supports batch operations via the 'items' parameter.
This tool adds one or more asset flows to the system. For single item: provide asset_id, source_id, destination_id, and optional fields directly. For batch: provide a list of flow dicts in the 'items' parameter.
Args: ctx: MCP context for logging and error handling asset_id: ID of the asset being transferred (required for single item mode) source_id: ID of the source component or trust zone (required for single item mode) destination_id: ID of the destination component or trust zone (required for single item mode) transformation_type: Type of transformation applied to the asset controls: List of security controls applied to the flow description: Description of the flow protocol: Protocol used for the flow encryption: Whether the flow is encrypted authenticated: Whether the flow is authenticated authorized: Whether the flow is authorized validated: Whether the flow is validated risk_level: Risk level of the flow (1-5) items: Optional list of flow dicts for batch operation
Returns: A confirmation message with the flow ID(s)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| asset_id | No | ||
| controls | No | ||
| protocol | No | ||
| source_id | No | ||
| validated | No | ||
| authorized | No | ||
| encryption | No | ||
| risk_level | No | ||
| description | No | ||
| authenticated | No | ||
| destination_id | No | ||
| transformation_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |