Skip to main content
Glama
Timwal78

ScriptDocs MCP Server

Check Package Vulnerabilities

docs_check_vulnerabilities
Read-onlyIdempotent

Check a package version for known vulnerabilities via OSV.dev and automatically fetch the fixed version's README, showing exactly what upgrading resolves.

Instructions

Check a real, specific package version against OSV.dev (Google-run, aggregates GitHub/PyPA/npm/RustSec advisories) — and, when a fix exists, automatically fetch that fixed version's README in the same call, so the result is "here's what's wrong" AND "here's exactly what upgrading looks like," not just a CVE list you have to research further yourself.

This is a live query against OSV.dev's public API for the exact package+version given. It never estimates or guesses risk — if OSV has no advisories on record for that version, this correctly reports zero vulnerabilities rather than implying danger that isn't documented. Note: this tool is more limited than dedicated vulnerability-intelligence tools (e.g. VulnCheck, Snyk) — it reports what OSV.dev has on file, not exploit activity or threat intelligence.

Args:

  • ecosystem ('npm' | 'pypi' | 'cargo')

  • package_name (string): exact package name

  • version (string, optional): specific version to check; defaults to the latest published version

  • include_fix_docs (boolean, default true): also fetch the README for the version that fixes the found vulnerabilities

Returns JSON with: vulnerability_count, vulnerabilities (array of {id, summary, severity, aliases, fixed_in, references}), recommended_fix (null, or {version, readme, truncated, source_url} for the version that resolves the found issues), source_url, fetched_at.

Error Handling:

  • Returns "Error: ..." if the package doesn't exist or OSV.dev can't be reached

  • vulnerability_count: 0 with an empty array is a normal, valid result — not an error

  • If fetching the fix's README fails, recommended_fix is null rather than the whole call failing — the vulnerability data itself is never withheld because of it

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
versionNoSpecific version to check. Defaults to the current latest published version if omitted.
ecosystemYesWhich package registry the version belongs to: 'npm', 'pypi', or 'cargo'.
package_nameYesExact package name as published on the registry.
include_fix_docsNoWhen a vulnerability is found with a known fixed version, also fetch that version's README so the response includes what upgrading actually looks like. Set false to skip the extra fetch.
Behavior5/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description adds substantial behavioral context beyond this: it performs a live query, never estimates risk, reports zero when OSV has no advisories, and gracefully handles README fetch failures by returning null rather than failing entirely. No contradictions with 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 well-structured with clear sections (overview, args, return format, error handling). Every sentence contributes meaningful context—no fluff or repetition. Despite its length, it remains scannable and each element earns its place, making it appropriately sized for the tool's complexity.

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?

The tool has no output schema, so the description fully explains the return JSON structure, including fields and types. It also covers error handling, edge cases (zero vulnerabilities, failed README fetch), and the live nature of the query. Given the tool's complexity (4 params, external API, conditional behavior), the description is comprehensive and leaves no major gaps.

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 all four parameters are fully described in the schema. The description's Args section largely repeats the schema (e.g., defaults, package name exactness) without adding new meaning or constraints. It adds little value beyond what the schema already provides, so baseline 3 is appropriate.

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 clearly states the tool checks a specific package version against OSV.dev for vulnerabilities and goes beyond a CVE list by fetching the fixed version's README. It distinguishes itself from siblings like docs_get_package_info and docs_search_docs by focusing specifically on vulnerability checking and remediation guidance.

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?

Provides explicit context on when to use the tool: for a live vulnerability check on a real package version. It also clearly notes limitations compared to dedicated vulnerability-intelligence tools (VulnCheck, Snyk) and explains that zero vulnerabilities is a valid result, not an error. This gives clear usage boundaries and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Timwal78/scriptdocs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server