record_ad_performance
Records ad performance data (spend, clicks, impressions) for a specific date. Supports creating ad campaigns, ad sets, and individual ads inline along with the performance data.
If the ad and date combination already exists, the existing performance data will be updated.
Ad hierarchies (Campaign → Ad Set → Ad) can be created in a single call.
Spend amounts are in **cents**.
get_customer_journey
Retrieves the full customer journey for contacts within a report, including page view events, tags, orders, subscriptions, and list memberships.
Provides detailed attribution data such as UTM parameters, referrer URLs, ad IDs, and geographic information for each touchpoint.
Use the **extend** parameter to include additional data dimensions.
manage_tags
Adds or removes tags from a contact in SegMetrics. Tags can be specified as tag IDs, tag names, or full tag objects with id, name, and date.
Use this to sync segmentation or lifecycle stage data from external systems.
upsert_product
Creates a new product or updates an existing one in a SegMetrics integration. Products are referenced by invoices and subscriptions. If the product ID already exists, the product will be updated.
upsert_subscription
Creates a new subscription or updates an existing one for a contact in SegMetrics. If the subscription ID already exists, it will be updated.
Adding a subscription does **not** automatically create an associated order — that must be done separately using the Create or Update Order tool.
All monetary amounts are specified in **cents**.
delete_contact
Permanently deletes a contact from a SegMetrics integration. This action **cannot be undone**.
Associated invoices and purchases are **not** deleted.
If an email address is used, all contacts in the integration with that email will be deleted.
upsert_order
Creates a new order (invoice) or updates an existing one for a contact in SegMetrics. If the order ID already exists, it will be updated.
Each order includes line items with product details. If a product referenced in a line item doesn't exist, it is automatically created.
All monetary amounts are specified in **cents** (e.g., 4999 = $49.99).
delete_subscription
Permanently deletes a subscription from a SegMetrics integration. This action **cannot be undone**.
upsert_contact
Creates a new contact or updates an existing one in a SegMetrics integration. Contacts are matched by **contact_id** (priority) or **email**.
Supports setting name, status, UTM parameters, geographic data, custom fields, and tags.
When updating custom fields, values are appended to existing data — set a value to `null` to remove it.
When tags are provided here, they **replace** existing tags. Use the dedicated tag tools to add/remove tags incrementally.
identify_visitor
Identifies a website visitor by connecting a SegMetrics session UID to a contact email address or external contact ID. This is the server-side equivalent of the JavaScript `identify` command.
Useful for identifying contacts from webhooks or backend systems without the JavaScript snippet.
The session UID is available in the browser via `_segs.data.uid`.
get_contact
Retrieves the full customer journey and details for a single contact from SegMetrics.
Returns contact information including name, email, status, custom fields, and optionally their events, tags, orders, subscriptions, and list memberships.
delete_order
Permanently deletes an order (invoice) from a SegMetrics integration. This action **cannot be undone**.
get_report
Retrieves report data from SegMetrics for a report type or saved report. Returns KPIs, graph data (time series), and tabular breakdowns.
Supports four report types: **leads**, **revenue**, **ads**, and **subscriptions**.
The optional report ID corresponds to a saved report created in the SegMetrics UI.
run_report_query
Runs an ad hoc SegMetrics Data Explorer report query and returns its raw fields, rows, totals, and comparison data.