fetch_url
Request Bing to fetch and crawl a specific URL for indexing in search results. Submit URLs to ensure they appear in Bing search.
Instructions
Request Bing to fetch/crawl a specific URL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1233-1250 (handler)The handler function decorated with @mcp.tool that implements the fetch_url tool by submitting a fetch request to the Bing Webmaster Tools API.@mcp.tool(name="fetch_url", description="Request Bing to fetch/crawl a specific URL.") async def fetch_url( site_url: Annotated[str, "The URL of the site"], url: Annotated[str, "The specific URL to fetch"], ) -> Dict[str, str]: """ Request Bing to fetch/crawl a specific URL. Args: site_url: The URL of the site url: The specific URL to fetch Returns: Success message """ async with api: await api._make_request("FetchUrl", "POST", {"siteUrl": site_url, "url": url}) return {"message": f"Fetch request for {url} submitted successfully"}
- mcp_server_bwt/main.py:1233-1233 (registration)Registers the fetch_url tool with the MCP framework, specifying its name and description.@mcp.tool(name="fetch_url", description="Request Bing to fetch/crawl a specific URL.")
- mcp_server_bwt/main.py:1234-1237 (schema)Defines the input schema using Annotated types for site_url and url parameters, and output type Dict[str, str].async def fetch_url( site_url: Annotated[str, "The URL of the site"], url: Annotated[str, "The specific URL to fetch"], ) -> Dict[str, str]: