Skip to main content
Glama

Profile a weakness

get_weakness
Read-onlyIdempotent

The CVEs of one weakness (CWE): how many and how severe, per year, the vendors it comes up for most, the newest and the known exploited ones.

Input Schema

NameRequiredDescriptionDefault
cweYesA CWE id, e.g. "CWE-79".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 closed-world, so the safety profile is fully covered. The description adds useful detail about what the response contains (per-year counts, vendor ranking, known-exploited flag), which matters since there is no output schema. It says nothing about pagination, result limits, or behavior on an unknown CWE id.

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?

A single front-loaded sentence that packs in the key scope and the returned facets without padding. Slightly awkward phrasing ('the vendors it comes up for most') costs a bit of polish but not comprehension.

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 low-complexity, single-parameter, read-only lookup with full annotation coverage and full schema coverage, the description supplies an adequate picture of the returned data. Only missing pieces are routing guidance versus siblings and any limits on the response.

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?

With a single parameter and 100% schema description coverage (including a regex pattern and an example), the schema carries the semantics. The description only reinforces that the parameter identifies one weakness; no additional format or normalization guidance is offered. Baseline 3 applies.

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 names the resource precisely — the CVEs associated with a single CWE — and enumerates the facets returned (counts and severity per year, top vendors, newest, known-exploited). That distinguishes it from siblings like get_cve (one CVE) or get_vendor. It lacks an explicit action verb, but the scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no named alternative. An agent must infer from the wording that this is the aggregate/rollup view of a weakness class rather than a single-record lookup. Given ten sibling tools, some explicit routing would have been valuable.

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.

Resources