Relationship
relationship"How is [CWE-A] related to [CWE-B]" / "relationship between two weaknesses", fetch the directional relationship (parent/child/peer/precedes/can-precede) between two specific CWE IDs. Specialty tool; most queries are better served by children / parents / descendants.
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": {
"source_id": "79",
"target_id": "352"
},
"name": "relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | ||
| target_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_ids | No | CWE view ids in which a direct parent/child link between the two was found | |
| source_id | No | Source CWE identifier | |
| target_id | No | Target CWE identifier | |
| description | No | Relationship description | |
| relation_type | No | Type of relationship |