classify_model_cwe
Classify control objectives in a threat model against the current CWE catalog, validating IDs to prevent hallucinations. Return a summary of classified counts, skipped tags, and catalog version.
Instructions
Classify a model's control objectives against the platform CWE catalog.
Grounded: the model may only select from the catalog's current-version
candidate ids, and every returned id is re-validated against the catalog
before storage — a hallucinated or deprecated id is never persisted.
Skips control objectives already tagged at the catalog's current version
unless force is set. Returns a summary:
{status, catalog_version, cos, classified, tags_written, skipped}.
404s if CWE classification is not enabled on this instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | re-classify control objectives even if already tagged at the catalog's current version (default false). | |
| model_id | Yes | ID of the threat model to classify. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||