Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

enable_disable_query_parameter

Control how Bing indexes URL query parameters for a website by enabling or disabling specific parameters to manage search engine crawling.

Instructions

Enable or disable a URL query parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
parameterYes
enabledYes

Implementation Reference

  • The async handler function implementing the tool logic: takes site_url, parameter, enabled; calls Bing API endpoint 'EnableDisableQueryParameter'; returns success message.
    async def enable_disable_query_parameter(
        site_url: Annotated[str, "The URL of the site"],
        parameter: Annotated[str, "The query parameter"],
        enabled: Annotated[bool, "Whether to enable or disable"],
    ) -> Dict[str, str]:
        """
        Enable or disable a URL query parameter.
    
        Args:
            site_url: The URL of the site
            parameter: The query parameter
            enabled: Whether to enable (True) or disable (False)
    
        Returns:
            Success message
        """
        async with api:
            await api._make_request(
                "EnableDisableQueryParameter",
                "POST",
                {"siteUrl": site_url, "parameter": parameter, "enabled": enabled},
            )
            status = "enabled" if enabled else "disabled"
            return {"message": f"Query parameter {parameter} {status} successfully"}
  • MCP tool registration decorator specifying the tool name and description.
    @mcp.tool(
        name="enable_disable_query_parameter",
        description="Enable or disable a URL query parameter.",
    )
  • Input schema defined by Annotated type hints with descriptions; output is Dict[str, str].
        site_url: Annotated[str, "The URL of the site"],
        parameter: Annotated[str, "The query parameter"],
        enabled: Annotated[bool, "Whether to enable or disable"],
    ) -> Dict[str, str]:

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