Skip to main content
Glama

verify_dependency_addition

Read-onlyIdempotent

Validates whether an npm package is allowed before installation by checking blocked lists, existing dependencies, and review policies to prevent disallowed additions.

Instructions

Validates whether a new npm package is allowed before adding it. Call this BEFORE running 'npm install '. Checks the package against blocked lists, existing dependencies, and review policies.

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": {
      "packageName": "<packageName>",
      "reason": "<reason>"
    },
    "name": "verify_dependency_addition"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy this package is needed — what problem does it solve?
packageNameYesThe npm package name to validate (e.g. 'lodash')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the list of policy sources checked and the pre-install ordering constraint. What it does not disclose is the outcome shape — whether a denied package returns a value, an error, or a message — and there is no output schema to fill that gap.

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: what it does, when to call it, and what it checks — ordered by importance with no filler. Every sentence carries information an agent needs.

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 read-only validation tool this covers purpose and timing well, but a validation tool's whole point is interpreting a verdict, and the description says nothing about what a pass or fail looks like. With no output schema, that is a real hole an agent must guess at.

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 coverage is 100% and both fields carry their own descriptions, including the intent of 'reason'. The description only restates that an npm package name is involved and adds no format, naming, or scope details beyond the schema, so the baseline of 3 applies.

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 — validating a new npm package before it is added — plus what the validation consults (blocked lists, existing dependencies, review policies). That is concrete enough to distinguish it from siblings like verify_code_pattern or check_file_structure, though it never names an alternative.

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?

Gives an explicit directive with ordering: call this BEFORE running 'npm install <package>'. That is the key usage condition and it is unambiguous. It stops short of stating when not to use it or which sibling to prefer for non-dependency checks, so it misses the 5 mark.

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