Skip to main content
Glama
cleaninstall-node

cleaninstall-node

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

cleaninstall-node diagnoses and fixes broken Node.js installs (npm, pnpm, yarn, bun).

  • When an install, build, dev server or test run fails with a dependency-looking error, call explain_error with the error output BEFORE deleting node_modules or lockfiles. It explains the cause for this project and gives the smallest fix.

  • Use diagnose for a general health check of the project's installed dependencies.

  • apply_fix and clean change the project. They require the plan_id from a preceding diagnose/explain_error or plan_clean call: show the user the plan first, then pass its plan_id. If the project changed in between, they refuse and you must re-plan.

  • Never delete lockfiles unless the user asks; clean keeps them unless lockfiles=true.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
diagnoseA

Health check of installed dependencies: Node version vs .nvmrc/engines, node_modules vs lockfile, missing or out-of-range dependencies, native modules built for another Node/OS, mixed package managers. Returns findings and the smallest fix plan (with a plan_id for apply_fix). Read-only.

explain_errorA

Explain an error message (Cannot find module, NODE_MODULE_VERSION, ERESOLVE, EBADENGINE, ERR_REQUIRE_ESM, missing rollup/esbuild/sharp binaries, command not found, lockfile out of sync, ...) in the context of this project, combined with a diagnose. Returns what it means, related findings, and the smallest fix plan with a plan_id. Read-only. Call this before deleting node_modules or lockfiles.

apply_fixA

Run the fix plan from diagnose or explain_error: a targeted rebuild, an install, or (only when node_modules came from a different package manager) a clean reinstall. Requires that call's plan_id; refuses if the plan changed. Pass the same error text if the plan came from explain_error. Returns the command output and a re-check. Never touches lockfiles.

plan_cleanA

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.

cleanA

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct role: read-only diagnosis (diagnose), error-specific explanation layered on diagnosis (explain_error), plan-then-execute pairs for both fixing (apply_fix) and cleanup (plan_clean/clean). The descriptions explicitly cross-reference each other (explain_error 'combined with a diagnose', clean 'exactly what plan_clean listed'), so an agent can pick correctly even where topics overlap.

Naming Consistency3/5

The set mixes bare verbs (diagnose, clean), verb_noun (explain_error, apply_fix), and a verb+verb compound (plan_clean). Every name is readable and individually meaningful, but there is no single predictable pattern across the five tools.

Tool Count5/5

Five tools is tightly scoped to the dependency-hygiene domain, and each one earns its place: two read-only probes, one executor, and a plan/execute pair for cleanup. Nothing is redundant or missing at the count level.

Completeness4/5

The diagnose → explain → apply → plan → clean lifecycle covers the core workflow, including safety via plan_id revalidation. Minor gaps remain: there is no way to add/remove packages or regenerate a stale lockfile (apply_fix explicitly never touches lockfiles), and Node version switching (.nvmrc) is only diagnosed, not performed.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues