submit_url_batch
Submit multiple URLs to Bing Webmaster Tools for indexing to improve search visibility and ensure content is discoverable.
Instructions
Submit multiple URLs for indexing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| urls | Yes |
Implementation Reference
- mcp_server_bwt/main.py:321-321 (registration)Registration of the 'submit_url_batch' tool using the @mcp.tool decorator with name and description.@mcp.tool(name="submit_url_batch", description="Submit multiple URLs for indexing.")
- mcp_server_bwt/main.py:322-339 (handler)The handler function for 'submit_url_batch' that takes site_url and list of urls, calls the Bing Webmaster API's SubmitUrlBatch endpoint, and returns a success message with the result.async def submit_url_batch( site_url: Annotated[str, "The URL of the site"], urls: List[str] ) -> Dict[str, Any]: """ Submit multiple URLs for indexing. Args: site_url: The URL of the site urls: List of URLs to submit Returns: Submission result """ async with api: result = await api._make_request( "SubmitUrlBatch", "POST", {"siteUrl": site_url, "urlList": urls} ) return {"message": f"Submitted {len(urls)} URLs", "result": result}