Skip to main content
Glama

get_ai_visibility_metrics

Read-only

How visible a project's brand and its competitors are in AI answers over a window of whole UTC days (default the last 30, at most 180; dateFrom and dateTo choose it). pooled.brands gives each brand over every answer in the window, pooled as the app's Overview does: visibility with its ± margin, share of voice, sentiment and average position; pooled.clientByEngine gives the client per engine; snapshots holds the cells behind the pool (one per scan day × engine × market × brand, newest first, at most 500). source is blended (default), native or peec. summary: true returns the pooled figures without snapshots (a month of a busy project otherwise runs to about 60,000 characters); limit and offset page the snapshots (nextOffset); without them the call returns the newest 500 rows. A model the project has no answer from returns a note naming its engines. Definitions and cautions 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_ai_visibility_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNosnapshots rows per call, newest first (default and most 500). pooled always covers every row.
modelNoOne engine id: gpt-4o-search-preview = ChatGPT (GPT-6 Luna), gemini-2.0-flash = Gemini (3.5 Flash-Lite), sonar-pro = Perplexity (Agent API), claude-sonnet-4-6 = Claude (Sonnet 5.5), google-ai-overview = Google AI Overviews, google-ai-mode = Google AI Mode, bing-copilot = Microsoft Copilot, grok-3 = Grok (4.6), deepseek-chat = DeepSeek (V4.1 Flash), meta-ai = Meta AI (Muse Spark). All engines are pooled when omitted.
dateToNoLast day, YYYY-MM-DD (UTC, inclusive). Default: today.
marketNoOne market, exactly as listed in marketsInWindow. All markets are pooled when omitted, as in the app.
offsetNoSnapshots rows to skip: nextOffset from the previous call. Default 0.
sourceNoData source: "blended" (default — CrunchJunkie scans plus imported Peec AI data, an engine both track counted once with the CrunchJunkie scan winning), "native" (CrunchJunkie scans only) or "peec" (imported Peec AI data only).
summaryNotrue = pooled figures only, without the snapshots rows (a few thousand characters). Default false.
clientIdNoClient id — uses the AI-Visibility project its Overview opens in the app (the newest).
dateFromNoFirst day, YYYY-MM-DD (UTC, inclusive). Default: 30 days before dateTo.
projectIdNoAI-Visibility project id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"One engine id: gpt-4o-search-preview = ChatGPT (GPT-5.6 Luna), gemini-2.0-flash = Gemini (3.6 Flash), sonar-pro = Perplexity (Agent API), claude-sonnet-4-6 = Claude (Sonnet 5.5), google-ai-overview = Google AI Overviews, google-ai-mode = Google AI Mode, bing-copilot = Microsoft Copilot, grok-3 = Grok (4.5), deepseek-chat = DeepSeek (V4.1 Flash), meta-ai = Meta AI (Muse Spark). All engines are pooled when omitted."New value: +"One engine id: gpt-4o-search-preview = ChatGPT (GPT-6 Luna), gemini-2.0-flash = Gemini (3.5 Flash-Lite), sonar-pro = Perplexity (Agent API), claude-sonnet-4-6 = Claude (Sonnet 5.5), google-ai-overview = Google AI Overviews, google-ai-mode = Google AI Mode, bing-copilot = Microsoft Copilot, grok-3 = Grok (4.6), deepseek-chat = DeepSeek (V4.1 Flash), meta-ai = Meta AI (Muse Spark). All engines are pooled when omitted."
  2. Changed3 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
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
  3. Changed2 schema fields changed
    • changedInput schema / properties / offset / description
      Previous value: -"snapshots rows to skip: pass nextOffset from the previous call. Default 0."New value: +"Snapshots rows to skip: nextOffset from the previous call. Default 0."
    • changedInput schema / properties / source / description
      Previous value: -"Data source: \"blended\" (default — your scans plus imported Peec AI data, an engine both track counted once with your scan winning), \"native\" (your scans only) or \"peec\" (imported Peec AI data only)."New value: +"Data source: \"blended\" (default — CrunchJunkie scans plus imported Peec AI data, an engine both track counted once with the CrunchJunkie scan winning), \"native\" (CrunchJunkie scans only) or \"peec\" (imported Peec AI data only)."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Read-only annotations cover safety, and the description goes well beyond them: it describes the payload sections (pooled.brands, pooled.clientByEngine, snapshots), the character cost of an unpaged month (~60,000), the 500-row cap on snapshots with newest-first ordering, and the note returned for a model with no answers. It also flags that howToRead carries definitions and cautions.

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?

It is front-loaded with the core purpose and organized around response sections, so it reads efficiently despite long sentences. Some clauses duplicate schema content (source enum values, limit/offset semantics), which is the main waste.

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 no output schema, the description must explain the return shape, and it does so thoroughly — pooled aggregates, per-engine breakdown, snapshot row granularity, ordering, paging cursor and the summary short-circuit. Nothing an agent needs to call it correctly 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 every parameter is already documented. The description restates window selection (dateFrom/dateTo), paging (limit/offset with nextOffset chaining), source default and summary, adding a little operational meaning but mostly echoing what the schema already provides.

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 opens with a specific verb and resource: brand and competitor visibility in AI answers over a whole-UTC-day window. Scope, granularity and default window are all stated. It never names a sibling such as get_visibility_trend or get_brand_perception, so the boundary with neighbors is left implicit.

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 actionable selection guidance: summary:true for pooled figures only, limit/offset to page snapshots, source to choose blended/native/peec, and the default behavior when a parameter is omitted. It does not state when to prefer a different tool or when this call is the wrong choice.

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