Skip to main content

How the tools are named

Every tool is traceten_<resource>_<action> and maps one to one onto a documented REST endpoint, with the same arguments, the same validation and the same permissions. Anything you can do through a tool you can do with curl, and the reverse. Your assistant sees a full description of each tool, including the traps that change the answer. This page is the map.

Reading the table

  • Permission is the API key permission the call needs. A key without it gets a clear error naming what is missing, rather than a silent empty result.
  • (confirm) marks a tool that returns a preview and changes nothing until you approve it. See Safety and permissions.
  • traceten_sites_create needs three permissions because it mints a key, and a key can never create one more capable than itself. stats:read and ingest:write are what the new key will carry, so the caller has to hold them already. This is not a reason to over-provision your other keys.
  • Every site-scoped tool takes site_id (or siteId) as the ttid_ snippet key from traceten_sites_list, not the UUID in your dashboard URL.

Two distinctions worth knowing before you read a number

ai_source is not source_kind. ai_source names which assistant sent the traffic (ChatGPT, Claude, Perplexity, Gemini, Copilot, Grok). source_kind names the category of traffic (ai, non_ai, unknown, and on the revenue side a fourth value, unmatched). They are different axes over overlapping populations. Adding a figure from one to a figure from the other double counts. A session is not a person. A session is one visit, and it ends after 30 minutes of inactivity. A returning customer is many sessions and one visitor, so a session count is never a headcount.

The tools

Stats

AI attribution

AI crawlers

Answer-engine visibility

traceten_visibility_runs returns answer text written by third-party AI engines. That text can name people and companies other than you. It carries no visitor identifier and describes nobody who visited your site, but it is the one visibility tool whose output is prose rather than counts. See Safety and permissions.

What gets measured

These tools change the measurement itself, not just settings. The prompt list is the denominator of every rate in the table above: adding a question you rank badly for lowers your presence rate, and removing one raises it, without anything changing on your site. Three things worth knowing before you let an assistant use these:
  • A prompt’s wording can never be edited. Past runs record only the prompt’s id, so changing the text would rewrite what your history claims was asked. traceten_prompts_replace archives the old question and returns a new one with a new id, starting a new series.
  • Suggestions are never enrolled automatically. traceten_prompts_suggest returns candidates and saves nothing. You create the ones you want. The prompt list decides your score, so Traceten does not get to pick it.
  • traceten_prompts_suggest needs config:write even though it saves nothing, because it makes Traceten fetch your site: at most 8 pages, 12 requests and 15 seconds, every request pinned to your own host, honouring your robots.txt. Your site must already have received tracking events, or it returns 409 site_not_verified and fetches nothing. No AI provider is involved; the candidates are templates filled with your own page wording, copied verbatim, so read them before you create them.

Revenue

Breakdowns

Sessions

For what a visit actually did, and for the person behind it, go through the Visitors tools. traceten_visitors_timeline returns the events inside each of a person’s visits, and traceten_visitors_get returns the person.

Goals

Funnels

Visitors

One row per person rather than per visit. Use these when the question counts people, and the Sessions tools when it counts visits. traceten_visitors_timeline pages by visit, not by event: page_size counts visits and one page of 10 can carry several hundred events. It returns two date ranges, and they are different. meta.effective_window is the range you asked for, clamped to how long a session record is kept. history_window is the range the visits are drawn from, bounded by how long raw events are kept, and it is usually wider. Rows carry an opaque handle, not a visitor identifier. A handle is stable, so an assistant can cache it and come back to it, and it is scoped to one site, so the same person on another of your sites has a different one and this one returns 404 there. It is not reversible by you and carries no name, email address or IP address.

Chart notes

Notes your team pins to UTC days on a site’s traffic chart. They are shared with everyone in the organization. Note text is written by people, so the tools return it wrapped as { "untrusted_text": … }, and your assistant is told to treat it as data, never as instructions. The assistant’s vendor receives the text it reads. Member ids are never returned; created_via says whether a note came from the dashboard, an API key or an AI assistant.

Sites

Account and keys

Webhooks

Integrations and team

Tools that deliberately do not exist

  • No lookup by identity. traceten_visitors_list filters people by dimensions you already report on: source, campaign, landing page, country, city, device, browser. No tool accepts a name, an email address, an IP address or a visitor identifier as an input, because none of those is stored in a form any tool could match. A handle addresses a visitor an assistant has already listed; it is not a search term.
  • No cross-site view of a person. Every tool is scoped to one site, and a handle from one site means nothing on another. Traceten holds no key that links a person’s activity across two customers.
  • No event write or delete. Recording events belongs to the server SDKs; erasure belongs to the data deletion API, which needs its own permission.
  • No site deletion. Deleting a property destroys its history. That stays in the dashboard, behind a typed confirmation.
  • No integration connect or disconnect. Connecting pastes a secret and follows a browser redirect, neither of which an assistant can do safely.
  • No team changes. Membership and roles live in your identity provider.
  • No regions breakdown. Traceten records country and city, and holds no region field, so there is nothing to report.

Next