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
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| parameter | Yes |
Implementation Reference
- mcp_server_bwt/main.py:1077-1097 (handler)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"}
- mcp_server_bwt/main.py:1074-1076 (registration)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." )
- mcp_server_bwt/main.py:1078-1080 (schema)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]: