get_crawl_settings
Retrieve crawl configuration for a website to manage how search engines index content, using Bing Webmaster Tools data.
Instructions
Get crawl settings for a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:977-992 (handler)The main handler function for the 'get_crawl_settings' tool, decorated with @mcp.tool for registration. It takes a site_url, makes an API request to Bing Webmaster Tools to fetch crawl settings, and returns the typed response.@mcp.tool(name="get_crawl_settings", description="Get crawl settings for a site.") async def get_crawl_settings( site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: """ Get crawl settings for a site. Args: site_url: The URL of the site Returns: Crawl settings configuration """ async with api: settings = await api._make_request(f"GetCrawlSettings?siteUrl={site_url}") return api._ensure_type_field(settings, "CrawlSettings")
- mcp_server_bwt/main.py:977-977 (registration)The @mcp.tool decorator registers the 'get_crawl_settings' function as an MCP tool.@mcp.tool(name="get_crawl_settings", description="Get crawl settings for a site.")
- mcp_server_bwt/main.py:979-980 (schema)Input schema defined via type annotation: site_url as str. Output as Dict[str, Any].site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: