Skip to main content
Glama

GitHub Security Advisories GHSA MCP

Get GitHub Security Advisory by GHSA ID

get_advisory_by_ghsa
Read-onlyIdempotent

Retrieve full advisory details, CVSS score, CWEs, affected package ranges, and patched versions for a GHSA ID.

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": {
      "ghsa_id": "<ghsa_id>"
    },
    "name": "get_advisory_by_ghsa"
  }
}

Input Schema

NameRequiredDescriptionDefault
ghsa_idYesGHSA identifier (e.g. "GHSA-jfh8-c2jp-5v3q").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. Beyond that, the description usefully discloses the shape of the payload (CVSS score, CWEs, affected package ranges, patched versions), which matters because there is no output schema. It stops short of mentioning error behavior for unknown IDs or any auth/rate-limit constraints.

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 front-loaded sentence with no filler; the resource and the identifying key both appear before the field list. Nothing could be removed without losing 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?

For a one-parameter read-only lookup with rich annotations and a fully documented schema, the description covers the remaining gap by describing the returned fields in lieu of an output schema. Only the failure mode for a malformed or nonexistent GHSA ID is left unaddressed, which is a minor omission.

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% and the schema itself supplies the format example and 19-character minimum, so the description adds essentially nothing beyond 'for a GHSA ID'. Per the high-coverage baseline, a 3 is the correct ceiling here.

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 ('Retrieve') and resource ('advisory details') and enumerates the fields returned (CVSS, CWEs, affected ranges, patched versions) for a GHSA ID. It is clearly a single-ID lookup rather than a search, but it never names a sibling such as search_advisories_by_cve to contrast against, leaving the differentiation implicit in the parameter rather than explicit.

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

Usage Guidelines3/5

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

Usage is only implied: the required 'ghsa_id' argument makes it obvious that you need an ID in hand, so an agent can infer this is a lookup-after-discovery tool. There is no explicit statement of when to prefer this over the search_/list_ siblings, nor what to do when you only have a CVE or package name.

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.