Skip to main content
Glama

Rank a batch of flagged vulnerabilities by what to fix first

prioritize_remediation
Read-only

Given a batch of vulnerability findings already flagged elsewhere (e.g. from batch_query_vulnerabilities, analyze_transitive_dependencies, or query_vulnerabilities across a whole package.json/lockfile audit), ranks them by what to actually fix first. Combines CISA KEV status (confirmed active exploitation in the wild — an automatic top-priority override), FIRST.org EPSS (probability of exploitation in the next 30 days — the primary ranking signal, since it measures likelihood rather than just impact), and severity (a secondary/fallback signal, most useful for a GHSA finding with no CVE alias) into one composite score and a patch-now/patch-soon/scheduled/monitor tier per finding. This does NOT re-query OSV/NVD itself — pass in the severity/CVE id findings other tools already returned; it only adds KEV/EPSS enrichment (the same data get_cve returns per-CVE) and ranks the batch. A CVE id shared by multiple findings in the same call is only looked up once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findingsYes1-200 previously-flagged vulnerability findings to rank

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
rankedYes
summaryYes
totalFindingsYes
uniqueCveCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses substantial behavior beyond the annotations: CISA KEV acts as an automatic top-priority override, EPSS is the primary ranking signal, severity is fallback, and the result is a composite score with tiers. It also exposes deduplication behavior for shared CVE IDs, which is valuable operational context not present in the annotations.

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 core purpose and then builds outward into signals, exclusions, and deduplication behavior. Each sentence adds meaningful guidance, and the length is justified by the complexity of the ranking logic and the need to differentiate from sibling tools.

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 tool with one parameter, full schema coverage, and an output schema, the description is complete: it explains input provenance, ranking inputs, what enrichment is added, what is not done, and the output tier concept. No critical invocation detail is missing.

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 100%, so the schema already documents the fields including cveId's enrichment role and severity's fallback role. The description adds some clarifying context about passing through existing findings and deduplicating shared CVE IDs, but this is largely behavioral rather than genuinely new parameter-level semantics.

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 states a specific verb and resource: it takes a batch of already-flagged vulnerability findings and ranks them by fix priority. It also distinguishes itself from siblings by explicitly saying it does NOT re-query OSV/NVD and that findings come from tools like batch_query_vulnerabilities or query_vulnerabilities.

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

Usage Guidelines5/5

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

The description explicitly says when to use it (after other tools have flagged findings) and what it does not do (no OSV/NVD re-query), naming concrete alternatives. It also clarifies the data flow: pass in severity/CVE findings and receive KEV/EPSS enrichment plus ranking.

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