Skip to main content
Glama

FlawDB

Check packages for vulnerabilities

check_stack
Read-only

Which recent vulnerabilities affect these exact package versions. Pass installed versions (from a lockfile, npm ls, pip freeze, …), not ranges, or a whole lockfile (package-lock.json, pnpm-lock.yaml, yarn.lock, composer.lock, requirements.txt, poetry.lock, uv.lock, Cargo.lock, go.sum, Gemfile.lock). Up to 5000 packages. Findings are "affected" (the version is inside a source's range) or "unknown" (a range exists but can't be compared; read affected_range). Nothing is stored. Checks entries published since 2026-11-10 and older ones in CISA KEV. Each finding's package page lists archived (older) entries too.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
packagesNo
include_devNoInclude dev dependencies (default true)
lockfile_nameNoFile name, e.g. package-lock.json (decides the format)
lockfile_contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses a lot: nothing is stored, up to 5000 packages per call, the coverage window (entries published since 2026-11-10 plus older CISA KEV entries), and the two finding states with a pointer to affected_range for 'unknown'. That is result semantics an agent cannot get from the annotations alone.

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?

Dense but front-loaded: purpose, then input rules, then limits, then result semantics. Nearly every sentence carries information; the closing note about archived entries on the package page is the weakest, being a coverage caveat rather than invocation guidance.

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?

With no output schema, the description carries the return-value burden and does so by naming the 'affected'/'unknown' finding states and the affected_range field. Remaining gaps are minor — the overall response shape and how the package-page link is surfaced are left implicit.

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 50% and lockfile_content is undocumented in the schema, but the description compensates by naming the accepted lockfile formats and explaining the versions-vs-ranges-vs-whole-lockfile distinction, plus the 5000-package cap. It adds real meaning over the schema, though it never clarifies how packages and lockfile_* interact when both are supplied.

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 opening line states a precise scope: vulnerabilities affecting *these exact package versions*, and the title supplies the verb ('Check packages for vulnerabilities'). This is clearly distinct from the entry-listing siblings (get_entry, list_entries, search_entries), though the description never names an alternative or explicitly contrasts itself.

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?

It gives strong input guidance: pass installed versions from a lockfile/'npm ls'/'pip freeze', not ranges, or hand over a whole lockfile. That tells an agent the correct context for calling it, but there is no when-not-to-use guidance or routing to a sibling for single-entry lookups.

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