MCP server for searching and retrieving artwork data from Harvard Art Museums API
Harvard Art Museums MCP server has 5 tools with basic schemas and descriptions, but multiple critical issues prevent it from reaching production quality. Tool names follow verb_noun convention (search_objects, get_object, etc.), which is good. However, parameter descriptions are minimal or absent, output schemas are completely undocumented, and error handling is not addressed. All tools return unstructured text responses (str(data)) rather than properly typed and formatted content. The server exposes API responses directly without filtering or pagination limits, violating response-shaping patterns. No input validation, no recovery guidance, and no documentation of what fields callers should expect.
Fetch a single object by id.
Fetch a person record by id.
Return a random object with optional filters.
Search artworks in Harvard Art Museums.
Search artist/person records.
Output schemas completely undocumented. All tools return `[{"type": "text", "text": str(data)}]` with no description of expected response structure or fields. LLMs cannot parse or chain outputs.
Parameter descriptions missing or trivial. 'size' described only as type integer with no min/max bounds. 'hasimage' boolean has no description explaining what it filters. 'q' (search query) lacks format guidance.
No pagination enforcement or result limits documented. search_objects accepts arbitrary 'size' and 'page' with defaults of 10, but no caps stated. Could return thousands of objects, bloating context window.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 44 | - | v1 |
Unstructured text responses. All tools return `str(data)` (raw JSON dump as string) instead of properly structured content-blocks with typed fields. LLMs must parse unstructured output, error-prone and wasteful.
No error handling or recovery guidance. Calls like `r.raise_for_status()` and `ValueError` produce stack traces. No guidance on what to do next (retry, lookup alternate, ask user). Errors contain no actionable information.
Missing constraint documentation. 'classification' and 'culture' parameters (random_object) have no enum, length, or format constraints. LLMs will hallucinate invalid values.
No input validation. Parameters accepted as-is from LLM without validation against Harvard API requirements. Invalid 'q', 'size', 'page', 'hasimage' values will fail at API layer with no user-friendly error.
Random_object response unpredictable. Line `result = data["records"][0] if data.get("records") else {}` returns empty dict on no results with no guidance to LLM. Silent failure instead of actionable error.