get_crawl_settings
Retrieve crawl configuration for a website to manage how Bing's search engine indexes your content.
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 handler function for the 'get_crawl_settings' tool. It takes a site_url, makes an API request to retrieve crawl settings, ensures the type field, and returns the settings as a dictionary.@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)Registration of the 'get_crawl_settings' tool using the @mcp.tool decorator, specifying the name and description.@mcp.tool(name="get_crawl_settings", description="Get crawl settings for a site.")
- mcp_server_bwt/main.py:978-980 (schema)Input schema defined by the function signature with Annotated type hints providing parameter description and return type.async def get_crawl_settings( site_url: Annotated[str, "The URL of the site"] ) -> Dict[str, Any]: