verify_site
Verify site ownership in Bing Webmaster Tools to access analytics and manage search performance.
Instructions
Attempt to verify ownership of a site
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:162-177 (handler)The main handler function for the 'verify_site' tool, including its @mcp.tool decorator which also serves as the registration. It verifies site ownership by making a POST request to the Bing Webmaster API's VerifySite endpoint using the api._make_request method.@mcp.tool(name="verify_site", description="Attempt to verify ownership of a site") async def verify_site( site_url: Annotated[str, "The URL of the site to verify"] ) -> Dict[str, Any]: """ Attempt to verify ownership of a site. Args: site_url: The URL of the site to verify Returns: Verification result """ async with api: result = await api._make_request("VerifySite", "POST", {"siteUrl": site_url}) return {"verified": result, "site_url": site_url}