Skip to main content
Glama

Safe version per release line

latest_safe
Read-onlyIdempotent

Find the version to upgrade to for one npm package. Returns, per release line (major, or minor for 0.x), the version that fixes every known advisory of the last 120 days; a line still affected has safe: null and the ids that keep it affected. Also lists advisories with no fix found, and says whether this package name itself is flagged as malicious. Use it after get_advisories, to pick one target version per line.

Input Schema

NameRequiredDescriptionDefault
packageYesOne npm package name as written in package.json, for example "next" or "@solana/web3.js".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior: a 120-day advisory window, per-line resolution, 'safe: null' plus blocking ids when a line remains affected, unfixed advisories, and a malicious-package flag. Because there is no output schema, this return-shape disclosure is exactly what the agent needs.

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 the core action in the first sentence, then return semantics, then the workflow hint. Dense but each clause carries information; the nested parenthetical about major/minor lines is slightly heavy but earns its place.

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 compensates well by describing the response fields (per-line version, safe: null, blocking ids, unfixed advisories, malicious flag). Only minor gaps remain, such as response ordering or how release lines are enumerated.

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 single parameter is fully documented in the schema, including the pattern and examples. The description only restates that it takes 'one npm package,' adding no format or edge-case guidance beyond 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?

States a specific verb and resource: it finds the version to upgrade to for one npm package, per release line. The scope is precise enough to distinguish it from the advisory-lookup siblings, which return advisories rather than a chosen target version.

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

Usage Guidelines4/5

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

Explicitly sequences it: 'Use it after get_advisories, to pick one target version per line,' which tells the agent exactly where this fits in a workflow. It stops short of naming a when-not condition or an alternative tool for the same job.

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