The session-start tool. Call this once before any analytics question so the agent knows the user’s timezone, currency, configured custom event labels, connected ad accounts, and default attribution model / window. Replaces the legacy “data instructions” prompt-stuffing pattern with a single, cacheable, ~1 KB call.Documentation Index
Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
Use this file to discover all available pages before exploring further.
When to use
- At the start of every chat session before any analytics question.
- Whenever the user references a custom event by name (“deals”, “lead magnet”) and you need the slot map.
- To check the default attribution model before running
query_ad_metrics.
search_workspace. For tracking-health diagnostics, use get_space_health.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
format | string | No | json (default), csv, or yaml. Single-object payload — CSV flattens to key/value rows. |
Output shape
ai_credit_balance reflects the team’s ai_credits column (shared across every space on the team). default_attribution_model / default_attribution_window surface Cometly’s product defaults — they aren’t currently persisted per-space.
Caveats
- The
ai_credit_balancefield reflects the team-level balance at request time. Don’t recommendanalyze_report(or other credit-charging tools) when the balance is at zero. last_synced_atis best-effort — different ad platforms expose different timestamp columns. Useget_space_healthfor the canonical freshness check.