get_children_url_traffic_info
Retrieve traffic data for child URLs under a specific parent page in Bing Webmaster Tools to analyze page performance and user engagement patterns.
Instructions
Get traffic information for child URLs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| parent_url | Yes | ||
| limit | No |
Implementation Reference
- mcp_server_bwt/main.py:1346-1349 (registration)Registration of the 'get_children_url_traffic_info' tool using the @mcp.tool decorator.@mcp.tool( name="get_children_url_traffic_info", description="Get traffic information for child URLs.", )
- mcp_server_bwt/main.py:1350-1373 (handler)The handler function implements the tool logic by making a POST request to the Bing Webmaster Tools API endpoint 'GetChildrenUrlTrafficInfo' with siteUrl, parentUrl, and limit parameters, then ensures the response type is 'ChildUrlTrafficInfo'.async def get_children_url_traffic_info( site_url: Annotated[str, "The URL of the site"], parent_url: Annotated[str, "The parent URL"], limit: Annotated[int, "Maximum number of results"] = 100, ) -> List[Dict[str, Any]]: """ Get traffic information for child URLs. Args: site_url: The URL of the site parent_url: The parent URL limit: Maximum number of results (default: 100) Returns: Traffic information for child URLs """ async with api: traffic = await api._make_request( "GetChildrenUrlTrafficInfo", "POST", {"siteUrl": site_url, "parentUrl": parent_url, "limit": limit}, ) return api._ensure_type_field(traffic, "ChildUrlTrafficInfo")