get_feeds
Retrieve all sitemap feeds for a website using Bing Webmaster Tools API. Ideal for analyzing site structure, indexing status, and optimizing search engine visibility by accessing detailed feed information.
Instructions
Get all sitemap feeds for a site.
Args: site_url: The URL of the site
Returns: List[Feed]: List of feed information
Raises: BingWebmasterError: If feeds cannot be retrieved
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| self | Yes | ||
| site_url | Yes |
Implementation Reference
- The dynamically generated handler function for the 'get_feeds' tool. Decorated with @mcp.tool(), it calls the underlying SubmissionService.get_feeds method via the BingWebmasterService instance.@mcp.tool() @wraps(original_method) async def wrapper(*args: Any, **kwargs: Any) -> Any: # Filter out any 'self' arguments that might be passed by the MCP client kwargs = {k: v for k, v in kwargs.items() if k != "self"} async with service as s: service_obj = getattr(s, service_attr) # Get the method from the instance method = getattr(service_obj, method_name) # Call the method directly - it's already bound to the instance return await method(*args, **kwargs) # Copy signature and docstring wrapper.__signature__ = new_sig # type: ignore wrapper.__doc__ = original_method.__doc__
- mcp_server_bwt/tools/bing_webmaster.py:102-102 (registration)Registers the 'get_feeds' tool by invoking wrap_service_method with the appropriate service attribute ('submission') and method name ('get_feeds').get_feeds = wrap_service_method(mcp, service, "submission", "get_feeds") # noqa: F841
- mcp_server_bwt/main.py:17-17 (registration)Invokes the tool registration function which includes the 'get_feeds' tool among all Bing Webmaster tools.add_bing_webmaster_tools(mcp, bing_service)
- Initializes the 'submission' service attribute on BingWebmasterService, which provides the 'get_feeds' method implementation (proxied from external library).self.submission = submission.SubmissionService(self.client)