regenerate_controls
Regenerate controls from a model's control objectives, preserving implementation data for unchanged controls and soft-deleting outdated ones. Target specific control objectives or rebuild all.
Instructions
Regenerate controls from the model's control objectives. Mutating.
Re-authors controls from the current COs. Controls whose descriptions
survive regeneration unchanged KEEP their implementation status,
evidence, notes, assertions, and Jira / compliance mappings. Controls
whose descriptions change or disappear are soft-deleted (still
queryable via get_controls(include_deleted=True)). When co_ids
is given, only those COs' controls are regenerated — all other controls
are left as-is.
May run as a background job; this tool waits for completion and returns
the final result. To rebuild everything, omit co_ids. To fix only
stale/orphaned CO mappings without re-authoring control text, prefer
remap_control (mechanical, no LLM).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "batch" (default) or "per_co" (most thorough — one LLM call per CO). | batch |
| co_ids | No | Optional comma-separated CO IDs to regenerate (e.g. "CO1,CO5"). Omit to regenerate all controls. | |
| model_id | Yes | ID of the threat model. | |
| batch_size | No | COs per batch in batch mode (default 15). Smaller = more accurate and more granular progress, but more LLM calls. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||