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. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (read-only, idempotent, open-world), the description discloses latency (bundlephobia's first measurement can take 5-30s), graceful degradation (partial failures return with sources_failed listing timeouts), and the composite nature with a detailed output summary. It even mentions that the rest still returns, which is behaviorally valuable and not covered by annotations.

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?

Though dense, every sentence carries essential information: purpose, sources, use cases, output structure, latencies, ecosystem scope, and failure behavior. It is front-loaded with the core purpose and structured logically, earning its length for a composite tool.

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?

With no output schema, the description fully explains return values (summary fields, per-advisory detail, links, alternatives). It covers edge cases (first measurement latency, timeout handling), ecosystem limitations, and the composite fan-out design, making it complete for the tool's complexity.

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?

The input schema already provides 100% coverage for both parameters, so the baseline is 3. The description reinforces 'npm ecosystem only' and mentions 'is_latest' in output, but it does not add new parameter-level meaning beyond what the schema states.

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?

The description clearly states the tool's purpose: a composite check for adding an npm package, combining license, advisories, version history, bundle size, dependency count, and ESM/tree-shaking support from two named sources. It distinguishes itself from all sibling tools by its specific domain (npm dependency vetting) and composite nature.

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?

The description explicitly says when to use: whenever an agent asks about safety, popularity, size, or cost of adding a package. It also provides a direct exclusion for non-NPM ecosystems, directing users to 'deps.dev:version directly' for PyPI/Maven/Cargo/Go, fulfilling the 'when-not-to-use' criterion.

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.8/5.0
Disambiguation2/5

Multiple tools have heavily overlapping purposes: ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded are variants of the same router, and the six polymarket_* tools cover overlapping arbitrage/edge analysis territory. ai_visibility_check vs scan_competitor_ai_presence and discover_tools vs suggest_questions add further boundary ambiguity. While descriptions try to differentiate, an agent could easily misselect among these clusters.

Naming Consistency3/5

Most names are readable snake_case, but there is no consistent verb_noun pattern: verbs vary (ask, get, list, scan, search, suggest, validate, generate, compare) and several tools are named by product prefix (pipeworx_*, polymarket_*) rather than by action. The pattern is predictable within clusters but inconsistent across the set.

Tool Count2/5

33 tools is heavy for the server's stated name, 'Metals Api', which only has two metals-related tools (get_historical, get_latest). Even as a general data-research server, the surface is bloated with memory utilities, subscription management, feedback, trending, and unrelated AI-visibility scanning. The scope mismatch makes the count feel unjustified.

Completeness3/5

The core metals domain is thin: latest and single-date historical prices exist, but there is no time-series range query, no list of supported metals, and no explicit currency conversion endpoint. The broader data-research/subscription/memory surface is relatively complete, but it is disconnected from the server's apparent purpose, leaving notable gaps for a metals-focused agent.