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

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

The description discloses behavioral traits beyond the annotations. It reveals composite fan-out behavior, partial-failure degradation, and a 5-30s latency for first-time bundlephobia measurements, plus the 'sources_failed' field. The annotations already indicate read-only and idempotent, but the description adds operational context that helps the agent set expectations and handle timeouts gracefully. No contradictions 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 longer than average but well-structured and information-dense. It starts with a one-sentence purpose, then usage, output fields, ecosystem caveat, and failure behavior. Every sentence earns its place—there is no filler or repetition. It could be slightly trimmed, but the structure and front-loading make it easy to scan.

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?

Given the absence of an output schema, the description carries the burden of explaining the return values, which it does thoroughly: summary fields, per-advisory detail, links, and recent alternative versions. It also covers ecosystem scope and partial-failure behavior. Minor gaps include error handling for invalid package names or total source failure, but overall it is complete enough for an agent to effectively use the tool.

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: 'package' is described as an npm package name with scoped package support, and 'version' is described as optional defaulting to latest. The description adds little extra parameter-level meaning beyond the schema, though it reinforces the NPM ecosystem scope. Baseline 3 is appropriate because the schema carries the burden.

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 opens with a specific, action-oriented statement: "Composite 'should I add this npm package to my project' check in ONE call," clearly identifying the tool as a dependency evaluation scanner. It names the data sources (deps.dev and bundlephobia) and the specific outputs, making its unique purpose unmistakable. The description also differentiates it from broader tools by scoping it to NPM and noting that other ecosystems fall under deps.dev:version directly.

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 when-to-use guidance is provided: "Use whenever an agent asks 'is X safe / popular / small' or 'what does adding lodash cost me'." It also clearly states when NOT to use it: "NPM ecosystem only in v1; PyPI / Maven / Cargo / Go fall under deps.dev:version directly," pointing to an alternative for non-NPM packages. This gives an agent clear decision criteria and a fallback path.

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

Many tools have overlapping purposes, especially the ask_pipeworx family (4 variants) and polymarket tools (5 variants). The memory tools (remember/recall/forget) and subscription tools also overlap with each other. While descriptions provide some differentiation, the sheer number of similar tools makes it hard for an agent to quickly distinguish the right one.

Naming Consistency2/5

Most names use snake_case, but there is no consistent verb_noun pattern. Some are verb_noun (ask_pipeworx, resolve_entity), some are noun_noun (bet_research, entity_profile), and others are adjective_noun (recent_changes, pipeworx_trending). The naming is arbitrary and doesn't follow a predictable convention.

Tool Count2/5

At 33 tools, the count is high but not extreme for a broad data platform. However, the server is named 'mathjs', implying a math focus, yet only 2 tools (evaluate, convert_units) are math-related. The vast majority of tools belong to a completely different domain (data lookups, prediction markets, subscriptions), making the count inappropriate for the server's apparent purpose.

Completeness1/5

For a math server, the tool surface is severely incomplete—missing basic operations like plotting, equation solving, calculus, etc. For the actual data integration and prediction market functionality, the set is more complete, but the server name misleads. The mismatch between name and content makes the completeness score very low based on the implied domain.