Traffic sources
list_sourcesWhere visitors came from, paged: search, social, AI, sites, campaign tags, direct (withheld referrers too). A visitor counts once a day, by their first page view: its utm_source/ref, else the referrer; landing_pages are those pages. internal_visitors (from the site itself) and unattributed_visitors (no page view) are not in total_visitors. No sources before sources_from. goal adds a goal's conversions to rows, hosts and tags: read goal_note. Dates are the project's calendar days, YYYY-MM-DD (timezone: get_project); timestamps are UTC. Omit from/to for the last 28 complete days, ending yesterday. Today is still in progress: a range including it reads as a drop against complete days. unique_sessions (visitors) is approximate: counted per day from a daily-rotating hash and summed over days, so a returning visitor counts once per day, and shared or changing networks merge or split people.
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": "list_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD in the project's timezone, inclusive. Default: yesterday, the last complete day. | |
| from | No | First day, YYYY-MM-DD in the project's timezone, inclusive. Default: 27 days before 'to'. | |
| goal | No | A goal's funnel ID (list_funnels, is_goal true). Adds goal numbers to every row, host and tag (conversions, conversion_rate, and revenue and revenue_per_visitor when the goal has a value), plus goal and goal_totals. Read goal_note before quoting them. Not a goal: 404. | |
| page | No | Page number, from 1. | |
| limit | No | Sources per page, 1-100. Default 50. | |
| trait | No | Only count visitors carrying this session trait value. | |
| search | No | Case-insensitive substring of a source's name, key or any of its referrer hosts. | |
| project | No | Project ID, from list_projects. Required when this connection covers more than one project; may be left out when it covers one (and with an API key, which belongs to one project). | |
| sort_by | No | visitors (default); with goal also conversions, conversion_rate, revenue or revenue_per_visitor (rows without a value last). | |
| sort_dir | No | desc (default) or asc. |