MCP server for resolving IPFS content using CIDs (v0 or v1) or IPNS names with fallback gateway support
Single tool with basic schema and description, but significant gaps in parameter documentation, output schema, error handling, and overall definition maturity. The tool definition is directly visible in mcp_server.py with explicit registration via @mcp_server.list_tools() and @mcp_server.call_tool(). Tool name 'fetch_ipfs_cid' follows verb_noun convention. Description is present (131 chars, within 10-1024 range) but lacks context on when to use it vs alternatives, what it returns structurally, and prerequisites. Input schema has proper type/required fields but the 'cid' parameter description is descriptive (47 chars) yet lacks constraint details (what makes a valid CID, format expectations beyond examples). No output schema is documented, callers cannot predict the structure of returned content. Error handling in call_tool returns raw stringified dicts rather than structured, actionable error guidance. Security review: no token/credential parameters exposed (good), but no explicit permission gates or audit trail mention.
Fetch content from IPFS using a CID (v0 or v1) or IPNS name. Returns parsed JSON or text content.
No output schema documented. Tool returns TextContent with stringified result, but LLMs cannot predict the structure (success/error/content fields, content type, gateway used). Forces LLMs to guess what fields are available for downstream tool calls or response parsing.
Parameter description lacks constraint details. 'cid' param description says 'IPFS CID (v0 like Qm... or v1 like bafy...) or IPNS name' but does not specify: minimum/max length, valid character sets, rejection criteria for invalid formats. LLMs may pass malformed CIDs. ipfs_client.py has validation (regex patterns, length checks) but this is not surfaced in the schema description.
Error responses are not actionable. call_tool() returns stringified JSON errors like '{"error": "CID is required"}' or '{"error": "Unknown tool: ..."}' rather than structured error objects with recovery guidance. Per pattern:recovery-guide, errors should tell LLMs what to do next (e.g. 'Invalid CID format. Call search_ipfs_content() to discover valid CIDs, or use list_gateways() to check service status.').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 40 | - | v1 |
Tool description does not explain when to use it or what it returns. Description says 'Fetch content from IPFS using a CID (v0 or v1) or IPNS name. Returns parsed JSON or text content.' but omits: (1) What 'parsed' means, does it always parse JSON, or only if content-type suggests it? (2) When should an LLM call this vs. a hypothetical search_ipfs tool? (3) What fields does the response contain (success, error, content, raw, gateway, content_type)? (4) What are prerequisites (valid IPFS network access)? (5) How long do calls typically take?
Input schema is minimal. 'cid' parameter is required and typed as string, but provides no length bounds, regex pattern, or enum of valid formats. resolve_ipfs_content() in ipfs_client.py validates via is_valid_cid() but this validation logic is not exposed to the LLM or documented in the schema.