Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

remove_query_parameter

Remove URL normalization parameters from your site to prevent duplicate content issues in Bing Webmaster Tools.

Instructions

Remove a URL normalization parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
parameterYes

Implementation Reference

  • The handler function that executes the remove_query_parameter tool logic. It takes site_url and parameter, makes a POST request to the Bing API's 'RemoveQueryParameter' endpoint, and returns a success message.
    async def remove_query_parameter(
        site_url: Annotated[str, "The URL of the site"],
        parameter: Annotated[str, "The query parameter to remove"],
    ) -> Dict[str, str]:
        """
        Remove a URL normalization parameter.
    
        Args:
            site_url: The URL of the site
            parameter: The query parameter to remove
    
        Returns:
            Success message
        """
        async with api:
            await api._make_request(
                "RemoveQueryParameter",
                "POST",
                {"siteUrl": site_url, "parameter": parameter},
            )
            return {"message": f"Query parameter {parameter} removed successfully"}
  • The @mcp.tool decorator registers the 'remove_query_parameter' tool with the MCP server, providing the tool name and description.
    @mcp.tool(
        name="remove_query_parameter", description="Remove a URL normalization parameter."
    )
  • Type annotations for the input parameters using typing.Annotated, which likely define the input schema for the tool.
        site_url: Annotated[str, "The URL of the site"],
        parameter: Annotated[str, "The query parameter to remove"],
    ) -> 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