Skip to main content
Glama

Children

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedOutput schema / properties / children
      Removed value: -{
      -  "description": "Array of child CWE records",
      -  "items": {
      -    "properties": {
      -      "cwe_id": {
      -        "description": "Child CWE identifier",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Child name",
      -        "type": "string"
      -      },
      -      "view_id": {
      -        "description": "View identifier if applicable",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / items
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "ID": {
      +        "type": "string"
      +      },
      +      "Type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / parent_id
      Removed value: -{
      -  "description": "Parent CWE identifier",
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "79"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Direct children of a weakness/category/view",
      +  "properties": {
      +    "children": {
      +      "description": "Array of child CWE records",
      +      "items": {
      +        "properties": {
      +          "cwe_id": {
      +            "description": "Child CWE identifier",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Child name",
      +            "type": "string"
      +          },
      +          "view_id": {
      +            "description": "View identifier if applicable",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "parent_id": {
      +      "description": "Parent CWE identifier",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already convey read-only, open-world, and idempotent behavior, so the description only needs to add scoping context. It adds the important 'immediate children only' constraint and a hierarchy example, but does not describe return shape or edge cases such as CWEs without children. With annotations covering the safety profile, 3 is appropriate.

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 front-loads the core purpose, then adds an illustrative example and a brief explanation of CWE hierarchy. Every sentence adds useful context without padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With one required parameter, a clear example, an output schema, and annotations covering read-only/idempotent behavior, the description supplies everything needed to select and call the tool correctly. It is complete for a simple tree-traversal lookup.

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 0%, so the description must carry the meaning of the id parameter. It does so by indicating the id is a CWE identifier and by including examples like 'CWE-119' and the schema example '79'. It does not spell out allowed formats, but for a single-parameter tool this is enough context.

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?

Description contains a precise action and object: 'list immediate children of a CWE in the relationship tree.' It distinguishes itself from a broader traversal by using 'immediate' and provides concrete examples (CWE-119 -> CWE-787, CWE-125), which leaves no ambiguity about what the tool returns.

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 description makes the intended use clear: use it when you want child weaknesses or more specific variants of a CWE, and it explains that only immediate children are returned. It does not explicitly name alternatives such as the sibling 'descendants' tool for deeper traversal, so it stops short of a 5.

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.