Skip to main content
Glama
@4da/mcp-server

@4da/mcp-server

Official

Vulnerability scan

vulnerability_scan
Read-only

Scan project lockfiles for OSV.dev vulnerabilities in installed and transitive versions, showing fix versions and where each dependency is pinned.

Instructions

Scan this project's lockfiles (npm/pnpm/yarn/bun, Cargo, Python, Go) for OSV.dev vulnerabilities in installed versions, transitives included, with fix versions and where each is pinned; package for one dep. Call when asked about security or CVEs. To vet a version first: dependency_check.

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": "vulnerability_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNodetailed only: advisory rows per answer (default 200).
offsetNodetailed only: advisory rows to skip; pass `truncated.next_offset` to read on.
packageNoOnly this package (any ecosystem, every installed copy, transitives included), with a `package_note` saying what the lockfiles hold for it. Use it to ask about one dependency instead of reading the whole report.
include_devNoInclude direct devDependencies (labelled `is_dev`, graded one level down). Default: true, as the 4DA app does; pass false for runtime dependencies only. Transitive dev/runtime scope may be unknown.
project_pathNoProject directory to scan. Default: current working directory.
force_refreshNoAsk OSV.dev again about this project's dependencies instead of answering from the cache; a cached answer is kept until its replacement arrives (STALE if it does not). Dependency versions are re-read on every lockfile change regardless. Default: false.
response_formatNoconcise (default): one row per vulnerable package version (worst severity, the version that fixes all its advisories, advisory count and first ids, where it is pinned), the 40 most severe and 25 recommendations, with counts of anything left out. detailed: one row per advisory with references, most severe first, at most `limit` rows with a `truncated` block when there are more, plus platform-inactive advisories, maintenance notices, install drift and resolution provenance.
severity_filterNoOnly show vulnerabilities at or above this level, by the advisory's own severity or the presented grade, whichever is higher; an advisory with no known severity is always shown. Maintenance notices and advisories on packages not built on this host are listed whole. `severity_filter.hidden` counts the rest.
include_test_fixturesNoAlso scan lockfiles under test-fixture directories (tests/, test/, fixtures/, testdata/, __fixtures__/, conformance/ ...). Default: false; they are counted under coverage.not_scanned instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv6.0.8
    • changedInput schema / properties / force_refresh / description
      Previous value: -"Ignore the OSV advisory cache and fetch fresh advisory data from OSV.dev (dependency versions are re-read on every lockfile change regardless). Default: false."New value: +"Ask OSV.dev again about this project's dependencies instead of answering from the cache; a cached answer is kept until its replacement arrives (STALE if it does not). Dependency versions are re-read on every lockfile change regardless. Default: false."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "detailed only: advisory rows per answer (default 200).",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "detailed only: advisory rows to skip; pass `truncated.next_offset` to read on.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / response_format / description
      Previous value: -"concise (default): one row per vulnerable package version (worst severity, the version that fixes all its advisories, advisory count and first ids, where it is pinned), the 40 most severe and 25 recommendations, with counts of anything left out. detailed: one row per advisory with references, plus platform-inactive advisories, maintenance notices, install drift and resolution provenance."New value: +"concise (default): one row per vulnerable package version (worst severity, the version that fixes all its advisories, advisory count and first ids, where it is pinned), the 40 most severe and 25 recommendations, with counts of anything left out. detailed: one row per advisory with references, most severe first, at most `limit` rows with a `truncated` block when there are more, plus platform-inactive advisories, maintenance notices, install drift and resolution provenance."
    • changedInput schema / properties / severity_filter / description
      Previous value: -"Only show vulnerabilities whose presented severity is at or above this level."New value: +"Only show vulnerabilities at or above this level, by the advisory's own severity or the presented grade, whichever is higher; an advisory with no known severity is always shown. Maintenance notices and advisories on packages not built on this host are listed whole. `severity_filter.hidden` counts the rest."
  2. Changed2 schema fields changedv6.0.3
    • changedInput schema / properties / include_dev / description
      Previous value: -"Include known direct devDependencies. Transitive dev/runtime scope may be unknown. Default: false."New value: +"Include direct devDependencies (labelled `is_dev`, graded one level down). Default: true, as the 4DA app does; pass false for runtime dependencies only. Transitive dev/runtime scope may be unknown."
    • addedInput schema / properties / include_test_fixtures
      Added value: +{
      +  "description": "Also scan lockfiles under test-fixture directories (tests/, test/, fixtures/, testdata/, __fixtures__/, conformance/ ...). Default: false; they are counted under coverage.not_scanned instead.",
      +  "type": "boolean"
      +}
  3. First observedv6.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety/network profile is covered; the description adds that transitive dependencies are included and that results carry fix versions and pin locations. Caching, staleness, and truncation behavior live in the parameter descriptions rather than the body, so the main text adds real but not exhaustive behavioral context.

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?

Two sentences plus a shorthand fragment, front-loaded with the resource and scope, with zero filler. The semicolon-packed clause about fix versions and pinning is dense but functional; the '`package` for one dep' fragment is terse to the point of choppiness.

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 nine-parameter, zero-required scan with no output schema, the definition establishes scope, ecosystems, verbosity tiers, and an alternative tool. Output shape is delegated to the response_format parameter description, which is extensive, so nothing critical is missing, though the main text itself does not preview what a report contains.

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 explains severity_filter, response_format, force_refresh, and the rest in detail. The description adds only that `package` targets a single dependency, which is already implied by the schema; per the high-coverage baseline this lands at 3.

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?

States a specific verb and resource: scanning this project's lockfiles for OSV.dev vulnerabilities in installed versions, listing the ecosystems covered, and noting transitives, fix versions, and pin locations are included. The trailing '`package` for one dep' narrows scope further, and the sibling dependency_check is explicitly positioned for a different job.

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?

'Call when asked about security or CVEs' gives an explicit trigger, and 'To vet a version first: dependency_check' names the alternative plus the condition that selects it. The reader knows both when to reach for this tool and when to route elsewhere.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.