Retrieve CAPEC attack patterns
cwe_get_attack_patternRetrieve CAPEC attack patterns, categories, and views by ID, such as CAPEC-66, CAPEC66, or 66, including Deprecated and Obsolete records; each entry’s type says which. Processes the first 20 distinct positions in submission order and lists later positions in deferredIds; a CWE ID or an item that is no ID returns in notFound with recovery guidance; only an item holding a control character other than whitespace, or a non-ID item over 150 characters, rejects the whole call. Patterns default to summary, prerequisites, execution, mitigations, and mappings. Request relations on a pattern for its recorded relationships and direct childAttackPatterns. Categories and views default to summary (the category summary or view objective) and relations (members in source order, or a filter-defined view’s source XPath filterDefinition). Views CAPEC-1000 (Mechanisms of Attack) and CAPEC-3000 (Domains of Attack) are entry points for browsing patterns by category. Request notes for recorded MITRE notes. Selected sections are complete; an empty sections array requests an outline with section sizes. Recorded CWE and ATT&CK mappings are incomplete and do not establish current ATT&CK validation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": "<ids>"
},
"name": "cwe_get_attack_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | One or more IDs. The first 20 distinct positions are processed; later positions are returned in deferredIds. | |
| sections | No | Selected sections; omit for defaults, or pass an empty array for an outline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Maximum identifiers processed per call. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Identifiers processed. | |
| notice | No | How to continue with deferred IDs. | |
| entries | No | Found projected entries in request order. | |
| guidance | No | Call-level guidance: deferred-ID continuation and the re-call for parameters the selected sections leave unused. | |
| notFound | No | Per-ID misses; an all-missing batch is success. | |
| truncated | No | Whether the 20-position cap deferred identifiers. | |
| provenance | No | Loaded catalog provenance. | |
| totalCount | No | Distinct submitted identifiers before the batch cap. | |
| deferredIds | No | Distinct items to submit in a later call: canonical IDs, or the collapsed text of an item that is no ID. |