Skip to main content
Glama

GitHub Security Advisories GHSA MCP

Search GitHub Advisories by package ecosystem

search_advisories_by_ecosystem
Read-onlyIdempotent

Search GHSA advisories for a package manager (npm, pip, maven, go, rubygems, nuget, composer, rust, actions, swift) and optional package name.

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": {
      "ecosystem": "<ecosystem>"
    },
    "name": "search_advisories_by_ecosystem"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum advisories to return (default 15).
affectsNoOptional package name filter (e.g. "lodash", "log4j-core").
severityNoOptional severity filter.
ecosystemYesPackage manager (e.g. "npm", "pip", "maven", "go", "rust").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive, so the safety profile is covered. The description adds only the enumeration of valid ecosystem values; it says nothing about result ordering, truncation behavior under `limit`, or whether advisories are filtered to affected versions.

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?

A single well-formed sentence with the resource, the required scope, and the optional filter in priority order. No filler.

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 simple, fully documented read-only search tool with rich annotations, the definition gives an agent enough to call it correctly. The remaining gaps (result ordering, max result semantics) are minor at this complexity level.

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 coverage is 100%, so all four parameters (including enum and default for `limit`) are documented structurally. The description's added value is minor: it lists ecosystem values not shown in the schema examples (actions, swift, composer, nuget) and frames `affects` as a package-name filter, but adds no syntax or matching semantics.

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?

States a specific verb and resource ('Search GHSA advisories') plus the scoping dimension (ecosystem, with the allowed values enumerated) and an optional package filter. It is clearly distinct from CVE-based, GHSA-ID, critical-only, and recent-advisory siblings, though it does not name them explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The agent must infer from the phrase 'by package ecosystem' that this is the right tool when the ecosystem is known and the ID/CVE is not.

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.