Get AI visibility trend
get_ai_visibility_trendCheck 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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of each period. Compares the latest N days with the N days before. | |
| projectId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| data | No | ||
| meta | No | ||
| runId | No | ||
| status | Yes | ||
| message | No | ||
| recovery | No |