Skip to main content
Glama

resolve_package

Read-onlyIdempotent

Look up one NEAR npm or crates.io package, optionally at a version: latest and latest stable version, whether that version is yanked or deprecated, how many stable versions are newer, the registry's deprecation message, and the deprecation entry with its replacement when the package is stale (e.g. near-sdk-js, @near-js/*). Use before adding or upgrading a dependency.

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": {
      "package": "<package>"
    },
    "name": "resolve_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name, optionally with a version and registry: "near-api-js", "near-sdk@5.1.0", "npm:@near-js/accounts@2.5.1", "crates:near-workspaces".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered for free. Beyond that, the description usefully discloses the shape of the result set (latest, latest stable, yanked/deprecated flags, count of newer stable versions, deprecation message and replacement), but says nothing about behavior on unknown packages, registry ambiguity, or caching/rate limits. Net added value over annotations is moderate.

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?

Two sentences, front-loaded with the action and with the usage trigger placed at the end where it reads naturally. The first sentence is a dense, comma-chained enumeration that takes effort to parse, but no clause is redundant.

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 single-parameter, read-only, non-destructive lookup with no output schema, the description is close to sufficient because it enumerates the returned fields in place of a return schema. Remaining gaps are edge-case behavior (unknown package, version ranges or tags, which registry wins) rather than anything needed for a normal call.

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?

With one parameter at 100% schema coverage, the schema already documents the name-plus-optional-version-plus-registry syntax with concrete examples. The description adds only that a version is optional ('optionally at a version'), which is marginal additional meaning, 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?

States a specific verb and resource ('Look up one NEAR npm or crates.io package') and enumerates what the lookup returns, so the agent knows this is a single-package resolution tool rather than a search. It does not distinguish itself from the sibling check_deprecation, which appears to overlap with the deprecation half of this tool, so full sibling differentiation is absent.

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?

'Use before adding or upgrading a dependency' gives a clear triggering context for the tool. There are no explicit exclusions or alternative-tool routing (e.g. when to prefer check_deprecation or get_breaking_changes), which keeps it short of a 5.

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