Canonical: https://agentmasterdata.com/use-cases/cwe/

REFERENCE DATA FOR AGENTS

# Look up software weakness references

A security-triage agent follows a CWE ID supplied by a KEV entry, such as CWE-79, to its weakness name and typed relationships. A matching reference does not establish whether a particular system is vulnerable.

## When this fits

CWE 5.0 taxonomy: 984 weaknesses, including deprecated entries; 1,622 typed relationships and 1,278 structured consequence occurrences. Counts describe the checked release. Taxonomy/reference scope only. Detection, mitigation, consequence notes and other guidance are excluded. No vulnerability detection, risk scoring, inferred CVE impact, system applicability or remediation advice. Validity is unknown: include_inactive=true includes these values, which retain active:null and warnings. Deprecated entries retain their source-stated status.

[Source, scope and usage terms](https://agentmasterdata.com/datasets/cwe/)

## Check the current release

Read [the live schema](https://api.agentmasterdata.com/v1/master-data/schema), [readiness](https://api.agentmasterdata.com/readyz), and MCP `tools/list` before using `mitre-cwe`. These instructions describe approved scope, not a promise that a particular deployment is available. Check [pricing](https://api.agentmasterdata.com/v1/pricing) and [attribution](https://api.agentmasterdata.com/legal/attribution). A promotional window may permit a free request; do not infer permission from `payments_enabled: false` alone.

## Make one bounded request

These commands send no wallet signature or payment proof and do not retry. A `402` response means stop and inspect the quote; it does not authorize spending. Check availability and terms first.

```
curl --fail-with-body --get 'https://api.agentmasterdata.com/v1/reference-data/mitre-cwe' \
  --data-urlencode 'codes=CWE-79' \
  --data-urlencode 'include_inactive=true' \
  --data-urlencode 'limit=1'
```

The equivalent MCP call uses the same arguments:

```
curl --fail-with-body 'https://api.agentmasterdata.com/mcp' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: get_reference_data' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_reference_data","arguments":{"domain":"mitre-cwe","codes":["CWE-79"],"include_inactive":true,"limit":1}}}'
```

[Machine-readable arguments](https://agentmasterdata.com/examples/cwe-request.json) · [Input schema](https://agentmasterdata.com/contracts/schemas/tools/get_reference_data.input.schema.json)

## Accept only supported results

Check `ok`, the returned domain and exact requested code. Keep the result envelope’s `meta.data_version`, source identifiers, licences, public-use terms and warnings. For MCP, inspect `structuredContent` and `isError`. Do not substitute a different domain or treat an empty result as a match.

`include_inactive: true` permits unknown-validity values. Preserve `active: null` and `reference_value_validity_unknown`; they do not establish that the value is currently active. Use `include_inactive: false` when the task requires known-active values.

## Handle an unavailable service

Stop on a challenge page, unavailable domain, unresolved terms, or payment refusal. For `429`, respect `Retry-After` within a bounded caller policy. These examples are unsigned request shapes; dated CWE release verification is recorded on the dataset page. [Read the complete connection guide](https://agentmasterdata.com/agent-guide).

[Agent guide](https://agentmasterdata.com/agent-guide) · [Live API schema](https://api.agentmasterdata.com/v1/master-data/schema)
