Skip to main content
Glama
bing-webmaster-tools-mcp

bing-webmaster-tools-mcp

by washedguy

Get Search Query Stats

get_query_stats
Read-onlyIdempotent

Retrieve search query performance—clicks, impressions, CTR, and average positions—with date filters, aggregation, sorting, and pagination to analyze SEO results without context bloat.

Instructions

Retrieves search query performance (clicks, impressions, CTR, avg positions). Supports local date-range filtering, aggregation, sorting, and pagination to prevent context bloat.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteUrl": "<siteUrl>"
    },
    "name": "get_query_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows to return (default 50, max 500).
orderNoSort direction.desc
offsetNoPagination offset.
prefixNoCase-insensitive prefix filter on query or URL.
sortByNoField to sort results by.
endDateNoFilter rows on or before YYYY-MM-DD (applied locally).
siteUrlYesVerified site root URL in Bing Webmaster Tools (e.g. "https://example.com/")
containsNoCase-insensitive substring filter on query or URL.
aggregateNoAggregate daily rows by query/page (true, default) or return raw daily rows (false).
minClicksNoMinimum clicks threshold.
startDateNoFilter rows on or after YYYY-MM-DD (applied locally).
minImpressionsNoMinimum impressions threshold.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive behavior, so the description only needed to add operational context, which it does: date-range filters are 'applied locally' (implying client-side evaluation of the underlying dataset), and pagination is framed as a guard against 'context bloat'. It stops short of stating row caps or what raw rows look like when aggregation is disabled.

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

Conciseness4/5

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

A single front-loaded sentence: what it returns first, then the supported knobs. No filler, though the metric list and the capability list could be tightened slightly against the schema's own parameter names.

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?

For a 12-parameter tool with no output schema, the description does partially compensate by naming the metric columns returned. However, it says nothing about the shape difference between aggregated and raw daily rows, default result volume, or how the siteUrl scope interacts with 'local' filtering, leaving real gaps for an agent configuring a call.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including the enum-constrained sortBy and order is already documented, and the baseline of 3 applies. The description adds only the aggregate concept of local date filtering, without naming parameters or clarifying interactions such as aggregate=false combined with sortBy=date.

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

Purpose4/5

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

The description gives a specific verb ('Retrieves') and resource ('search query performance') and enumerates the returned metrics (clicks, impressions, CTR, avg positions), so an agent knows exactly what it gets. It falls short of a 5 because it never distinguishes itself from near-identical siblings such as get_page_query_stats or get_query_page_detail_stats, leaving the query-vs-page granularity ambiguous.

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?

The second clause lists capabilities (filtering, aggregation, sorting, pagination) rather than conditions for choosing this tool over the many sibling stats tools. There is no when-to-use, no when-not-to-use, and no named alternative despite a crowded sibling set where differentiation matters most.

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