A Model Context Protocol server for fetching rubygems metadata via rubygems API.
This server defines 6 read-only tools for querying RubyGems metadata. Tool naming follows the verb_noun pattern (get_*, search_*) which is good. All tools have descriptions and input schemas with Zod validation. However, output schemas are not documented, responses are returned as raw JSON text without structured field definitions. Parameter descriptions are minimal (most are 1-2 lines). Error handling exists but lacks recovery guidance. The server implements proper input validation and returns structured errors via a createErrorResponse utility, but does not guide LLMs on what to do when a gem is not found or when to call alternative tools.
Get the owners of a specific RubyGem
Get gems that depend on a specific RubyGem
Get all available versions of a specific RubyGem
Get all RubyGems owned by a specific user or organization
Get information about a RubyGem from the RubyGems.org API
Search for RubyGems matching a query string. The search matches against gem names and descriptions. Returns up to 10 results by default (customizable with limit parameter), ordered by relevance. Example queries: "authentication", "rails middleware", "aws sdk"
No output schema documentation. Tools return raw JSON text in a 'text' content block without declaring what fields, types, or structure the response contains. LLMs cannot reliably extract typed data or plan downstream tool chains when response schemas are undocumented.
Error responses lack recovery guidance. When a gem is not found (404), the tool throws 'RubyGem not found' but does not suggest calling search_rubygems() first to find the correct name. Errors do not tell the LLM what to do next.
Parameter descriptions are minimal (1 - 2 short sentences). Descriptions should explain WHAT the parameter controls, WHEN it is needed, and what format/constraints apply. Current descriptions are too sparse (e.g., 'Name of the RubyGem to fetch information for' does not explain if it accepts partial names, case sensitivity, or scoped gems).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 52 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 43 | - | v1 |
search_rubygems has a 'limit' parameter with no explicit maximum or validation. API documentation should clarify: is max 30 (as suggested) enforced client-side, or can the LLM pass larger values? Unbounded numeric parameters invite misuse.
No pagination support. get_gem_reverse_dependencies and get_owner_gems may return large result sets, but there are no limit, offset, or cursor parameters. This can bloat responses and exhaust context windows.