Skip to main content
Glama

Descendants

descendants
Read-onlyIdempotent

"All weaknesses derived from [CWE]" / "full subtree below [N]" / "every variant of [X]", full transitive descendants (children, grandchildren, ...) of a CWE. Use for exhaustive coverage analysis, e.g. "every memory-safety weakness" via descendants of CWE-664/119.

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": "74"
    },
    "name": "descendants"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
nameNoRoot CWE name
cwe_idNoRoot CWE identifier
descendantsNoRecursive array of descendant CWEs with their subtrees

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "id": "434"
      -  }
      -]New value: +[
      +  {
      +    "id": "74"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "434"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Full descendant subtree of a CWE",
      +  "properties": {
      +    "cwe_id": {
      +      "description": "Root CWE identifier",
      +      "type": "string"
      +    },
      +    "descendants": {
      +      "description": "Recursive array of descendant CWEs with their subtrees",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "name": {
      +      "description": "Root CWE name",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds the behavioral fact that traversal is full-depth rather than one level, which matters for result size, but says nothing about depth limits, cycle handling, or whether the root itself is included.

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 user phrasings, then a one-line definition, then the usage case — good ordering with little wasted text. The slash-separated quoted phrasings are slightly dense but each maps to a distinct query intent.

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?

An output schema exists, so return format needn't be explained, and annotations cover safety. For a one-parameter, read-only traversal tool the description supplies purpose, transitivity, and use case; only edge details (root inclusion, depth limits, ID format) are absent.

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 description coverage is 0% for the single `id` parameter, so the description must compensate: it establishes that `id` is a CWE identifier and supplies example values (CWE-664/119, "74"). It leaves a minor ambiguity about whether the prefixed or bare numeric form is expected, but the meaning is substantially clarified.

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 resource and scope: "full transitive descendants (children, grandchildren, ...) of a CWE". The word "transitive" plus the enumerated levels makes it distinguishable from a direct-children lookup without opening either schema.

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?

Gives a clear when-to-use signal ("Use for exhaustive coverage analysis") and a concrete worked scenario ("every memory-safety weakness" via CWE-664/119). It does not state exclusions or explicitly contrast with a direct-children alternative, but usage context is unambiguous.

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.