Skip to main content
Glama

dependency-trust

Get Advisory

get_advisory
Read-onlyIdempotent

Get a security advisory (vulnerability) by its key.

Returns a security advisory by key, for example a GHSA id taken from a version's advisoryKeys, including the title, CVE aliases, CVSS v3 score and vector, and a link to the full record on osv.dev. Use this only when you already have an advisory ID from get_package_version's advisoryKeys. There is no search here. To find out whether a version has vulnerabilities at all, call get_package_version first; this tool explains one advisory in depth.

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": {
      "advisoryKey": "<advisoryKey>"
    },
    "name": "get_advisory"
  }
}

Input Schema

NameRequiredDescriptionDefault
advisoryKeyYesAdvisory id, e.g. 'GHSA-29mw-wpgm-hmr9' (taken from a version's advisoryKeys).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive behavior, so the description focuses on what is actually returned: title, CVE aliases, CVSS v3 score and vector, and an osv.dev link — valuable since there is no output schema. It does not mention behavior for an unknown or malformed advisory key, which is the remaining gap.

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 purpose then returns then usage constraints, and every part is relevant. There is mild redundancy: the first two sentences restate the same lookup, and "There is no search here" partly overlaps with the instruction to call get_package_version first.

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 one-parameter lookup with no output schema, the description supplies both the returned field set and the prerequisite for obtaining the key. An agent has everything needed to invoke it and interpret the result.

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 100%, so the baseline is 3; the description earns extra by explaining the provenance of advisoryKey (taken from a version's advisoryKeys) and confirming the GHSA-style format, which helps an agent source a valid value rather than guess one.

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 (get) and resource (security advisory/vulnerability) keyed by advisory ID, and explicitly distinguishes itself from get_package_version by framing itself as a single-record lookup rather than a vulnerability check. An agent can route correctly without opening the schema.

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?

Gives an explicit precondition ("use this only when you already have an advisory ID from get_package_version's advisoryKeys"), rules out a search mode ("There is no search here"), and names the alternative path for checking whether a version has vulnerabilities at all. Nothing is left to inference.

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