Skip to main content
Glama

get_query_fanouts

Read-only

Query fan-outs: the web searches each AI model ran through the provider's official API before answering the project's tracked prompts. One row per distinct search, sorted by answers, with the engines and prompts behind it, its tags, the tracked brands named inside the search string, the client's citation and mention counts, the hosts cited and matching Search Console rows. limit sets how many rows come back (default 5, max 200) and, above 10, how long the lists in signals, brandsInSearches and sequences are (default the top 10 of each, with their totals); summary: true returns those blocks without rows; distinctSearches, the totals in signals, brandsInSearches and sequences, and the per-engine coverage describe every search in the window. Filters: days, engine, promptType (shopping or other), tag. fanoutSource "peec" returns the sub-queries Peec AI recorded in its own chats instead, for clients with a Peec AI connection (a separate capture, never pooled with ours). The reading rules for these figures arrive in howToRead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_query_fanouts"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOnly searches run for prompts carrying this tag (topic).
daysNoWindow in days (default 30).
limitNoRows to return, most answers first (default 5, max 200). The lists in signals, brandsInSearches and sequences hold the top 10, or this many when it is higher.
engineNoFilter to one engine by its short label, e.g. "ChatGPT". Falls back to all engines if it exposed no searches in the window.
summaryNotrue = the whole-window totals and the capped lists, without rows. Default false.
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
projectIdNoAI-Visibility project id.
promptTypeNoOnly searches run for prompts of this type: shopping = prompt category Shopping, other = every other category.
fanoutSourceNoWhose capture: "native" (default) — the searches our scans captured from the providers' official APIs; "peec" — the sub-queries Peec AI recorded in its chats (logged-out app, signed-in app or API, per engine), imported from the client's Peec AI connection. One source per call, pooled with the other in no figure.
peecQueryKindNofanoutSource "peec" only: Peec's web searches, its shopping (product) lookups, or both (default all). Not a prompt type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fanoutSource / description
      Previous value: -"Whose capture: \"native\" (default) — the searches our scans captured from the providers' official APIs; \"peec\" — the sub-queries Peec AI recorded in its chats (logged-out app or API, per engine), imported from the client's Peec AI connection. One source per call, pooled with the other in no figure."New value: +"Whose capture: \"native\" (default) — the searches our scans captured from the providers' official APIs; \"peec\" — the sub-queries Peec AI recorded in its chats (logged-out app, signed-in app or API, per engine), imported from the client's Peec AI connection. One source per call, pooled with the other in no figure."
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed3 schema fields changed
    • changedInput schema / properties / fanoutSource / description
      Previous value: -"Whose capture: \"native\" (default) — the searches our scans captured from the providers' official APIs; \"peec\" — the sub-queries Peec AI recorded in its chats (logged-out app or API, per engine), imported from the client's Peec AI connection. One source per call; never pooled."New value: +"Whose capture: \"native\" (default) — the searches our scans captured from the providers' official APIs; \"peec\" — the sub-queries Peec AI recorded in its chats (logged-out app or API, per engine), imported from the client's Peec AI connection. One source per call, pooled with the other in no figure."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to return, most answers first (default 50, max 200)."New value: +"Rows to return, most answers first (default 5, max 200). The lists in signals, brandsInSearches and sequences hold the top 10, or this many when it is higher."
    • addedInput schema / properties / summary
      Added value: +{
      +  "description": "true = the whole-window totals and the capped lists, without rows. Default false.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, the description discloses default row count (5), max (200), the non-obvious dual role of `limit` in capping the `signals`, `brandsInSearches` and `sequences` lists, that totals/`distinctSearches`/`coverage` cover the whole window even when rows are truncated, and that peec and native captures are never pooled. It also points to the `howToRead` field in the response, which is real behavioral context an agent could not get from annotations or schema.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is a single dense paragraph of semicolon-separated clauses with heavy parenthetical nesting, and the long enumeration of returned fields ('engines and prompts behind it, its tags, the tracked brands...') is hard to parse in one pass. It is not padded with filler, but it would scan far better split into purpose / parameters / sources.

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

Completeness4/5

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

For a 10-parameter tool with no output schema, the description covers the return shape, defaults, capping behavior, and the source distinction, which is most of what an agent needs. It stops short of describing the individual row fields in a structured way and leaves the full reading rules to an in-response `howToRead` field, so a small amount of pre-call understanding must be discovered post-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 semantics are largely already documented; the description mostly restates the filters (days, engine, promptType, tag) and the limit/summary behavior the schema also explains. It adds marginal value by tying those parameters to the returned blocks, but that is baseline-level contribution when the schema does the heavy lifting.

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 names the specific resource precisely: the web searches each AI model ran via the provider's official API before answering tracked prompts, with one row per distinct search. It distinguishes the two capture modes (native vs peec) clearly, though it never names a sibling tool it should be preferred over, so routing against the 30+ other get_* tools rests on inference.

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

Usage Guidelines4/5

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

It gives concrete conditions for the main variants: `summary: true` for totals without rows, `fanoutSource: "peec"` only for clients with a Peec AI connection, and `peecQueryKind` only applying to the peec source. It does not tell the agent when to use this tool versus alternatives such as get_signals or get_ai_visibility_metrics, which is the remaining gap.

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