A Model Context Protocol server for Pixabay image and video search
The server defines 2 tools with explicit schemas, enums for constrained inputs, and parameter descriptions. However, several definition quality patterns are underutilized: tool descriptions are minimal (34 - 52 chars, below the production baseline of ~194 chars); parameter descriptions are terse and lack context on valid ranges/formats; output schemas are not documented; and error handling guidance is sparse. The code does implement runtime validation (assertValidImageSearchParams, assertValidVideoSearchParams) and type guards, which partially compensates. Both tools follow verb_noun naming convention and cover a single, clear action. The server is competent but falls short of production A-grade (80+) standards.
Search for images on Pixabay
Search for videos on Pixabay
Tool descriptions are too brief (34 - 52 chars vs. baseline 194 chars). Descriptions lack context on when to use each tool, what they return, and how results differ. 'Search for images on Pixabay' doesn't explain pagination, result structure, or typical use cases.
Output schemas are not documented. The code returns PixabayResponse/PixabayVideoResponse interfaces internally (with id, pageURL, type, tags, previewURL, etc.), but these are never exposed in the tool definition. LLMs cannot predict what fields the response will contain, forcing them to guess or make unsafe assumptions.
Parameter descriptions lack detail on format and constraints. E.g., 'Search query terms' doesn't explain minimum/maximum length, supported characters, or examples. 'Number of results per page' omits that valid range is 3 - 200, which is enforced in code but not advertised to LLMs.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 31 | - | v1 |
Error handling provides error classification and context (e.g., 'image_type must be all, photo, illustration, vector') but lacks recovery guidance. Error messages are in Chinese, which is inconsistent with English API naming and may confuse multilingual LLMs.
Pagination support is missing. Tools default to per_page=20 but do not expose offset/page parameters or return total counts, next_cursor, or pagination metadata. If Pixabay API supports pagination, the tools should expose it; if not, the description should state 'Returns first 20 results, no pagination available.'