Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

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
NameRequiredDescriptionDefault
site_urlYes
parameterYes

Implementation Reference

  • 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.")
  • 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"}
  • 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"],

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