map_risks_to_controls
Identify mitigating controls for given risks using risk IDs, free-text queries, or multiple queries. Filter by preventive or detective controls and see uncovered risks.
Instructions
Map risks to the controls that mitigate them. Pass explicit risk_ids (up to 25), a free-text query (the top k matching risks are used), and/or up to 5 queries (each contributing its own top k matches, unioned with everything else) -- useful for "both X and Y" questions where a single query blurs together two distinct concepts. Controls are ordered by how many of the given risks they cover; control_type (PREV or DET) restricts the result. Reports uncovered risks and any inputs that did not resolve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | No | ||
| queries | No | ||
| risk_ids | No | ||
| control_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| risks | Yes | ||
| controls | Yes | ||
| unresolved | No | Inputs that did not resolve to a risk. | |
| uncovered_risks | No | Risk ids with no mapped control. |