Skip to main content
Glama
YawLabs

@yawlabs/npmjs-mcp

by YawLabs

npm_unpublish_version

Destructive

Unpublish a specific version of an npm package permanently. This action is irreversible and requires explicit confirmation, with republish blocked for 72 hours.

Instructions

Unpublish a specific version of a package. IRREVERSIBLE: once unpublished, the version cannot be re-published and will be blocked for 72 hours. Only works within 72 hours of the original publish for most packages. Requires explicit confirm: true to prevent accidents. Follows the npm CLI flow (mutate packument + delete tarball). For full-package unpublish use npm_unpublish_package. Dist-tag handling: any dist-tag that pointed at the unpublished version is removed. Only latest is auto-reassigned (to the highest remaining stable version). Other tags like next/beta are left unset — reassign them explicitly with npm_dist_tag_set if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPackage name
confirmYesMust be literally true. Guards against accidental unpublish.
versionYesSpecific version to unpublish (e.g. '1.2.3')
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds critical detail: irreversibility, 72-hour block, and exact dist-tag behavior (auto-reassign only 'latest', others left unset). This goes well beyond the annotation's binary flag.

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

Conciseness5/5

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

The description is dense but each sentence carries unique weight—irreversibility, time window, safety mechanism, CLI flow, sibling distinction, and dist-tag side effects. No filler; well-structured with the core action first.

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?

For a destructive irreversible operation, this description is comprehensive: it explains consequences, constraints, side effects, and next steps. Absence of output schema is acceptable as no structured output is expected.

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 already covers all three parameters with descriptions, so baseline is 3. The description reinforces the confirm parameter's purpose but doesn't add new parameter semantics beyond the schema.

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?

Clearly states it unpublishes a specific version of a package. Differentiates from sibling npm_unpublish_package by explicitly naming it as the alternative for full-package unpublish.

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

Usage Guidelines5/5

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

Provides explicit guidance: only works within 72 hours, requires confirm=true, and for full-package unpublish use npm_unpublish_package. Also advises on reassigning dist-tags with npm_dist_tag_set after side effects.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YawLabs/npmjs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server