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.6/5.0
Behavior5/5

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

Annotations already indicate idempotent, read-only, and non-destructive behavior. The description adds valuable context: it fans out to two sources, returns specific fields, degrades gracefully on partial failures, and mentions a 5-30s timeout for bundlephobia first measurement. No contradiction with 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 well-structured: composite purpose, usage guidance, return fields, limitations, error handling. It is somewhat long but every sentence adds value. Could be slightly more concise, but the richness justifies the 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?

No output schema exists, yet the description thoroughly explains the return: summary block fields (is_latest, license, etc.), per-advisory detail, links, and alternative versions. It also covers partial failures and ecosystem scope. The description is complete for agents to understand what to expect.

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%, so baseline is 3. The description does not add new parameter semantics beyond what the schema already provides (e.g., version defaults to latest). However, the tool's purpose implies usage, but no extra param details are given. Score remains at baseline.

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 it is a composite check for deciding whether to add an npm package, fanning out to deps.dev and bundlephobia. It specifies the ecosystem (NPM v1) and distinguishes alternatives for other ecosystems. The verb 'scan_dependency' and the detailed return block make the purpose unmistakable.

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 when to use: when an agent asks about safety, popularity, size, or cost of adding a package. It also notes that for other ecosystems, one should use deps.dev:version directly, providing clear alternatives. Partial failure handling and timeout behavior are also described, guiding expectation management.

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

Multiple tool clusters have unclear boundaries: ask_pipeworx, ask_pipeworx_beta, and ask_pipeworx_grounded are three variants of the same router (beta is currently identical), while bet_research, polymarket_edges, and polymarket_arbitrage all target prediction-market opportunities. ai_visibility_check is effectively a single-entity version of scan_competitor_ai_presence, and discover_tools overlaps heavily with suggest_questions.

Naming Consistency3/5

Tool names are uniformly snake_case and descriptive, but the pattern is mixed: verb-first names (ask_pipeworx, compare_entities, search_within) coexist with noun-first names (patent, scholarly, entity_profile), and the Lens.org pairing of patent/patents_search vs scholarly/scholarly_search is structurally inconsistent. Subgroups like pipeworx_* and polymarket_* are internally consistent, keeping the overall set readable.

Tool Count2/5

At 35 tools, this exceeds the 16-25 'heavy' band and bundles at least four distinct domains: Lens.org bibliometrics, Pipeworx data routing, Polymarket trading analysis, and memory/subscription utilities. While many tools serve legitimate purposes, the set feels sprawling and several variants (e.g., the three ask_pipeworx flavors) inflate the count without adding equivalent value.

Completeness4/5

The Pipeworx/Polymarket ecosystem is thoroughly covered with routing, grounded answers, deep research, entity resolution, validation, comparison, monitoring, and memory all present. The Lens.org portion is thin (search + fetch for patents and scholarly works) but covers the core read path; minor gaps exist such as no batch/export operations and no patent-number lookup.