Skip to main content
Glama

mitre-cwe-mcp-server

List CWE and CAPEC reference values

cwe_list_reference
Read-onlyIdempotent

List loaded CWE/CAPEC vocabulary, every CWE view, workflow guidance, or catalog versions and refresh health. Filter requires every whitespace-separated token in an item label, each at a word start or camelCase hump (script finds JavaScript); omit filter to browse. Platforms distinguishes example code languages from platform names and classes. Follow nextCursor for complete lists; limits above 100 are capped with disclosure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum page size; capped at 100 and a 24,000-byte response budget with disclosure.
topicYesviews lists CWE view IDs; abstraction_levels explains CWE and CAPEC levels; mitigation_phases lists prevention phases; platforms lists platform dimensions and exampleLanguages; relationship_natures lists relation labels; filter_values lists statuses, consequence impacts, CWE mapping usage, CWE taxonomy names, severity, and likelihood; workflow explains navigation; versions reports catalog freshness and refresh health.
cursorNoOpaque continuation returned by this tool.
filterNoAll-token case-insensitive label filter; each token matches at a word start or camelCase hump, never inside a word. Blank means unset.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNoEffective page limit.
errorNoPresent when the call failed. Absent on success.
itemsNoMatching reference page.
shownNoReference items on this page.
topicNoRequested topic.
noticeNoApplicable empty or cap disclosure.
catalogsNoBoth loaded catalog health records; versions only.
truncatedNoWhether the page limit omitted matching items.
paginationNoLocal result pagination.
provenanceNoLoaded catalog provenance.
totalCountNoMatching reference items before paging.
appliedFiltersNoApplied filters and defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds behavior beyond them: page caps above 100 with disclosure and the need to follow nextCursor for exhaustive lists. It does not mention ordering of results or what an empty page means, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource scope, then filter and pagination behavior, with no filler sentences. The second sentence ("Platforms distinguishes example code languages from platform names and classes") is compressed to the point of being hard to parse on first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema, full schema descriptions, and annotations present, the description only needs to add routing and behavioral context, which it does for filtering, capping, and pagination. Coverage of how the topics relate to sibling tools is the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the non-obvious filter matching rule (tokens match at word starts or camelCase humps, with the "script finds JavaScript" example) and by clarifying that platforms mixes example-code languages with platform names and classes. The limit cap and cursor semantics largely repeat the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("List loaded CWE/CAPEC vocabulary") and enumerates the topic families it covers, which clearly separates it from the get_/search_ siblings. The trailing "or" chaining of views, workflow, and versions makes it read as a grab-bag rather than a crisp statement of one purpose, so it falls short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"omit filter to browse" plus "Follow nextCursor for complete lists" gives concrete when-to guidance for the two main usage modes. It stops short of explicitly routing the agent away from cwe_search_weaknesses or cwe_get_view, so there is context but no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.