get_query_parameters
Extract URL normalization parameters from Bing Webmaster Tools to analyze and optimize website query handling for search performance.
Instructions
Get URL normalization parameters. Note: May require special permissions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:808-826 (handler)The handler function for the 'get_query_parameters' tool. It takes a site_url, makes an API request to Bing Webmaster Tools to get query parameters for URL normalization, and returns the list of parameters.name="get_query_parameters", description="Get URL normalization parameters. Note: May require special permissions.", ) async def get_query_parameters( site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """ Get URL normalization parameters. Args: site_url: The URL of the site Returns: List of query parameters used for URL normalization """ async with api: params = await api._make_request(f"GetQueryParameters?siteUrl={site_url}") return api._ensure_type_field(params, "QueryParameter")
- mcp_server_bwt/main.py:808-811 (registration)The @mcp.tool decorator registers the get_query_parameters tool with the MCP server, specifying its name and description.name="get_query_parameters", description="Get URL normalization parameters. Note: May require special permissions.", ) async def get_query_parameters(
- mcp_server_bwt/main.py:812-814 (schema)The function signature defines the input schema (site_url: str) and output schema (List[Dict[str, Any]]) for the tool.site_url: Annotated[str, "The URL of the site"] ) -> List[Dict[str, Any]]: """