submit_sitemap
Submit a sitemap to Bing Webmaster Tools to notify Bing about your website's structure and content for improved indexing and search visibility.
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-386 (handler)Handler function for the 'submit_sitemap' MCP tool. It uses the BingWebmasterAPI to POST a sitemap (referred to as 'feed') 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"}
- mcp_server_bwt/main.py:366-366 (registration)MCP tool registration decorator that registers the submit_sitemap function with name and description.@mcp.tool(name="submit_sitemap", description="Submit a sitemap to Bing.")