add_query_parameter
Add URL normalization parameters to site URLs for Bing Webmaster Tools to manage query strings and improve indexing accuracy.
Instructions
Add URL normalization parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| parameter | Yes |
Implementation Reference
- mcp_server_bwt/main.py:828-847 (handler)The handler function decorated with @mcp.tool, defining the schema via Annotated parameters and implementing the tool logic by calling the API's AddQueryParameter endpoint.@mcp.tool(name="add_query_parameter", description="Add URL normalization parameter.") async def add_query_parameter( site_url: Annotated[str, "The URL of the site"], parameter: Annotated[str, "The query parameter to normalize"], ) -> Dict[str, str]: """ Add URL normalization parameter. Args: site_url: The URL of the site parameter: The query parameter to normalize Returns: Success message """ async with api: await api._make_request( "AddQueryParameter", "POST", {"siteUrl": site_url, "parameter": parameter} ) return {"message": f"Query parameter {parameter} added successfully"}
- mcp_server_bwt/main.py:828-828 (registration)The @mcp.tool decorator registers the add_query_parameter tool with MCP.@mcp.tool(name="add_query_parameter", description="Add URL normalization parameter.")
- mcp_server_bwt/main.py:829-832 (schema)Input schema defined by function parameters with Annotated types and descriptions; output is Dict[str, str].async def add_query_parameter( site_url: Annotated[str, "The URL of the site"], parameter: Annotated[str, "The query parameter to normalize"], ) -> Dict[str, str]: