Classify Model Cwe
classify_model_cweClassify a model's control objectives against the current CWE catalog, validating IDs to prevent hallucinated or deprecated entries. Skips already tagged unless forced, returns summary.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_version": "<server_version>",
"model_id": "<model_id>"
},
"name": "classify_model_cwe"
}
}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 | |||