Descendants
descendants"All weaknesses derived from [CWE]" / "full subtree below [N]" / "every variant of [X]", full transitive descendants (children, grandchildren, ...) of a CWE. Use for exhaustive coverage analysis, e.g. "every memory-safety weakness" via descendants of CWE-664/119.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "74"
},
"name": "descendants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Root CWE name | |
| cwe_id | No | Root CWE identifier | |
| descendants | No | Recursive array of descendant CWEs with their subtrees |