Skip to main content
Glama
cleaninstall-node

cleaninstall-node

Preview a cleanup

plan_clean
Read-onlyIdempotent

Preview a project cleanup across workspaces by listing node_modules, build output, caches, and optional lockfiles with sizes, plus a plan_id for the actual clean. Read-only.

Instructions

List what a cleanup would delete (node_modules, build output, caches; lockfiles only if lockfiles=true) across the project and its workspaces, with sizes and a plan_id for clean. Read-only.

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": "plan_clean"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNoProject root containing package.json. Defaults to the server's working directory.
onlyNoOnly these directory names/globs (e.g. ["node_modules"]) instead of the configured list.
lockfilesNoAlso remove lockfiles (changes resolved versions on reinstall).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real value: it says results include sizes and a plan_id, and that the scan covers the project plus its workspaces. The 'Read-only' sentence and the lockfiles caveat largely restate the annotation and schema, which keeps it from a 5.

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?

It is a single dense sentence that leads with the verb and the actionable output, with no filler. The parenthetical list is slightly crammed but every clause carries information, so it stops short of a 5 on readability.

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?

With no output schema, the description must convey return content, and it does: sizes and a plan_id. It also states scope (project and workspaces) and has zero required parameters, so an agent has enough to call it, though it stops short of explaining pricing or pagination behavior for large trees.

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 baseline is 3; the schema already explains dir, only, and lockfiles in detail. The description only echoes the lockfile switch and adds no new meaning for 'dir' or 'only', so it does not exceed 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?

The description pairs a concrete verb (list) with the exact resource (what a cleanup would delete) and enumerates the categories: node_modules, build output, caches. It also names the downstream partner ('plan_id for clean'), so an agent can distinguish a preview from the sibling 'clean' without opening either schema.

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

Usage Guidelines3/5

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

The workflow is only implied: the mention of a 'plan_id for clean' hints that this is the preview step before cleaning, but the description never states 'use this before clean' or when to skip it. No alternatives or exclusions are named, leaving selection reasoning to inference.

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