Skip to main content
Glama

Category

category
Read-onlyIdempotent

"What CWEs fall under [category]" / "list weaknesses in the [X] family" / "memory safety weaknesses" / "input validation weaknesses" — fetch a CWE category record (a thematic grouping of related CWEs like "Memory Safety", "Input Validation", "Cryptographic Issues"). Returns the category description plus member CWE IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
CategoriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "id": "CWE-1004"
      -  }
      -]New value: +[
      +  {
      +    "id": "CWE-1210"
      +  }
      +]
    • addedOutput schema / properties / Categories
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "ContentHistory": {
      +        "items": {
      +          "properties": {
      +            "ModificationComment": {
      +              "type": "string"
      +            },
      +            "ModificationDate": {
      +              "type": "string"
      +            },
      +            "ModificationName": {
      +              "type": "string"
      +            },
      +            "ModificationOrganization": {
      +              "type": "string"
      +            },
      +            "ModificationReleaseDate": {
      +              "type": "string"
      +            },
      +            "ModificationVersion": {
      +              "type": "string"
      +            },
      +            "SubmissionDate": {
      +              "type": "string"
      +            },
      +            "SubmissionName": {
      +              "type": "string"
      +            },
      +            "SubmissionOrganization": {
      +              "type": "string"
      +            },
      +            "SubmissionReleaseDate": {
      +              "type": "string"
      +            },
      +            "SubmissionVersion": {
      +              "type": "string"
      +            },
      +            "Type": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ID": {
      +        "type": "string"
      +      },
      +      "MappingNotes": {
      +        "properties": {
      +          "Comments": {
      +            "type": "string"
      +          },
      +          "Rationale": {
      +            "type": "string"
      +          },
      +          "Reasons": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "Usage": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "Name": {
      +        "type": "string"
      +      },
      +      "Relationships": {
      +        "items": {
      +          "properties": {
      +            "CweID": {
      +              "type": "string"
      +            },
      +            "ViewID": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "Status": {
      +        "type": "string"
      +      },
      +      "Summary": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / cwe_id
      Removed value: -{
      -  "description": "CWE identifier",
      -  "type": "string"
      -}
    • removedOutput schema / properties / description
      Removed value: -{
      -  "description": "Category description",
      -  "type": "string"
      -}
    • removedOutput schema / properties / memberships
      Removed value: -{
      -  "description": "Category memberships",
      -  "type": "array"
      -}
    • removedOutput schema / properties / name
      Removed value: -{
      -  "description": "Category name",
      -  "type": "string"
      -}
    • removedOutput schema / properties / status
      Removed value: -{
      -  "description": "Status of the CWE record",
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "CWE-1004"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "CWE category record from MITRE CWE API",
      +  "properties": {
      +    "cwe_id": {
      +      "description": "CWE identifier",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Category description",
      +      "type": "string"
      +    },
      +    "memberships": {
      +      "description": "Category memberships",
      +      "type": "array"
      +    },
      +    "name": {
      +      "description": "Category name",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Status of the CWE record",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds value by stating that the tool returns both the category description and member CWE IDs, which is not present in the schema. It does not contradict annotations. This additional return-level transparency earns a 4.

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 is front-loaded with the most actionable information (example queries), then explains the resource and return value in one tight, purposeful sentence. There is no filler or repetition. It is long enough to be helpful but not bloated, and every clause adds context.

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?

For a single-parameter, read-only fetch tool with an output schema present, the description is complete. It explains what the tool does, what it returns, and what the input means. The output schema handles return-field details, and annotations handle safety. Nothing an agent needs to invoke it correctly is missing.

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%, so the description must compensate. It does so by using the example 'CWE-1210' and referring to a 'category record', which clarifies that the single 'id' parameter expects a CWE category identifier (like CWE-1210). This gives the agent concrete format guidance beyond the bare schema, though it doesn't spell out the exact pattern or validation rules. A 4 is appropriate.

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?

The description clearly states a specific verb ('fetch'), a resource ('CWE category record'), and the kind of data it returns (description plus member CWE IDs). It also gives concrete example queries, making the tool's purpose unmistakable. It distinguishes itself from siblings like 'weakness' by focusing on category-level groupings, even without naming the sibling explicitly.

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 embeds usage context through natural-language examples ('What CWEs fall under [category]', 'memory safety weaknesses'), which strongly imply when to use this tool. It doesn't explicitly contrast with alternatives like 'weakness' or 'children', but the query patterns effectively route the agent to the right context. A clear when-not-to-use note is missing, so it falls just 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.