Skip to main content
Glama

Read query fanouts

read_query_fanouts
Read-onlyIdempotent

Read the web searches engines ran while answering one run's prompts: each query with how often it ran, its share of every search, its change against the previous comparable run (null when not compared), the engines and prompts behind it, how many of its answers named the brand, and the tracked brands the query itself names (null when the run counted no queries). event_count, distinct_queries and coverage describe the whole run, unaffected by paging. order top ranks by share; rising and falling by change. Pass search to match query text, prompt_id or topic_id to narrow. It defaults to the latest completed run; unavailable no_completed_run means none has finished. Use read_prompt_metrics for the prompts themselves.

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": {
      "project_id": "<project_id>"
    },
    "name": "read_query_fanouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many rows to return; omit for the default page size.
orderNotop by share (the default); rising or falling by change since the last run.top
cohortNocore is the scored prompts (the default); comparison is the prompts that also name a competitor, reported separately; all is both.core
cursorNoThe next_cursor a previous page returned.
engineNoRead one engine only; omit for every engine.
searchNoWords a query must contain.
audit_idNoA run id (audit_id); omit for the latest run.
topic_idNoA topic id from read_prompt_portfolio; keep only answers to prompts filed under it when their run was measured. unavailable topic_not_measured means the run asked no prompt in it.
market_idNoA market id from get_project_business_context; omit for the default market. Markets are never pooled.
prompt_idNoA prompt id from read_prompt_portfolio or read_prompt_metrics.
project_idYesA project id that list_projects returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "chatgpt_search",
      -  "gemini_consumer",
      -  "chatgpt",
      -  "gemini",
      -  "claude",
      -  "google_ai_overview"
      -]New value: +[
      +  "chatgpt_search",
      +  "gemini_consumer",
      +  "chatgpt",
      +  "gemini",
      +  "claude",
      +  "google_ai_overview",
      +  "google_ai_mode"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses null semantics ('null when not compared', 'null when the run counted no queries') and, importantly, that event_count, distinct_queries and coverage describe the whole run and are unaffected by paging — a real behavioral trap it pre-empts. It stops short of discussing result-size ceilings or performance characteristics, which keeps it at 4 rather than 5.

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?

The single paragraph is dense and front-loads the resource and row contents before moving to ordering, filtering, defaults, and the sibling pointer. Almost every clause carries information, though the lack of any sentence breaks makes the parameter guidance harder to scan than necessary.

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

Completeness5/5

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

With 11 parameters, no output schema, and a non-trivial aggregation model, the description compensates by describing the returned fields (including run-level aggregates) and the one documented unavailable state. Nothing an agent needs to call it correctly or interpret the result appears missing.

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 coverage is 100%, so the schema already documents all 11 parameters, and the description largely restates them (order's top/rising/falling definitions mirror the enum description). It adds modest value by framing search/prompt_id/topic_id as narrowing filters and tying audit_id omission to the latest completed run, but cohort, engine and market_id get no description-level explanation. Baseline 3 is appropriate.

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

Purpose5/5

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

The description names a specific verb and resource (web searches the engines ran for one run's prompts) and then enumerates the row shape: query frequency, share, change vs. previous run, engines, prompts, brand mentions, and tracked brands named. It explicitly distinguishes itself from read_prompt_metrics at the end, so an agent can separate the two without opening either schema.

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

Usage Guidelines5/5

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

It states concrete usage conditions: defaults to the latest completed run, what the unavailable no_completed_run code means, how to narrow with search/prompt_id/topic_id, and how order values select ranking. It also names the alternative tool and the condition that selects it (read_prompt_metrics for the prompts themselves).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources