Skip to main content
Glama

Get AI visibility trend

get_ai_visibility_trend
Read-onlyIdempotent

Answer whether AI visibility is improving or declining. Compares the latest N days with the N days before, using neutral prompts from finished runs, including scheduled and manual runs. A cell is one prompt, engine, collection market and own-brand identity. Each period's brand mention and owned-site citation rate is the mean of cell rates over cells collected in both periods; change is in percentage points. Failed and no-answer collections are coverage, never lost visibility. Read comparison before claiming movement: only comparable reports a change; incomplete (under 90% collection), scope_changed, no_previous and no_data do not. Also returns per-engine rows and one point per run, computed on the matched cells when a comparison exists. framingVersion is the word list version. Where get_ai_reputation_history is listed, use it for how AI described the store month by month over 6, 12 or 24 months. counts and smallSample give each rate as the app's count ("4 of 10" questions and engines), overall and per engine; prefer them to the percentages with a store owner. framing is deprecated and kept for now. To read one number over time, get_metric_series is preferred: it gives counts per full check or per month, and for how answers describe the store against competitors, rep.better, rep.even and rep.worse as counts. Uses no credits.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_ai_visibility_trend"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLength of each period. Compares the latest N days with the N days before.
projectIdYes

Output Schema

NameRequiredDescriptionDefault
codeNo
dataNo
metaNo
runIdNo
statusYes
messageNo
recoveryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (read-only, idempotent, non-destructive, closed-world, no credits), and the description goes well beyond them: it defines a cell as prompt x engine x market x own-brand, states that each rate is a mean over cells collected in both periods with change in percentage points, and clarifies the semantics that failed and no-answer collections count as coverage rather than lost visibility. It also discloses deprecated fields (framing) and preferred fields (counts, smallSample, framingVersion), which annotations cannot express.

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 purpose and comparison semantics are front-loaded, and nearly every clause carries substantive information (comparison states, cell definition, counts preference). Some trailing material is lower value, notably the framingVersion note, the 'framing is deprecated and kept for now' aside, and the closing 'Uses no credits' line, which could be trimmed without loss.

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?

An output schema exists, so return values need not be explained, yet the description still flags the notable shapes an agent should expect: per-engine rows, one point per run computed on matched cells, and counts/smallSample alternatives to percentages. Combined with the comparability-state warnings, nothing material for correct invocation or interpretation is 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 50%: days already documents its own period meaning and allowed values (7/28/90), and the description largely restates 'the latest N days with the N days before' rather than adding syntax or format detail. projectId has no description anywhere, and the description does not compensate by explaining its role or scope. The aggregation explanation adds interpretive value for how days drives results, but not enough to exceed the baseline.

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?

Opens with a specific question the tool answers ('whether AI visibility is improving or declining') and immediately defines the mechanism: comparing the latest N days with the N days before using neutral prompts from finished runs. It names the sibling tools it is not (get_ai_reputation_history for month-by-month description, get_metric_series for a single number over time), so an agent can route without opening schemas.

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?

Explicit routing rules for two alternatives (get_ai_reputation_history for long-range narrative, get_metric_series for one metric over time) plus a hard precondition for use: 'Read comparison before claiming movement: only comparable reports a change.' It enumerates the non-comparable states (incomplete under 90%, scope_changed, no_previous, no_data), which is exactly the when-not guidance an agent needs.

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