update_crawl_settings
Modify how Bing crawls your website by adjusting crawl frequency settings to control server load and content freshness.
Instructions
Update crawl settings for a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| crawl_rate | No | Normal |
Implementation Reference
- mcp_server_bwt/main.py:995-1014 (handler)The handler function for the 'update_crawl_settings' tool. It registers the tool using the @mcp.tool decorator and implements the logic to update crawl settings by making a POST request to the Bing Webmaster API's SaveCrawlSettings endpoint with the site URL and crawl rate.@mcp.tool(name="update_crawl_settings", description="Update crawl settings for a site.") async def update_crawl_settings( site_url: Annotated[str, "The URL of the site"], crawl_rate: Annotated[str, "Crawl rate setting"] = "Normal", ) -> Dict[str, str]: """ Update crawl settings for a site. Args: site_url: The URL of the site crawl_rate: Crawl rate setting (Slow, Normal, Fast) Returns: Success message """ async with api: await api._make_request( "SaveCrawlSettings", "POST", {"siteUrl": site_url, "crawlRate": crawl_rate} ) return {"message": f"Crawl settings updated successfully"}
- mcp_server_bwt/main.py:995-995 (registration)Registers the 'update_crawl_settings' tool with the MCP server using the FastMCP decorator.@mcp.tool(name="update_crawl_settings", description="Update crawl settings for a site.")
- mcp_server_bwt/main.py:997-999 (schema)Input schema defined using Annotated types for site_url (required string) and crawl_rate (optional string, default 'Normal'). Return type is Dict[str, str].site_url: Annotated[str, "The URL of the site"], crawl_rate: Annotated[str, "Crawl rate setting"] = "Normal", ) -> Dict[str, str]: