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.

TDQS

A4.6/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it describes the fan-out to multiple sources, graceful degradation on partial failures, a potential 5-30s latency for bundlephobia's first measurement, and the sources_failed field. This is valuable information not present in the readOnly/hint annotations.

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?

The description is dense and front-loaded with the core purpose, followed by usage triggers, return details, scope, and failure behavior. Every sentence provides value, though the single long paragraph could be slightly more scannable with bullet points. The length is justified by the tool's complexity.

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 thoroughly enumerates the return contents (summary block fields, per-advisory details, links, alternative versions). It also covers ecosystem scope, timing, and failure degradation, making it complete for an agent to invoke and interpret results.

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 comprehensive descriptions for both parameters (package and version), covering scoped packages and default behavior. The description does not add extra parameter-level semantics beyond what the schema states, so the baseline score of 3 for high schema coverage is appropriate.

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 to evaluate whether to add an npm package, aggregating data from deps.dev and bundlephobia. It lists the specific data points (license, advisories, version history, bundle size, dependency count, ESM/tree-shake support) and differentiates from direct deps.dev usage by scoping to NPM ecosystem in v1.

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?

Explicit usage guidance is provided: 'Use whenever an agent asks "is X safe / popular / small" or "what does adding lodash cost me"'. It also states when NOT to use it: for non-NPM ecosystems, directing to deps.dev:version directly. This clearly distinguishes the tool's appropriate context.

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

Many tools overlap in purpose (e.g., multiple Polymarket analysis tools, multiple AI visibility tools, ask_pipeworx vs deep_research). Agents will have difficulty choosing the correct tool without deep understanding of subtle differences.

Naming Consistency2/5

Tool names use a mix of styles (snake_case, descriptive phrases) without a consistent verb_noun pattern. For example, 'ask_pipeworx' and 'bet_research' have different naming conventions. This inconsistency makes it harder for agents to predict tool names.

Tool Count2/5

32 tools is on the high side for a single server. Many tools could be merged (e.g., multiple polymarket tools). The count feels excessive for the scope, causing cognitive load and potential selection errors.

Completeness3/5

The tool set covers a wide range of domains (prediction markets, company data, fact-checking, etc.) but has notable gaps (e.g., limited entity types for company/drug only). Redundancy in some areas makes the set feel bloated rather than complete.