Skip to main content
Glama

Parents

parents
Read-onlyIdempotent

"What's the parent CWE of [N]" / "broader weakness category for [X]" / "where does [CWE] sit in the taxonomy", list immediate parents of a CWE in the relationship tree. Use to walk up to a more general weakness class.

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": "89"
    },
    "name": "parents"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
countNo
itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / count
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / cwe_id
      Removed value: -{
      -  "description": "Child CWE identifier",
      -  "type": "string"
      -}
    • addedOutput schema / properties / items
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "ID": {
      +        "type": "string"
      +      },
      +      "Primary_Parent": {
      +        "type": "boolean"
      +      },
      +      "Type": {
      +        "type": "string"
      +      },
      +      "ViewID": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / parents
      Removed value: -{
      -  "description": "Array of parent CWE records",
      -  "items": {
      -    "properties": {
      -      "cwe_id": {
      -        "description": "Parent CWE identifier",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Parent name",
      -        "type": "string"
      -      },
      -      "relation_type": {
      -        "description": "Type of parent relationship",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "89"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Parent relationships of a CWE",
      +  "properties": {
      +    "cwe_id": {
      +      "description": "Child CWE identifier",
      +      "type": "string"
      +    },
      +    "parents": {
      +      "description": "Array of parent CWE records",
      +      "items": {
      +        "properties": {
      +          "cwe_id": {
      +            "description": "Parent CWE identifier",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Parent name",
      +            "type": "string"
      +          },
      +          "relation_type": {
      +            "description": "Type of parent relationship",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile needs no repetition. The description adds one genuinely useful behavioral detail, 'immediate', clarifying that this is a single-level lookup rather than the full ancestor chain. It does not say what happens at the taxonomy root or whether non-CWE ids are rejected.

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?

The description is short and the core operation sits in the main clause after three bracketed intent phrasings. The intent phrasings are useful for matching, though they occupy roughly half the text before the actual statement of behavior.

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-shape details are unnecessary, and the rich annotations cover safety. For a one-parameter read, the description covers what to call and in which direction; only the id format and root-node behavior are 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 description coverage is 0% for the single 'id' parameter, so the description should carry the load. The placeholders '[N]', '[CWE]' and '[X]' plus the focus on CWE taxonomy imply the id is a CWE identifier, which is modest compensation, but the accepted format (for example, 'CWE-89' versus '89') is not stated.

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 has a clear verb and resource: 'list immediate parents of a CWE in the relationship tree', and its example phrasings ('broader weakness category for [X]', 'where does [CWE] sit in the taxonomy') show exactly what the tool returns. It implies the opposite direction from tree-walking siblings such as descendants and mitre_cwe_children through 'walk up to a more general weakness class', but it never names those siblings outright.

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?

'Use to walk up to a more general weakness class' gives a clear condition for when to choose this tool, and the sample queries map intent to invocation. There are no explicit exclusions or a named alternative for downward traversal, so an agent must infer that from 'walk up'.

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.