Skip to main content
Glama

Add Dependency

add_dependency

Add npm packages to the project (validated against Floot's supported set — rejected packages get a supported alternative named; some versions are pinned/substituted). Avoid node-gyp/native packages (exception: sharp is supported, auto-pinned), WASM modules, and packages bundling large binaries (e.g. ffmpeg/ffprobe); pure JS/TS preferred. A bare kysely keeps the version the project already records (a project without one gets 0.28.17), the version its db/schema helpers are written against; pass an explicit kysely@<version> only when upgrading it deliberately. Installs on the project VM and persists resolved versions. After a slow install completes as a job, call add_dependency again with the same packages — the second call is fast and persists.

Input Schema

NameRequiredDescriptionDefault
packagesYes
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only disclose readOnlyHint=false, destructiveHint=false, openWorldHint=true. The description goes well beyond that: it explains that validation can reject packages and name alternatives, that versions may be pinned/substituted, that installs run on the project VM and persist resolved versions, and that slow installs complete asynchronously as a job requiring a follow-up call.

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?

A single dense paragraph, but front-loaded with the core action and every sentence carries a real constraint or quirk. It is longer than typical, though the detail is substantive rather than filler.

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

Completeness5/5

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

For a mutation tool with no output schema, the description covers the critical async job pattern, persistence behavior, validation/alternative-naming, and version resolution. An agent has what it needs to call this correctly and follow up.

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?

Schema description coverage is 0%, so the description must carry parameter meaning. It explains `packages` semantics richly (bare vs `kysely@<version>` syntax, substitution behavior), but `projectId` is never mentioned, leaving one of two params undocumented. Strong on the non-obvious param, silent on the obvious one.

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 and resource: 'Add npm packages to the project,' and immediately scopes it with validation and version-pinning behavior. An agent can distinguish this from remove_dependency and the file-editing siblings without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when/when-not guidance: avoid node-gyp/native packages, WASM, and large binaries; prefer pure JS/TS; the sharp exception. It also states when to pass an explicit `kysely@<version>` versus a bare `kysely`, and prescribes the two-call retry flow for slow installs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources