Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_children_url_info

Retrieve child URL details from a parent URL to analyze website structure and identify subpages for Bing Webmaster Tools.

Instructions

Get information about child URLs under a parent URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes
parent_urlYes

Implementation Reference

  • The handler function that implements the core logic of the get_children_url_info tool. It takes site_url and parent_url as inputs, makes an API request to Bing Webmaster Tools, and returns a list of child URL information.
    async def get_children_url_info(
        site_url: Annotated[str, "The URL of the site"],
        parent_url: Annotated[str, "The parent URL"],
    ) -> List[Dict[str, Any]]:
        """
        Get information about child URLs under a parent URL.
    
        Args:
            site_url: The URL of the site
            parent_url: The parent URL
    
        Returns:
            List of child URL information
        """
        async with api:
            children = await api._make_request(
                f"GetChildrenUrlInfo?siteUrl={site_url}&parentUrl={parent_url}"
            )
            return api._ensure_type_field(children, "ChildUrlInfo")
  • The @mcp.tool decorator that registers the get_children_url_info tool with its name and description.
    @mcp.tool(
        name="get_children_url_info",
        description="Get information about child URLs under a parent URL.",
    )
  • Input and output type annotations defining the schema for the tool, including parameter descriptions and return type.
        site_url: Annotated[str, "The URL of the site"],
        parent_url: Annotated[str, "The parent URL"],
    ) -> List[Dict[str, Any]]:

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/isiahw1/mcp-server-bing-webmaster'

If you have feedback or need assistance with the MCP directory API, please join our Discord server