Skip to main content
Glama

Scan Dependency

scan_dependency
Read-onlyIdempotent

Composite "should I add this npm package to my project" check in ONE call — fans out across deps.dev (license + advisories + version history) and bundlephobia (gzipped/minified bundle size, dependency count, ESM/tree-shake support). Use whenever an agent asks "is X safe / popular / small" or "what does adding lodash cost me". Returns a summary block (is_latest, license, published_at, advisory_count, bundle_kb_min, bundle_kb_gz, dependency_count, has_esm, tree_shakeable), per-advisory detail, links, and a list of recent alternative versions. NPM ecosystem only in v1; PyPI / Maven / Cargo / Go fall under deps.dev:version directly. Partial failures degrade gracefully — bundlephobia's first measurement on a new version can take 5-30s; sources_failed will list it if it times out, the rest still returns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageYesnpm package name. Scoped packages (e.g. "@types/node") are accepted.
versionNoSpecific version to check (e.g., "18.3.1"). Defaults to the latest published version when omitted.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Description reveals multiple behavioral traits beyond annotations: calls deps.dev and bundlephobia, partial failures degrade gracefully with sources_failed list, bundlephobia first measurement can take 5-30s. Annotations already mark readOnly, idempotent, and non-destructive, so description adds valuable context like timeout behavior.

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?

Description is relatively compact given the complexity, starting with the core purpose and then detailing behavior and limitations. Minor fluff like 'composite "should I add..."' could be trimmed, but overall it earns its length.

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?

Despite no output schema, the description fully explains return structure (summary block with specific fields, per-advisory detail, links, alternative versions), covers partial failure behavior, and notes ecosystem limitations. An agent has enough information to invoke and interpret results correctly.

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 has 100% coverage, but description adds value by clarifying that scoped packages are accepted and version defaults to latest. This extra guidance helps agents correctly set parameters beyond the schema's description.

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?

Description clearly states the tool performs a composite check for npm packages, covering license, advisories, version history, bundle size, and tree-shaking. It distinguishes itself from siblings by being the only npm dependency scanner, and its specific verb 'scan_dependency' is well-explained.

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?

Explicitly says 'Use whenever an agent asks "is X safe / popular / small" or "what does adding lodash cost me"' and notes that NPM ecosystem is the only one supported in v1, directing other ecosystems to deps.dev directly.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools have distinct purposes, but several query tools (ask_pipeworx, ask_pipeworx_grounded, deep_research, entity_profile, compare_entities, validate_claim) overlap in functionality, which could confuse an agent. The Polymarket and HUD subgroups are well-separated.

Naming Consistency3/5

Tool names use multiple styles: verb_noun (ask_pipeworx), prefixed groups (hud_*, polymarket_*, pipeworx_*), and standalone verbs (forget, recall). While subgroups are consistent, the overall set lacks a uniform pattern.

Tool Count3/5

With 35 tools, the server offers broad data and analytics capabilities. The count is on the high side but justified by the range of features (HUD, general queries, prediction markets, memory, subscriptions). Some tools are highly specialized.

Completeness4/5

The tool surface covers housing data, multi-source querying, prediction markets, memory, subscriptions, and meta-tools. Minor gaps exist (e.g., deeper user account management), but core workflows are well-supported.