Skip to main content
Glama
NPM Publisher MCP Server

NPM Publisher MCP Server

by GiDanis

npm_publish

Publish a package from a specified directory to the NPM registry with configurable dist-tags, access levels, and dry-run validation before release.

Instructions

Publish package to NPM registry

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_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoNPM dist-tag (e.g., latest, beta, next)latest
accessNoPackage access levelpublic
dryRunNoPerform a dry run without actually publishing
directoryNoDirectory to publish from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and largely drops it. It does not mention that publishing is effectively irreversible on the registry, that npm authentication is required, or that lifecycle scripts may run; the only hint of caution is the dryRun parameter documented in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and contains no filler, but its brevity reflects under-specification rather than discipline. For a destructive registry mutation, more content would earn its place.

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?

This is a zero-annotation mutation tool with no output schema, and the description supplies none of the compensating context: auth prerequisites, irreversibility, failure modes, or sibling routing. The schema covers parameters well, but the behavioral envelope is undocumented.

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 description coverage is 100%, with tag, access, dryRun, and directory each documented including defaults and enum values. The description adds no meaning beyond the schema, 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 (publish) and resource (package to NPM registry), so the core action is unambiguous. It stops short of differentiating from the sibling publish_workflow, leaving the agent to infer which publish path to use.

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?

No when-to-use, when-not-to-use, or alternative guidance is given. With siblings like publish_workflow, npm_validate, and npm_version_bump present, the definition offers nothing about when direct registry publish is the right choice versus those alternatives.

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