relationship
Pack: mitre-cwe · Endpoint: https://gateway.pipeworx.io/mitre-cwe/mcp
“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.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
source_id | string | yes | |
target_id | string | yes |
Example call
Arguments
{
"source_id": "79",
"target_id": "352"
}
curl
curl -X POST https://gateway.pipeworx.io/mitre-cwe/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"relationship","arguments":{"source_id":"79","target_id":"352"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('relationship', {
"source_id": "79",
"target_id": "352"
});
Response shape
| Field | Type | Description |
|---|---|---|
source_id | string | Source CWE identifier |
target_id | string | Target CWE identifier |
relation_type | string | Type of relationship |
description | string | Relationship description |
Full JSON Schema
{
"type": "object",
"description": "Relationship details between two CWEs",
"properties": {
"source_id": {
"type": "string",
"description": "Source CWE identifier"
},
"target_id": {
"type": "string",
"description": "Target CWE identifier"
},
"relation_type": {
"type": "string",
"description": "Type of relationship"
},
"description": {
"type": "string",
"description": "Relationship description"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"mitre-cwe": {
"url": "https://gateway.pipeworx.io/mitre-cwe/mcp"
}
}
}
See Getting Started for client-specific install steps.