add_query_parameter
Add URL normalization parameters to Bing Webmaster Tools for consistent site indexing and tracking.
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-828 (registration)Registration of the 'add_query_parameter' tool via the @mcp.tool decorator, specifying its name and description.@mcp.tool(name="add_query_parameter", description="Add URL normalization parameter.")
- mcp_server_bwt/main.py:829-847 (handler)The handler function implements the tool logic by making a POST request to the Bing Webmaster API's AddQueryParameter endpoint with the provided site_url and parameter, returning a success message.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:830-831 (schema)Input schema defined via Annotated type hints for site_url (str) and parameter (str).site_url: Annotated[str, "The URL of the site"], parameter: Annotated[str, "The query parameter to normalize"],