ie-mcp demonstrates solid tool design with consistent naming (verb_noun pattern), comprehensive descriptions (avg 180 chars), and proper parameter typing. All 11 tools follow the get_/list_/search_ convention. Descriptions are LLM-optimized and include prerequisites ('Always call this before...'). However, output schemas are not explicitly documented in the visible code, return types are inferred from docstrings rather than formally declared. Parameter descriptions are present but some lack format constraints (e.g., 'version' param accepts 'latest' or tag but no enum). Error handling is basic (returns dicts with 'error' key) but lacks recovery guidance. No tool annotations (readOnlyHint, destructiveHint) despite all tools being read-only.
Force a fresh fetch of a documentation section, bypassing the cache. Use this when the user explicitly asks for the latest or most up-to-date information and you suspect the cached version may be stale.
Return the full Markdown content of a specific documentation section. The first call fetches the live docs page and caches it locally. Later calls are served from the cache. Defaults to the latest version. Call list_doc_versions(package) first if the user asks about a specific older version. Call get_package_info(package) first to discover the available sections.
Fetch the source code of a named function or method from a package. Searches the GitHub repository for the function, fetches the file (optionally at a specific version tag), and returns the extracted source code plus metadata (file path, version, GitHub URL). Always call list_source_versions(package) first if the user asks about a specific version other than the latest.
Check what version of a package is installed in the MCP server's Python environment. Returns the installed version and the Python executable path so users can verify which environment is being checked. Always call this before get_function_source or get_doc_section when the user has not specified a version, to ensure the documentation and source code match their actual installation. If the package is not installed, the response includes guidance on pointing mcp.json to the right Python environment.
Output schemas not formally documented. Return types are inferred from docstrings (e.g., 'dict', 'list[str]') but no structured schema definitions visible. LLMs cannot reliably parse what fields to expect in responses.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). All 11 tools are read-only and idempotent, but this is not declared. Agents cannot infer safety properties without explicit hints.
Error handling lacks recovery guidance. Errors return {'error': '...'} but do not suggest next steps. E.g., 'Unknown package' should suggest 'Call list_packages() to see available packages.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
Get metadata for a package: description, GitHub URL, docs URL, install commands, and the list of available documentation sections.
Inspect the MCP server's Python environment. Returns the Python executable path, Python version, and the installed version of every package registered in this server. Use this to verify that the MCP server is running in the correct environment before asking about specific packages. If a package shows 'not installed', update the 'command' field in .vscode/mcp.json to point to the Python where you have your packages installed.
List all available documentation versions for a package. Queries the ReadTheDocs API to discover published versions. Always call this before get_doc_section or search_docs when the user asks about a specific version other than the latest.
List all Python packages that this MCP server has documentation for.
List all available versions of a package's source code on GitHub. Queries the GitHub API to discover published tags. Always call this before get_function_source when the user asks about a specific version other than the latest.
Search the package documentation for a query string. Missing pages are fetched live and cached before searching. Returns up to 10 matching paragraph-level snippets (case-insensitive). Each result includes the section name and a text snippet (≤500 chars).
Search for code in a package's GitHub repository. Searches the default branch for files matching a query string. Returns up to 10 results with file paths and GitHub URLs.
Parameter 'version' in get_doc_section and search_docs lacks enum constraint. Accepts 'latest' or version slug but no formal enum or pattern documented. LLMs may hallucinate invalid version strings.
list_packages() description is minimal (27 chars). Does not explain when to call it or what structure it reveals. Should state: 'Returns list of package keys. Call this first to discover available packages before querying specific ones.'