MCP server for searching and retrieving academic papers from arXiv using the public arXiv API
Single tool 'paper_search' has a comprehensive schema with 10 parameters, all typed and described. Description is detailed (300+ chars) and explains both structured and raw query modes with examples. However, the description violates the 'no example values' rule by including literal query examples ('ti:attention', 'cat:cs.AI'), which LLMs may reuse verbatim. Parameter descriptions are present but vary in quality, some lack format/constraint details (e.g., 'sort_by' lists valid values in description but not as enum). Output schema is not documented in the tool definition; parsing logic exists in code but LLMs cannot see it. Error handling returns generic error dicts without recovery guidance. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite READ_ONLY risk label in metadata.
Searches arXiv using its public API. You can search in two ways: 1. STRUCTURED SEARCH: Provide specific field parameters (title, author, abstract, category, etc.) 2. RAW QUERY: Provide a complete arXiv query string using their syntax Field prefixes for raw queries: ti: (title), au: (author), abs: (abstract), cat: (category), jr: (journal reference), rn: (report number) Examples: - Structured: title="attention", category="cs.AI" - Raw query: "ti:attention AND cat:cs.AI" - Complex: "cat:cs.AI AND submittedDate:[202301010000 TO 202312312359]"
Output schema not documented. Tool description and code show parsing logic (feed_info, papers array, count field) but LLMs cannot see the return structure. This forces agents to guess what fields are available and risks failed downstream reasoning.
Example values in description ('ti:attention', 'cat:cs.AI', '202301010000') violate prompt-engineering best practice. LLMs tend to reuse examples literally rather than adapt to context. Replace with enum constraints and format declarations.
Parameters 'sort_by' and 'sort_order' lack enum constraints. Valid values are listed in description text only (relevance|submittedDate|lastUpdatedDate, ascending|descending). LLMs cannot parse text constraints reliably; use JSON Schema enum.
Error responses are generic dicts ('error': 'Request failed: ...') with no recovery guidance. Per pattern:recovery-guide, errors should tell the LLM what to do next (e.g., 'API timeout, retry with smaller max_results or longer timeout').
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 66 | <=2025-11-25 | v2 |
Tool marked READ_ONLY in metadata but lacks readOnlyHint annotation in schema. Tool annotations (readOnlyHint, destructiveHint, idempotentHint) are current MCP spec patterns that help agents reason about side effects and retry safety.