Skip to main content
Glama

Genesis tools

Package Version Lookup (npm, PyPI, crates.io)

package_version_lookup
Read-only

Live package version lookup for AI agents and developers: give an ecosystem (npm, PyPI, crates.io) and a package name, get back the current latest version plus license, repository URL, publish date and weekly download counts, fetched fresh from the official registry APIs (registry.npmjs.org, pypi.org/pypi, crates.io/api/v1). Returns clean JSON, supports batch lookups, and reports a clear error for unknown packages. Use it to check whether a dependency is current before writing code or answering a question. Example input: {"ecosystem": "npm", "package": "react"}. Uses one call of your free daily calls or prepaid key; x402 clients pay $0.002 per call in USDC. Only successful calls count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "package_version_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageNo
ecosystemNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing data provenance (registry.npmjs.org, pypi.org/pypi, crates.io/api/v1), freshness ('fetched fresh'), unknown-package error behavior, and the full cost model (free daily quota, prepaid key, $0.002/call USDC via x402, only successful calls billed). It also implicitly explains why idempotentHint is false: results change as packages publish. It does not describe response shape or failure modes like rate limiting, which keeps it at 4.

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 purpose and output fields, followed by use case and a compact example. The billing sentences are relevant but bulky, and the unsupported 'supports batch lookups' clause is misleading filler that costs a point.

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 compensates by listing what comes back and noting JSON format. For a simple two-parameter read tool that is nearly complete; remaining gaps are the optional-parameter defaults and the conflict between the stated batch support and the single-package schema.

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 0%, so the description must carry the load. It does add real value by enumerating the accepted ecosystem values (npm, PyPI, crates.io), which the schema does not express as an enum, and supplies a concrete example input. But it never addresses that both parameters are optional with no documented defaults, and it claims 'batch lookups' that the two-scalar schema cannot support.

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?

Names a specific verb (lookup), resource (package version), and the exact ecosystems covered (npm, PyPI, crates.io), then enumerates the returned fields (latest version, license, repo URL, publish date, weekly downloads). No sibling in the list does the same thing, so the tool is unambiguous on its own.

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 says when to reach for it: 'check whether a dependency is current before writing code or answering a question.' There are no close alternatives to exclude, and the ecosystem enumeration narrows the case further. It stops short of stating when-not to use it, so not 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