Skip to main content
Glama
badchars
by badchars

cwe_hierarchy

Map a given CWE to its parent and child weaknesses to understand how it relates to more general or specific definitions.

Instructions

Get CWE parent/child hierarchy. Shows which weaknesses are more general (parents) and more specific (children) variants of a given CWE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCWE ID (e.g., 'CWE-79' or just '79')
Behavior3/5

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

No annotations provided, so description carries full burden. It accurately describes the operation as read-only (hierarchy retrieval), but fails to disclose any other behavioral traits like authentication needs, rate limits, or if the output is a list or tree.

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?

Two sentences, concise and front-loaded with the key action and resource. Every word adds value; no fluff.

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 tool with one required parameter and no output schema, the description adequately covers the purpose and parameter. However, it does not hint at the output format (e.g., list vs tree), which would be helpful for an agent.

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% with one parameter described. The description adds meaning by explaining the hierarchy concept (parent/child, general/specific), which goes beyond the schema's simple type and example.

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?

Clearly states the action ('Get') and resource ('CWE parent/child hierarchy'), including the distinction between parents and children, which differentiates it from sibling tools like cwe_get or cwe_lookup.

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?

Implies usage with a given CWE ID, but does not explicitly state when to use this over alternatives such as cwe_lookup or cwe_top25, nor provides any when-not-to-use guidance.

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/badchars/cve-mcp'

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