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

NameTypeRequiredDescription
source_idstringyes
target_idstringyes

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

FieldTypeDescription
source_idstringSource CWE identifier
target_idstringTarget CWE identifier
relation_typestringType of relationship
descriptionstringRelationship 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.

Regenerated from source · build July 6, 2026