Skip to main content
Glama
vulnerability-exposure-mcp

vulnerability-exposure-mcp

Distro patch check

distro_patch_check
Read-onlyIdempotent

Check an installed Linux distro package version against the distro's own security data via OSV.dev to catch backported fixes and confirm whether reported CVEs actually apply.

Instructions

Check a distro package version (Ubuntu, Debian, Red Hat Enterprise Linux, AlmaLinux, Rocky Linux, SUSE, openSUSE or Alpine) against the distro's own security data (via OSV.dev), which counts fixes the distro backports without changing the upstream version. Use it when Shodan lists distro_packages (e.g. OpenSSH_8.9p1 Ubuntu-3ubuntu0.6 gives package 'openssh', package_version '8.9p1-3ubuntu0.6'), or when the user gives an installed package version. Pass the version check's affected_cve_ids as cve_ids. release (e.g. '22.04', '12') is found automatically when possible. No key needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "package": "<package>",
      "package_version": "<package_version>",
      "distro": "<distro>"
    },
    "name": "distro_patch_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
distroYesThe distribution. Red Hat covers RHEL; use AlmaLinux or Rocky Linux for those rebuilds.
cve_idsNoCVE IDs to check, usually the version check's affected_cve_ids.
packageYesThe source package name, e.g. 'openssh' or 'nginx'.
releaseNoThe distro release, e.g. '22.04', '12', '9' (RHEL), '15 SP6' (SLES), '15.6' (Leap) or '3.20' (Alpine). Found from the package version when possible; Alpine always needs it.
package_versionYesThe installed package version with its distro revision, e.g. '8.9p1-3ubuntu0.6', '8.7p1-38.el9_4.1' or '9.6_p1-r0'.
investigation_idNoThe investigation_id from investigate_target. Pass it so the result counts toward that investigation's evidence, budget and key facts; without it the lookup runs on its own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.3.0
    • changedInput schema / properties / distro / description
      Previous value: -"The distribution."New value: +"The distribution. Red Hat covers RHEL; use AlmaLinux or Rocky Linux for those rebuilds."
    • changedInput schema / properties / distro / enum
      Previous value: -[
      -  "Ubuntu",
      -  "Debian"
      -]New value: +[
      +  "Ubuntu",
      +  "Debian",
      +  "Red Hat",
      +  "AlmaLinux",
      +  "Rocky Linux",
      +  "SUSE",
      +  "openSUSE",
      +  "Alpine"
      +]
    • changedInput schema / properties / package_version / description
      Previous value: -"The installed package version with its distro revision, e.g. '8.9p1-3ubuntu0.6'."New value: +"The installed package version with its distro revision, e.g. '8.9p1-3ubuntu0.6', '8.7p1-38.el9_4.1' or '9.6_p1-r0'."
    • changedInput schema / properties / release / description
      Previous value: -"The distro release, e.g. '22.04' or '12'. Found automatically when possible if left out."New value: +"The distro release, e.g. '22.04', '12', '9' (RHEL), '15 SP6' (SLES), '15.6' (Leap) or '3.20' (Alpine). Found from the package version when possible; Alpine always needs it."
  2. Changed6 schema fields changedv1.0.1
    • addedInput schema / properties / cve_ids / description
      Added value: +"CVE IDs to check, usually the version check's affected_cve_ids."
    • addedInput schema / properties / distro / description
      Added value: +"The distribution."
    • addedInput schema / properties / investigation_id / description
      Added value: +"The investigation_id from investigate_target. Pass it so the result counts toward that investigation's evidence, budget and key facts; without it the lookup runs on its own."
    • addedInput schema / properties / package / description
      Added value: +"The source package name, e.g. 'openssh' or 'nginx'."
    • addedInput schema / properties / package_version / description
      Added value: +"The installed package version with its distro revision, e.g. '8.9p1-3ubuntu0.6'."
    • addedInput schema / properties / release / description
      Added value: +"The distro release, e.g. '22.04' or '12'. Found automatically when possible if left out."
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety profile is covered. The description adds real behavior beyond that: the underlying data source (OSV.dev), the backport-aware semantics, automatic release resolution issue ('found automatically when possible', with Alpine always needing it), and 'No key needed'.

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?

Front-loaded with the purpose, then the usage trigger, then parameter derivation notes — a sensible order with no filler sentences. It is dense and slightly run-on across lines, but every clause carries information.

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?

Covers inputs thoroughly for a 6-parameter, 3-required tool with no output schema. The remaining gap is that it never says what the result contains (e.g. whether the installed version is patched for each CVE), which matters more here because there is no output schema to fall back on.

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?

With schema coverage at 100%, the baseline is 3; the description earns above that by explaining derivation rules not in the schema, e.g. pass the version check's affected_cve_ids as cve_ids and that release is auto-derived from the package version. The worked example ('OpenSSH_8.9p1 Ubuntu-3ubuntu0.6' → package 'openssh', package_version '8.9p1-3ubuntu0.6') adds practical mapping value.

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 ('Check a distro package version against the distro's own security data (via OSV.dev)') and pins down the scope that distinguishes it: it counts distro-backported fixes that do not change the upstream version. That scope statement lets an agent tell it apart from an upstream-version vulnerability check without opening any schema.

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?

Gives concrete triggering conditions ('Use it when Shodan lists distro_packages ... or when the user gives an installed package version') and even shows the banner-to-parameter mapping. It does not name an explicit exclusion or alternative tool for the upstream-version case, so it stops short of full routing guidance.

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