Skip to main content
Glama

Package risk

package_risk
Read-onlyIdempotent

Use when you need to vet a dependency before installing or shipping it: pass ecosystem (npm, PyPI, Go, crates.io, RubyGems, Maven, NuGet). Returns the paid x402 request for your input (GET /package/risk, $0.005 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. One exact package version. For a single CVE id use vuln_cve; to know whether a product or runtime version is still supported use software_eol. First call each day returns the data itself, free; later calls return the paid request.

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": "<name>",
      "version": "<version>"
    },
    "name": "package_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPackage name; Maven is groupId:artifactId, Go is the module path
versionYesExact version, e.g. 4.17.15
ecosystemYesPackage ecosystem

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description adds the non-obvious two-stage behavior: the tool returns a paid x402 request rather than data, that URL must be called with an x402/MPP client, the first call each day is free and returns data directly, and invalid input is refused before any charge. Cost ($0.005/call) and the endpoint are also disclosed.

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?

It is dense with no filler, but the ordering is slightly jumbled: the critical free-first-call/pay-later behavior lands in the final sentence rather than up front, and the ecosystem enum is restated despite living in the schema. Front-loading the 'returns a paid request, not data' fact would improve it.

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?

With no output schema, the description correctly covers the most important unknown — that the normal return is a payment request rather than risk data — plus cost and client requirements. It stops short of describing the payload returned on the free first call or the shape of the paid request, a minor remaining gap.

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%, including the enum for ecosystem and the Maven groupId:artifactId / Go module-path note, so the schema does the heavy lifting. The description adds only marginal reinforcement ('One exact package version', the ecosystem list), which duplicates the enum already in the schema.

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?

The description states a specific verb and resource ('vet a dependency before installing or shipping it') and explicitly distinguishes itself from two siblings: 'For a single CVE id use vuln_cve' and 'to know whether a product or runtime version is still supported use software_eol'. An agent can route correctly 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 Guidelines5/5

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

It names the trigger (pre-install/pre-ship dependency vetting) and gives explicit exclusions with the alternative tool for each (vuln_cve for CVE ids, software_eol for support status). The scope constraint 'One exact package version' further narrows when this is the right call.

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