Skip to main content
Glama

check_dependency_compatibility

Checks npm dependencies for Node engine mismatches, peer dependency conflicts, and deprecation warnings using registry metadata before install or upgrade.

Instructions

Verifies engines.node, peerDependencies cross-compatibility, and deprecation notices deterministically using npm registry abbreviated metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dependenciesYesMap of production dependencies and their version or range (e.g. {"next": "15.0.3", "react": "18.2.0"})
devDependenciesNoOptional map of devDependencies and their version or range (e.g. {"eslint": "9.14.0", "typescript": "5.7.2"})
runtime_versionNoTarget Node.js runtime version (e.g. "20.11.0"). If omitted, engines.node checks are reported as unverified.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that results are deterministic and that npm registry abbreviated metadata is the source, plus what categories are checked, but says nothing about network behavior, failure modes, or what an incompatible result looks like.

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?

A single tightly packed sentence that front-loads the verb and the three check categories, with the metadata source as a trailing qualifier. No padding or redundancy.

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?

It enumerates the checks performed, which is the key information for a validation tool, and there is no output schema requiring explanation. Minor gap: it does not hint at the shape of the verdict (per-dependency results vs. a single pass/fail).

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%: each of the three parameters is documented in the schema, including the behavior when runtime_version is omitted. The description adds no parameter-level meaning beyond that, so the baseline 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 ("Verifies") and precisely enumerates the resources checked: engines.node, peerDependencies cross-compatibility, and deprecation notices. This clearly separates it from siblings like detect_project_environment or get_upgrade_steps, though it never names an alternative explicitly.

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?

No explicit when-to-use or when-not-to-use statement, and no sibling is named. The scope (compatibility verification against npm metadata) implies the pre-upgrade/validation scenario, but the agent must infer it.

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