FastMCP server exposing tools for package registry verification, typosquat detection, and dependency age/popularity analysis
Four tools with clear verb-noun naming (check_pypi, check_npm, package_age_downloads, detect_typosquat). All have descriptions (avg 95 chars) and input schemas with type definitions. However, descriptions are terse (10-20 chars below baseline 194), lack WHEN/WHY context, and omit error recovery guidance. Output schemas are undocumented, LLMs cannot infer response structure. No parameter constraints (enums, ranges). Missing idempotency hints and dependency documentation. Error handling returns dicts with 'error' keys but no actionable recovery steps.
Check whether a JavaScript package exists on the npm registry.
Check whether a Python package exists on PyPI and return its metadata.
Check if a package name is a typosquat of a popular package using Levenshtein distance.
Retrieve a package's age (creation date) and approximate download count.
Output schemas undocumented. LLMs cannot infer response structure (fields, types, presence of 'error' key). Breaks downstream tool chaining and forces guessing.
Descriptions lack WHEN/WHY context. 'Check whether a Python package exists' does not explain when to call this vs package_age_downloads, or what to do if it fails. Baseline: 194 chars; actual: ~80 chars.
Error responses lack recovery guidance. Returning {'error': 'Package not found on PyPI'} tells LLM nothing. Should suggest: 'Package not found. Try search_similar() or check_npm() for JS alternatives.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2026-07-28+ | v2 |
Parameter 'threshold' in detect_typosquat lacks range constraints. Description says 'default 2' but no min/max documented. LLM could pass 1000, breaking Levenshtein distance logic.
No idempotency hints. All tools are read-only (safe to retry), but this is not declared. LLMs cannot distinguish safe retries from destructive operations without explicit hints.