get_ai_attribution
A project's AI visibility next to the visits and conversions AI assistants send to the client's website, from the client's connected GA4 property: per-day visibility beside AI-referred sessions, conversions and revenue, window totals, the AI-referred conversion rate against the site-wide rate (with a ± of one standard error), and the correlation between visibility and the chosen metric over the days that have both (from 20 such days, with a 95 % interval). availability states when GA4 is not connected, not readable or not scanned, and those figures are then null. The GA4 caveats (undercounting, tracking changes, correlation) 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_attribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window in days ending today (default 90, max 365). | |
| dateTo | No | Last day, YYYY-MM-DD (UTC, inclusive). | |
| metric | No | What to correlate visibility with (default conversions). | |
| source | No | Data source: "blended" (default — CrunchJunkie scans plus imported Peec data, an engine both track counted once with the CrunchJunkie scan winning), "native" (CrunchJunkie scans only) or "peec" (imported Peec data only). | |
| clientId | No | Client id — uses the AI-Visibility project its Overview opens in the app (the newest). | |
| dateFrom | No | First day, YYYY-MM-DD (UTC, inclusive); with dateTo it replaces days. | |
| projectId | No | AI-Visibility project id. |