Skip to main content
Glama

View

view
Read-onlyIdempotent

"Top 25 most dangerous software weaknesses" / "OWASP Top 10 CWE mapping" / "CWE view [N]", fetch a curated CWE view (a published, opinionated selection of weaknesses). View 1003 = simplified mapping (NVD uses this), view 1387 = Top 25, view 1344 = OWASP Top 10. Returns the view's metadata plus the included CWE IDs.

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": "1003"
    },
    "name": "view"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
ViewsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / Views
      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"
      +      },
      +      "Members": {
      +        "items": {
      +          "properties": {
      +            "CweID": {
      +              "type": "string"
      +            },
      +            "ViewID": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "Name": {
      +        "type": "string"
      +      },
      +      "Notes": {
      +        "items": {
      +          "properties": {
      +            "Note": {
      +              "type": "string"
      +            },
      +            "Type": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "Objective": {
      +        "type": "string"
      +      },
      +      "References": {
      +        "items": {
      +          "properties": {
      +            "ExternalReferenceID": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "Status": {
      +        "type": "string"
      +      },
      +      "Type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / cwe_id
      Removed value: -{
      -  "description": "View identifier",
      -  "type": "string"
      -}
    • removedOutput schema / properties / description
      Removed value: -{
      -  "description": "View description",
      -  "type": "string"
      -}
    • removedOutput schema / properties / name
      Removed value: -{
      -  "description": "View name",
      -  "type": "string"
      -}
    • removedOutput schema / properties / status
      Removed value: -{
      -  "description": "Status of the view",
      -  "type": "string"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "1003"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "CWE view record from MITRE CWE API",
      +  "properties": {
      +    "cwe_id": {
      +      "description": "View identifier",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "View description",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "View name",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Status of the view",
      +      "type": "string"
      +    }
      +  },
      +  "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, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds one useful behavioral fact beyond that: "Returns the view's metadata plus the included CWE IDs", though it omits whether unknown view IDs error or return empty, and gives no size or pagination expectations for a Top-25-scale result.

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?

Compact and front-loaded: the definition of a view comes first, then the concrete ID mappings, then the return shape in one closing sentence. The opening slash-separated quoted phrases read like keyword stuffing rather than clean prose, which slightly hurts readability but costs no real length.

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 one-parameter, idempotent read with an output schema already documenting the return structure, the description supplies enough context to make a correct first call. The main residual gap is discoverability of valid view IDs beyond the three examples, which matters since the enumeration is open-ended.

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% — the single "id" parameter is typed string with no description — so the description must carry the load, and it largely does by naming three concrete valid IDs with their meanings. It still does not say the id is the numeric view identifier passed as a string, nor where an agent would discover other view IDs.

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: "fetch a curated CWE view (a published, opinionated selection of weaknesses)", and immediately clarifies that a view is a curated collection rather than a raw weakness entry. It does not explicitly name sibling tools such as mitre_cwe_category or descendants, so an agent must infer the boundary, which keeps it below 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The three worked examples (view 1003 = simplified mapping used by NVD, 1387 = Top 25, 1344 = OWASP Top 10) implicitly tell an agent which view to pick for which use case. However, there is no explicit "use this when... instead of..." guidance and no statement about how this differs from the sibling CWE tools, leaving routing to inference.

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.