get_url_docs
Retrieves documentation from a specified URL for extracting LLM-friendly prompts.
Instructions
Use this tool to get the documentation at a URL.
Args:
url: The URL to get the documentation for.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Implementation Reference
- src/main.py:27-35 (handler)The tool handler function 'get_url_docs' takes a URL and calls get_url_documentation from the docs2prompt library.
@mcp.tool() async def get_url_docs(url: str): """ Use this tool to get the documentation at a URL. Args: url: The URL to get the documentation for. """ return get_url_documentation(url) - src/main.py:27-34 (schema)The tool has one parameter 'url' of type str, defined by the function signature. The docstring serves as the schema description.
@mcp.tool() async def get_url_docs(url: str): """ Use this tool to get the documentation at a URL. Args: url: The URL to get the documentation for. """ - src/main.py:27-27 (registration)The tool is registered via the @mcp.tool() decorator on the FastMCP instance 'mcp' (line 5).
@mcp.tool() - src/main.py:2-2 (helper)The helper function 'get_url_documentation' is imported from the docs2prompt library and called by the handler.
from docs2prompt import get_github_documentation, get_url_documentation