Skip to main content
Glama

Mitre Cwe Children

mitre_cwe_children
Read-onlyIdempotent

"CWEs derived from / under [N]" / "child weaknesses of [CWE]" / "more specific variants of [X]", list immediate children of a CWE in the relationship tree. CWE is hierarchical; e.g. children of CWE-119 (memory bounds) include CWE-787 (out-of-bounds write) and CWE-125 (out-of-bounds read).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "79"
    },
    "name": "mitre_cwe_children"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
countNo
itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, and an output schema exists, so the description's remaining burden is small. It adds useful scope information by clarifying the result is one level of a hierarchical tree rather than a recursive subtree, but says nothing about behavior for unknown/malformed CWE ids or edge cases at the tree leaves. That is modest added value beyond the annotations.

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?

Front-loaded with the core action, then supporting alias phrasings and one illustrative example; no filler sentences. The repeated quoted phrasings are slightly redundant with one another, which keeps it off a 5.

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 lookup with annotations covering safety and an output schema covering returns, this is close to complete: it conveys hierarchy, direction (children, downward), and provides examples. Only the id format and the invalid-id behavior remain unaddressed.

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 coverage is 0% – the schema only declares a single untyped-in-meaning 'id' string with example '79' – so the description must carry the semantics. It does indicate the parameter is a CWE identifier by using [N], [CWE] and [X], but never states the accepted format (bare number vs 'CWE-119' prefix), leaving a real ambiguity for a 1-parameter call.

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?

States a specific verb and resource: 'list immediate children of a CWE in the relationship tree', and reinforces it with the concrete CWE-119 → CWE-787/CWE-125 example. The word 'immediate' implicitly separates it from full-subtree or parent lookups, but no sibling is named explicitly, so it stops short of a 5.

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 quoted phrasings ('CWEs derived from / under [N]', 'child weaknesses of [CWE]', 'more specific variants of [X]') map realistic user intents onto this tool, giving clear context for when it applies. It offers no explicit exclusions or pointer to alternatives such as descendants/parents for broader or upward traversal, so it is clear-context rather than full when/when-not guidance.

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.