Skip to main content
Glama
NPM Publisher MCP Server

NPM Publisher MCP Server

by GiDanis

npm_version_bump

Bump a package's version (patch, minor, major, or prerelease) in a chosen directory, with optional prerelease identifiers for controlled release updates.

Instructions

Bump package version (patch, minor, or major)

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": {
      "type": "<type>"
    },
    "name": "npm_version_bump"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesVersion bump type
preidNoPrerelease identifier (e.g., alpha, beta, rc)
directoryNoDirectory containing package.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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. It never states that this is a mutating operation that rewrites package.json, that npm's version bump traditionally also creates a git commit and tag (or whether this tool suppresses that), or what happens when only the type is given without preid. For a write tool with zero annotation coverage this is a serious disclosure gap.

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 short parenthetical sentence that is front-loaded with the action and resource, with no filler. It is efficient, though the brevity borders on under-specification rather than genuine economy.

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?

Given three simple parameters with full schema coverage and no nested objects, an agent has enough to invoke it mechanically; the missing pieces are behavioral (side effects, preconditions), not structural.

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%, so the enum values, preid, and directory are already documented in the schema, and the baseline is 3. The description slightly narrows the perceived enum by listing only patch/minor/major and adds no semantics for preid or directory (e.g., that preid is required for the prerelease variants).

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?

The description gives a specific verb and resource ("Bump package version") plus an enumeration of the bump types, so an agent can tell this is a semver mutation rather than a publish/validate/commit operation like the sibling tools. However, it names only patch/minor/major while the schema enum also offers prepatch, preminor, premajor and prerelease, so the stated scope under-describes the tool.

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 when-to-use guidance, no mention of the relationship to sibling tools such as npm_publish or publish_workflow, and no stated preconditions (clean working tree, existing package.json, running before a publish or tag). An agent must infer the workflow position entirely.

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