devtune_get_traffic_summary
Get fixed-window website traffic totals, daily counts, LLM bot and AI-referral counts, coding-agent answer fetches and sensor state. Counts are null on UTC days without machine-sensor coverage, and window totals are null only when no day was covered. Otherwise totals sum covered days; a covered day with no events is 0. coverage.coveredDays gives measured days per event or session count over coverage.windowDays, and follows domain and path filters. Empty bot counts and combined event and session counts need server-side coverage from edge middleware, Cloudflare or a Vercel log drain. Observed bot rows retain their counts even when sensor state is unknown; with no server-side coverage or observed bot rows, combined counts are null. Referrals retain snippet coverage. Null coverage means coverage could not be read. sensors reports configuration-backed accepted-measurement Active state for snippet, edge middleware, Cloudflare, Search Console, GA4, and PostHog. Sensor state is project-wide even when domain filters the traffic totals. edgeSensorSdk lists the @devtune/ai-traffic versions the edge middleware reported in the last 14 days (null means 0.8.0 or earlier) and whether an upgrade is available; it is null when the reports could not be read. edgeSensorVercelLinks lists the Vercel projects linked to send edge middleware traffic without an ingest key: each has vercelProjectId, vercelOwnerId, the vercelOwnerSlug and vercelProjectName display names, the allowed environments, and lastSeenAt, where null names and a null lastSeenAt mean no traffic has been accepted from that link yet. The field is absent when the links could not be read. vercelDrain, absent only when the drain state could not be read, has connection: null when the project has no drain, or its status (pending, active, errored or needs_reconnect), vercelTeamId, vercelProjectIds, lastReceivedAt, lastError, the latest hourly health read from Vercel, behindCdn (true when requests arrived from a Cloudflare or Fastly address in the last 7 days, so they are not address-verified), addressesHidden (true when requests are arriving without client IP addresses because the Vercel team has IP Address Visibility › Show in Log Drains off, so they cannot be verified), and hosts, each with the one source counting it: vercel_drain, edge_middleware or cloudflare. pendingRemovals counts Vercel drains DevTune is still trying to delete for the project. abandonedRemovals lists drains DevTune gave up deleting (Vercel rejected the token, or a week of attempts failed), each with drainId, vercelTeamId and abandonedAt: the drain may still exist in Vercel and must be deleted there by hand. provenance, when present with state unavailable, means DevTune could not check whether some counts come from a source that cannot verify requests, so some counts may be unverified. codingAgents counts answer fetches by Aider, Claude Code, Crush, Gemini CLI, OpenCode and Qwen Code per agent and platform since countedFrom, beside answerFetches, the parent total read with them; compare with that, not botEvents. codingAgents.coverage partial means unattributedAnswerFetches answer fetches in the span could not be attributed, for example Cloudflare pulls; state not_yet_observed means none recorded yet.
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": "devtune_get_traffic_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||