Skip to main content
Glama
NPM Publisher MCP Server

NPM Publisher MCP Server

by GiDanis

npm_check_published

Check whether a specific package version is already published on NPM, using provided values or package.json defaults.

Instructions

Check if a specific version of the package exists on NPM

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

Input Schema

NameRequiredDescriptionDefault
versionNoVersion to check (reads from package.json if not provided)
packageNameNoPackage name (reads from package.json if not provided)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and falls short. It does not disclose the return shape (boolean vs. error), whether a missing version returns false or throws, whether it performs a network/registry call, or what happens on auth or connectivity failure.

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?

A single front-loaded sentence with zero filler. It is efficient, though its brevity contributes to the missing behavioral and result details noted elsewhere.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only place to explain what a caller gets back and how a negative result is signaled, and it says nothing about either. For a two-param existence check that agents will likely branch on, this leaves a material 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 coverage is 100% and both parameters document their own fallback behavior ('reads from package.json if not provided'). The description adds no format or syntax detail beyond that, so the baseline 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: check whether a specific package version exists on NPM. This is distinguishable from siblings like npm_publish or npm_validate, though the description never names them explicitly.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives. The pre-publish use case is inferable from the sibling set, but the description does not tell the agent whether this overlaps with npm_validate or how to sequence it before npm_publish.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.