An MCP server that provides access to Hex package information, allowing queries about Elixir/Erlang package versions and metadata
Single tool with moderate issues. Tool name 'hex_version_info' uses verb_noun pattern (+), but description lacks actionable context for LLM selection. Input schema present with basic validation, but output schema not documented. Error handling exists but lacks recovery guidance. The tool is functional but falls short of production-grade quality baselines.
Returns the latest version of the hex package. Use it to check for the latest heck package version when installing new Elixir dependencies
Description lacks actionable context and recovery guidance. Current: 'Returns the latest version of the hex package. Use it to check for the latest heck package version when installing new Elixir dependencies'. Missing: When to call it (vs similar discovery tools), what it returns, error scenarios, and next steps on failure. Baseline for A+ tools: 50-200 chars, explicit context. This is 156 chars but generic.
Output schema not documented. Tool returns text content via HTTPoison/API, but LLM cannot predict structure. Should document: 'Returns version string (e.g., "1.2.3") on success, or error message string on failure.' Current code catches exceptions and returns 'An error occured' but LLM has no schema to parse this.
Error handling lacks recovery guidance. Code returns strings like 'Unknown package', 'Invalid package name', 'An error occured' (typo: 'occured'). LLM cannot infer next steps. Should return: 'Unknown package. Use search_hex_packages() to find similar package names.' Current error is opaque.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | 2025-06-18+ | v2 |
| 2026-03-09 | F | 28 | - | v1 |
Package name validation is input-side only. Constraints (2-60 chars, regex [a-z0-9\-\_\.]+) are checked but not documented in schema description.
Typo in error message: 'An error occured' should be 'occurred'. Minor, but error messages surface to LLM and affect tool credibility.
Tool does not document API behavior. Description says 'latest version' but code calls hex.pm API and returns first_release['version']. Is that latest, or oldest? LLM cannot verify intent. Should clarify in description and/or code comment.