Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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
NameRequiredDescriptionDefault
site_urlYes

Implementation Reference

  • 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")
  • 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.")
  • 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]:

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isiahw1/mcp-server-bing-webmaster'

If you have feedback or need assistance with the MCP directory API, please join our Discord server