Skip to main content
Glama
cleaninstall-node

cleaninstall-node

Delete what plan_clean listed

clean
Destructive

Deletes only the targets listed in an approved plan_id, refuses if they changed, and can reinstall dependencies afterward for Node.js or Deno install repairs.

Instructions

Delete exactly what plan_clean listed. Requires its plan_id and the same options; refuses if the targets changed. Optionally reinstall afterwards.

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": {
      "plan_id": "<plan_id>"
    },
    "name": "clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoProject root containing package.json. Defaults to the server's working directory.
onlyNo
installNoRun the package manager's install afterwards.
plan_idYesplan_id from plan_clean.
lockfilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavior: a stale-plan guard that refuses when targets changed, the requirement to repeat the same options, and an optional reinstall step afterwards — none of which annotations convey.

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?

Three short sentences, front-loaded with the destructive action, then preconditions, then the optional follow-up. No filler wording; every clause carries operational meaning.

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?

For a destructive tool whose annotations already flag risk, the description covers the key preconditions and post-action. What is actually removed is only implied via plan_clean, and return behavior is unspecified, but no output schema exists so this is a minor gap.

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

Parameters4/5

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

With 60% schema coverage, the description compensates by tying plan_id to plan_clean's output and explaining that the option set ('same options') must match the plan, plus that 'install' runs the package manager afterwards. The 'only' and 'lockfiles' parameters remain undefined in both places, keeping it short of a 5.

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?

States a specific verb ('Delete') and a precise scope ('exactly what plan_clean listed'), which distinguishes it cleanly from plan_clean (which only plans) and from apply_fix. An agent knows the unit of work without opening any schema.

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

Usage Guidelines4/5

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

The description establishes the two-step workflow with plan_clean by requiring 'its plan_id and the same options', and states a precondition for refusal if targets changed. It doesn't explicitly say when not to call it (e.g. no plan yet) but the dependency makes that inference safe.

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

Deploy Server

Other Tools