Skip to main content
Glama

Install Dependencies

varity_install_deps
Idempotent

Install npm dependencies in a Varity project after scaffolding or when adding packages, using an optional project path and package list to run targeted or full installs.

Instructions

Install npm dependencies in a Varity project. Use after creating a project or when adding new packages.

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

Input Schema

NameRequiredDescriptionDefault
pathNoProject directory to install dependencies in (default: current directory)
packagesNoSpecific packages to install (e.g., ['axios', 'lodash']). If omitted, runs npm install for all dependencies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-beta.24

TDQS

B3.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds nothing behavioral beyond that: it does not say that passing packages also mutates package.json, that it requires network access, whether a lockfile is written, or how long-running installs behave. Given annotations shoulder most of the burden, this is a marginal contribution.

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?

Two short sentences with the action front-loaded and no filler. The usage clause is compact and earns its place, though it is generic enough to be slightly boilerplate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, zero-required tool with full schema coverage and non-destructive annotations, the description is adequate to invoke it correctly. It omits what the tool returns (install output, errors on failed resolution) and any indication of side effects on project files, which leaves a modest gap for a mutating install operation.

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 both the path and packages parameters are fully documented in the schema, including the default directory and the fallback to installing all dependencies. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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

Purpose4/5

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

States a specific verb and resource ('Install npm dependencies') scoped to 'a Varity project', which is enough to distinguish it from build, deploy, and migrate siblings. It stops short of naming a sibling it should be preferred over, so it is clear but not maximally differentiating.

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 second sentence gives explicit triggers: after creating a project, or when adding new packages. There is no when-not guidance or mention of alternatives such as a dev-server or build step, but the positive conditions are concrete.

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