Skip to main content
Glama

security_cwe

Read-only

CWE weakness lookup — Look up a Common Weakness Enumeration entry (e.g. CWE-79, CWE-89) from MITRE: name, description, likelihood of exploit, 2024 CWE Top 25 rank, consequences, mitigations by phase, detection methods, related weaknesses, affected platforms, real CVE examples and linked CAPEC attack patterns. Pairs with security/cve and security/kev. Price: $0.003 USDC (Base, via x402).

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": {
      "id": "<id>"
    },
    "name": "security_cwe"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCWE number, e.g. 79 or CWE-79

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that with an explicit cost and payment mechanism ("$0.003 USDC (Base, via x402)") and by naming the upstream data source, both of which materially affect whether and how an agent should invoke it.

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?

The purpose leads, followed by a compact field inventory and the pairing/cost notes. The long return-field list earns its place by letting an agent judge coverage, though it reads as a dense run-on and could be better grouped.

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?

No output schema exists, but the description enumerates the returned fields well enough to set expectations, and the pricing line covers the operational prerequisite. Minor gaps remain on failure behavior (unknown CWE id) and response size, which are low-risk for a simple one-parameter read.

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 schema already documents the single `id` parameter with the same examples (79 or CWE-79) that the description repeats. The description therefore adds no semantics beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource ("Look up a Common Weakness Enumeration entry") and names concrete inputs (CWE-79, CWE-89) plus the authoritative source (MITRE). The enumerated return fields and the "Pairs with security/cve and security/kev" note let an agent separate this weakness-class lookup from instance-level CVE/KEV lookups without opening any schema.

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

Usage Guidelines3/5

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

The "Pairs with security/cve and security/kev" line implies the family relationship and where this tool fits, which is real context. However, it never states a positive selection rule (e.g. 'use when you have a CWE id but no CVE id') or any exclusion, so the routing decision is left to inference.

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.

Resources