Skip to main content
Glama
isiahw1

mcp-server-bing-webmaster

get_active_page_preview_blocks

Retrieve active page preview blocks from Bing Webmaster Tools to monitor and manage how your website appears in search results.

Instructions

Get list of active page preview blocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function decorated with @mcp.tool registers and implements the get_active_page_preview_blocks tool. It fetches active page preview blocks via API request to Bing Webmaster Tools.
    @mcp.tool(
        name="get_active_page_preview_blocks",
        description="Get list of active page preview blocks.",
    )
    async def get_active_page_preview_blocks(
        site_url: Annotated[str, "The URL of the site"]
    ) -> List[Dict[str, Any]]:
        """
        Get list of active page preview blocks.
    
        Args:
            site_url: The URL of the site
    
        Returns:
            List of active page preview blocks
        """
        async with api:
            blocks = await api._make_request(
                f"GetActivePagePreviewBlocks?siteUrl={site_url}"
            )
            return api._ensure_type_field(blocks, "PagePreviewBlock")
  • Input schema defined using Annotated type for site_url parameter and return type List[Dict[str, Any]].
        site_url: Annotated[str, "The URL of the site"]
    ) -> List[Dict[str, Any]]:
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'Get list' which implies a read-only operation, but doesn't specify permissions, rate limits, pagination, or what 'active' entails (e.g., time-based status). For a tool with no annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words. It's front-loaded and efficiently conveys the core action, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that an output schema exists, the description doesn't need to explain return values. However, with no annotations, 1 undocumented parameter, and complexity implied by 'active' status, the description is minimal. It meets a basic threshold but lacks details on behavior and parameters that would aid an agent in correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 1 parameter with 0% description coverage, and the tool description provides no information about the 'site_url' parameter. It doesn't explain what format the URL should be in, whether it's required for filtering, or its role in retrieving preview blocks, failing to compensate for the schema's lack of details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the verb 'Get' and resource 'list of active page preview blocks', which clarifies the tool's basic function. However, it doesn't specify what 'active' means in this context or differentiate this tool from sibling tools like 'get_page_preview_block' (which doesn't exist in the list) or 'get_deep_link_blocks', leaving the purpose somewhat vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, context, or exclusions, and with sibling tools like 'get_deep_link_blocks' and 'get_blocked_urls' that might retrieve similar data, the lack of differentiation leaves usage unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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