Skip to main content
Glama
rustsec-advisory-db-mcp

rustsec-advisory-db-mcp

Get RustSec advisory details

get_rustsec_advisory
Read-onlyIdempotent

Fetch and parse a RustSec advisory by crate and advisory ID, returning TOML metadata, patched/unaffected version ranges, CVE/GHSA aliases, and description.

Instructions

Fetch and parse a full RustSec advisory document including TOML metadata, patched version ranges, unaffected versions, CVE/GHSA aliases, and description.

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": {
      "crate": "<crate>",
      "id": "<id>"
    },
    "name": "get_rustsec_advisory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRustSec advisory ID in RUSTSEC-YYYY-NNNN format (e.g. "RUSTSEC-2021-0072").
crateYesRust crate name (e.g. "tokio").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety and idempotency profile is covered. The description adds value by disclosing what content is parsed and returned (patched version ranges, unaffected versions, CVE/GHSA aliases), but says nothing about error behavior for unknown or mismatched `id`/`crate` pairs, which matters for an openWorld fetch.

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 led by the verb, with the returned-content list following immediately. Every clause carries information and there is no filler or restatement of the title.

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 two-parameter read tool with strong annotations, this is nearly complete, and because there is no output schema the description usefully enumerates the returned fields. The remaining ambiguity is the return form — it is unclear whether the tool returns parsed JSON fields or the raw TOML/description text — which slightly under-specifies what the agent will receive.

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%: both `id` (with the RUSTSEC-YYYY-NNNN format and an example) and `crate` are fully documented in the schema itself. The description adds no meaning beyond that — notably it does not explain why both `id` and `crate` are required or what happens if the crate does not match the advisory's crate — so the baseline of 3 applies.

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?

"Fetch and parse a full RustSec advisory document" gives a specific verb plus resource, and the enumeration of contents (TOML metadata, patched ranges, unaffected versions, aliases) makes clear this is a detail-retrieval tool rather than a listing tool. It does not explicitly name the search/list siblings it contrasts with, but the resource granularity (one advisory by ID) is distinctive enough for an agent to separate it from `search_rustsec_advisories` or `list_crate_advisories`.

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 implied rather than stated: the required `id` and "full ... document" framing suggest this is the follow-up call after a search has yielded an advisory ID. There is no explicit when-to-use, when-not-to-use, or pointer to the search/list tools as a prerequisite for discovering IDs, leaving the agent to infer the workflow.

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