submit_sitemap
Submit a sitemap to Bing Webmaster Tools to notify Bing about your website's content structure and improve search engine indexing.
Instructions
Submit a sitemap to Bing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| sitemap_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:366-385 (handler)The handler function decorated with @mcp.tool that implements the submit_sitemap tool. It takes site_url and sitemap_url as inputs and uses the BingWebmasterAPI to POST to the SubmitFeed endpoint, returning a success message.@mcp.tool(name="submit_sitemap", description="Submit a sitemap to Bing.") async def submit_sitemap( site_url: Annotated[str, "The URL of the site"], sitemap_url: Annotated[str, "The URL of the sitemap"], ) -> Dict[str, str]: """ Submit a sitemap to Bing. Args: site_url: The URL of the site sitemap_url: The URL of the sitemap Returns: Success message """ async with api: await api._make_request( "SubmitFeed", "POST", {"siteUrl": site_url, "feedUrl": sitemap_url} ) return {"message": f"Sitemap {sitemap_url} submitted successfully"}