get_fetched_urls
Retrieve submitted URLs and their indexing status from Bing Webmaster Tools to monitor crawl progress and identify issues.
Instructions
Get a list of URLs that have been submitted for fetching.
Args: site_url: The URL of the site
Returns: List[FetchedUrl]: List of fetched URLs and their status
Raises: BingWebmasterError: If fetched URLs cannot be retrieved
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| self | Yes | ||
| site_url | Yes |
Implementation Reference
- Core handler logic for the get_fetched_urls MCP tool. Dynamically created wrapper decorated with @mcp.tool(), which executes the underlying submission service's get_fetched_urls method within the service context manager.@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)
- mcp_server_bwt/tools/bing_webmaster.py:114-116 (registration)Registers the get_fetched_urls tool by invoking wrap_service_method with the submission service and method name, creating the MCP tool.get_fetched_urls = wrap_service_method( # noqa: F841 mcp, service, "submission", "get_fetched_urls" )
- mcp_server_bwt/main.py:17-17 (registration)Triggers registration of all Bing Webmaster tools, including get_fetched_urls, by calling add_bing_webmaster_tools.add_bing_webmaster_tools(mcp, bing_service)
- Attaches the SubmissionService instance (which defines the underlying get_fetched_urls method) to the BingWebmasterService for access by tool wrappers.self.submission = submission.SubmissionService(self.client)