Skip to main content
Glama

Get AI visibility trend

get_ai_visibility_trend
Read-only

Check whether AI visibility is improving or declining: compares the latest N days with the N days before, using neutral prompts from finished runs. Returns each period's brand mention rate and owned-site citation rate with the change in percentage points, plus per-engine rows and one point per run. Read comparison before claiming movement: only comparable reports a change; incomplete (under 90% collection), scope_changed, no_previous, and no_data do not. Rates average only the prompt, engine, and market cells collected in both periods, and failed or no-answer collections count as coverage, never as lost visibility. Uses no credits. For one run's prompt-level detail, use get_ai_visibility_results.

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. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered upstream. The description still adds real behavioral context beyond them: it discloses credit cost ('Uses no credits'), the comparability status vocabulary, the averaging rule across shared prompt/engine/market cells, and that failed or no-answer collections count as coverage rather than lost visibility. That is meaningful added value even against an already well-annotated tool, though it stops short of stating latency, limits, or pagination of the per-run points.

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 purpose and mechanism before the caveats, and the sibling pointer lands last as a clean routing aid. Every clause carries information, but the middle section packs status vocabulary, averaging logic, and failure semantics into long comma-chained sentences, which costs some scannability.

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?

Although an output schema exists (so return shape need not be explained), the description still usefully summarizes what comes back: per-period mention and citation rates with point changes, per-engine rows, and one point per run. Combined with the status vocabulary, credit note, and sibling routing, an agent has everything needed to call it and interpret results correctly.

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%: the `days` parameter is fully documented in the schema with its default and period meaning, while projectId carries only a uuid format. The description restates the period semantics ('compares the latest N days with the N days before') but does not enumerate the allowed values (7/28/90) that the schema encodes via const, nor say anything about projectId. Baseline 3 is appropriate since the schema does most of the work.

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 opens with a specific verb and outcome ('Check whether AI visibility is improving or declining') and states the exact mechanism: comparing the latest N days against the prior N days using neutral prompts from finished runs. It even distinguishes itself from the sibling that handles single-run prompt-level detail, so the agent can tell them apart 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 gives an explicit usage rule ('Read comparison before claiming movement') and an explicit alternative with a selecting condition ('For one run's prompt-level detail, use get_ai_visibility_results'). The when-not path is also covered by naming the statuses (incomplete, scope_changed, no_previous, no_data) that must not be read as movement.

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.