Skip to main content
Glama

Saasment Security MCP

Get a CWE entry

get_cwe
Read-onlyIdempotent

Return a MITRE Common Weakness Enumeration entry: name, description, abstraction, related weaknesses, common consequences, mitigations, and the official cwe.mitre.org URL. Accepts weaknesses, categories, and views. Read-only. Fetched on demand and cached for up to a day.

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": {
      "cweId": "<cweId>"
    },
    "name": "get_cwe"
  }
}

Input Schema

NameRequiredDescriptionDefault
cweIdYesCWE id, for example CWE-79 or 79.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered by structured data. The description adds real behavioral context beyond that: results are fetched on demand and cached for up to a day, which tells the agent to expect possible staleness and cheap repeat calls. It does not discuss failure behavior for unknown or invalid IDs.

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?

A single compact paragraph, front-loaded with what is returned, then accepted inputs, then read-only/caching behavior. Every clause carries information; the only marginal item is the adjective 'official' in the URL phrase.

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 one-parameter lookup with no output schema, the description covers the return contents, accepted ID forms, and caching behavior adequately. The remaining gap is what happens on an invalid or missing CWE id, which an agent calling with a bad value would want to know.

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% and the cweId description already gives the CWE-79/79 example, so the baseline is 3. The description adds meaning beyond the schema by noting the same identifier space covers weaknesses, categories, and views — a fact not evident from the numeric/pattern schema alone.

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?

Specific verb and resource ('Return a MITRE Common Weakness Enumeration entry') plus an enumeration of the returned fields: name, description, abstraction, related weaknesses, consequences, mitigations, and official URL. It also states which entry types are addressable (weaknesses, categories, views), which no sibling covers — the siblings are CVE/EPSS/OSV-oriented rather than CWE-oriented.

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?

Implicit guidance only: the accepted ID forms and the entry types signal when this tool applies, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative (e.g. search a CWE by keyword vs. fetch by id). An agent can infer usage but must supply the routing decision itself.

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