Skip to main content
Glama

get_cwe_info

Fetch vulnerability metadata for specified CWE IDs, including descriptions and classification details, to support security analysis.

Instructions

Get metadata for specified CWE ID(s)

Args: ids: Comma-separated list of CWE IDs (with or without 'CWE-' prefix) Example: "79" or "CWE-79" or "79,89,CWE-22"

Returns: Dictionary with CWE metadata or error information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are present, so the description carries the full burden for behavior. It discloses that the tool returns a dictionary with metadata or error information, and it specifies the expected ID format. However, it does not mention potential error conditions, permissions, rate limits, or other behavioral traits beyond the basic read operation.

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 compact and logically structured with an action line, an Args section, and a Returns section. Every sentence adds value—there is no filler or repetition, and the layout is easy to scan.

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 simple read-only tool with one parameter and an output schema, the description covers the input format and general return behavior sufficiently. It lacks explicit guidance on tool selection among siblings, but the level of detail is otherwise complete for invocation.

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

Parameters5/5

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

The schema provides only the parameter name 'ids' and type 'string' with zero description. The description compensates thoroughly by explaining the comma-separated format, the optional 'CWE-' prefix, and providing concrete examples, making the parameter behavior completely clear.

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?

The description states a clear action ('Get metadata') and a specific resource ('specified CWE ID(s)'). It is somewhat differentiated from sibling tools like get_cwe_weakness or get_cwe_category by its general 'metadata' scope, but does not explicitly name alternatives or clarify why this generic tool is preferable.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus its siblings such as get_cwe_weakness, get_cwe_view, or get_cwe_parents. It simply states the function with no mention of context, prerequisites, or exclusions, leaving the agent without decision support.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bilel-Eljaamii/cwe-search_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server