Skip to main content
Glama

Groundsocial

Get an npm package

npm_package_get
Read-onlyIdempotent

One npm package version: manifest, dist-tags, downloads.

One package version by name (with its scope, e.g. @vue/server-renderer) or npmjs.com link: the published manifest (dependencies, dist, repository, license…), every dist-tag, and downloads over the last week and month. version is a version or tag (latest by default); a /v/ link picks that version.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": "npm_package_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYesPackage name or its npmjs.com link.
versionNoVersion or dist-tag. Defaults to latest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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, open-world), and the description adds real behavioral context: 1 credit per call, automatic refund on failure, public data only, and that results carry cost_credits and credits_remaining. It also enumerates what a successful response contains (manifest, all dist-tags, weekly and monthly downloads), which is meaningful for a tool with no output schema.

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?

The key identity and return contents are front-loaded in the first sentence, and cost/refund details come last, which is the right ordering. There is mild redundancy between the headline sentence and the 'One package version by name...' sentence, and the latest-default detail duplicates the schema, but no sentence is wasted overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only 2 parameters, no output schema, and annotations covering safety, the description supplies everything an agent needs: accepted identifier forms, version resolution, what the response contains, and the cost/refund model. Nothing material is left for the agent to infer before calling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema: it supplies a concrete scoped-name example, states that an npmjs.com link is acceptable input, and clarifies version resolution including the /v/<version> link case. The 'latest by default' detail restates the schema but the link-handling rule is genuinely new.

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 opens with a precise verb+resource statement ('One npm package version: manifest, dist-tags, downloads') and then pins scope to a single package identified by name or npmjs.com link. That scoping ('One package version by name...') distinguishes it from the sibling npm_search_all without needing the schema.

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?

It makes the applicable situation clear: call it when you already have a package name (scope included, e.g. @vue/server-renderer) or an npmjs.com link, and it explains that version defaults to latest and that a /v/<version> link picks that version. It stops short of naming npm_search_all or stating when not to use this tool, so no explicit alternative routing.

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.