Skip to main content
Glama

publish_package

Publish a package via a gated job: skip existing versions, open npm approval in a terminal, and block retries for 24 hours after E429.

Instructions

Gated. Publish; returns a job (npm approval opens in a terminal). Skips existing versions; refuses for 24 h after an E429.

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": {
      "dir": "<dir>"
    },
    "name": "publish_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirYes
forceNoSkip the E429 wait; only if the user says it was lifted
dryRunNo
confirmNo
allowDirtyNo
openBrowserNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / allowDirty
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "type": "boolean"
      +}
    • changedInput schema / properties / force / description
      Previous value: -"Ignore the E429 wait; only if the user says the block was lifted"New value: +"Skip the E429 wait; only if the user says it was lifted"
  2. Changed4 schema fields changedv0.4.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / dir / description
      Removed value: -"Project folder (absolute path, or relative to the server's working directory)."
    • changedInput schema / properties / force / description
      Previous value: -"Publish even within 24 hours of an E429. Only when the user confirms the block was lifted."New value: +"Ignore the E429 wait; only if the user says the block was lifted"
    • removedInput schema / properties / openBrowser / description
      Removed value: -"Open approval pages in the default browser."
  3. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / force
      Added value: +{
      +  "default": false,
      +  "description": "Publish even within 24 hours of an E429. Only when the user confirms the block was lifted.",
      +  "type": "boolean"
      +}
  4. First observedv0.1.0

TDQS

C2.9/5.0
Behavior4/5

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

With only destructiveHint=false supplied, the description carries real weight and does so well: it discloses that the call returns a job handle, that an npm approval step opens interactively in a terminal, that existing versions are skipped, and that a 24-hour refusal follows an E429. Missing is any statement of auth/prerequisite requirements behind 'Gated.' or what the job handle is used for (job_status).

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?

Extremely compact with no wasted clauses and the key facts front-loaded. The telegraphic fragment style ('Gated.', 'Publish;') costs some parseability but nothing is redundant.

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?

For a six-parameter mutating tool with no output schema and one thin annotation, the description is under-built: it omits prerequisites, auth expectations, and the meaning of most parameters. It does correctly flag the async job return and the interactive approval, which are the highest-value facts, but the gaps leave an agent guessing on several call decisions.

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

Parameters2/5

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

Schema coverage is only 17% — just the `force` flag is documented in the schema, and the description supports it indirectly by explaining the E429 wait it bypasses. The remaining parameters (dryRun, confirm, allowDirty, openBrowser) get no meaning from either the schema or the description, so four of six inputs are opaque.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Publish' is clear and the mention of 'npm approval' hints at the registry, but the resource is never stated outright and 'Gated.' is ambiguous on its own. An agent can infer this publishes a package, but must lean on the tool name rather than the description to know what is being published and where.

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?

'Gated.' implies some prerequisite exists but never says what gates it (login, preflight, run_checks?) or when to choose this over sibling tools like tag_and_release or bump_version. The behavioral notes about skipping existing versions and the E429 cooldown describe what happens on invocation, not when an agent should invoke it.

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