Skip to main content
Glama

CWE Lookup

cwe_lookup
Read-only

CWE weakness details (description, mitigations, examples, OWASP Top 10 category in 2021 and 2025), with how many CVEs and CISA KEV entries name it. To list them, call the cve_search tool with its cwe_id argument.

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": {
      "cwe_id": "<cwe_id>"
    },
    "name": "cwe_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwe_idYesCWE ID, e.g. CWE-79

Output Schema

NameRequiredDescriptionDefault
nameYes
cwe_idYes
statusYesMITRE's status of the entry, such as Stable, Draft or Incomplete. May be empty.
creditsYes
avg_cvssYesMean CVSS v3 score of the CVEs with this CWE that have one. null when none has one.
avg_epssYesMean EPSS of its scored CVEs. null if none is scored or the mean rounds to 0.0000.
examplesYesEach is a reference, usually a CVE ID, then ": " and a note when MITRE gives one.
cve_countYesCVEs with this CWE, rejected ones included.
kev_countYesCVEs with this CWE that are in CISA KEV, rejected ones included.
parent_cweYesEmpty when the CWE has no parent.
updated_atYesUTC YYYY-MM-DDTHH:MM:SSZ when the CWE sync last wrote this record. Empty when unknown.
abstractionYesMITRE's level of the entry, such as Pillar, Class, Base or Variant. May be empty.
descriptionYes
mitigationsYes
owasp_top10YesOWASP Top 10 categories naming this CWE, oldest edition first. Empty: none. null: mapping not loaded.
extended_descriptionYes
likelihood_of_exploitYesHigh, Medium, Low or Unknown. Empty when MITRE gives none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The readOnlyHint and openWorldHint annotations already establish that this is a safe, closed lookup. The description adds useful behavioral context by naming the content returned and the aggregate CVE/CISA KEV counts, which goes beyond the annotations. It does not cover data freshness or invalid-ID behavior, but the output schema and annotations reduce the burden.

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

Conciseness5/5

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

The description is two tightly written sentences with no wasted words. The core resource and returned details are front-loaded, and the sibling redirect is placed after the primary purpose.

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?

For a single-parameter, read-only lookup with a full input schema and an output schema, the description provides enough detail about returned content and counts to call the tool correctly. Minor gaps such as invalid-ID handling or data freshness are not essential given the output schema and annotations.

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

Parameters3/5

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

Schema description coverage is 100%, and the single cwe_id parameter is fully documented in the schema with an example format. The description references a cwe_id argument for cve_search but adds no additional semantics for this tool's own parameter beyond what the schema provides. Baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly identifies the resource as CWE weakness details, enumerates the specific content returned (description, mitigations, examples, OWASP Top 10 categories for 2021 and 2025, CVE and CISA KEV counts), and explicitly distinguishes the tool from cve_search for listing CVEs. An agent can immediately tell what this tool does and how it differs from the sibling.

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?

The description gives a clear redirect to cve_search with its cwe_id argument when the goal is to list CVEs naming a weakness. It does not explicitly state when not to use cwe_lookup or list other alternatives, but the context for using it versus cve_search is clear.

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.