Connect Segment to AI agents

Connect Segment to Claude, Codex, Cursor, or other AI agents for your entire team. Metorial security, governance, observability, and gives your team a unified Magic MCP url to connect.

Supported Tools

track_event

Track Event

Send a Track event to Segment's Tracking API. Records a user action or event with optional properties. Requires a write key to be configured in authentication.

alias_user

Alias User

Send an Alias call to Segment's Tracking API. Merges two user identities by linking a previousId to a new userId. Useful when an anonymous user signs up and you want to combine their pre- and post-signup activity. Requires a write key.

batch_events

Batch Events

Send a batch of Identify, Track, Page, Screen, Group, or Alias calls in a single request to Segment's Tracking API. More efficient than individual calls for high-volume data import. Requires a write key.

create_regulation

Create Data Regulation

Create a GDPR deletion or suppression request. Submits a regulation to delete or suppress user data across sources or the entire workspace. Can also list existing regulation requests.

list_destinations

List Destinations

List all configured destinations in the Segment workspace. Returns destination details including name, enabled status, source connection, and metadata.

manage_reverse_etl

Manage Reverse ETL Model

Create, update, list, or delete reverse ETL models. Reverse ETL models define SQL queries against your warehouse and sync results back to downstream destinations on a schedule.

get_usage

Get Usage Metrics

Query current Segment monitoring data: daily API call usage, daily monthly tracked users (MTU), destination delivery metrics, and workspace event volume. Useful for monitoring consumption and identifying sources of high event volume.

list_tracking_plans

List Tracking Plans

List all tracking plans in the workspace. Optionally retrieve the rules and connected sources for a specific tracking plan.

manage_function

Manage Function

Create, update, list, or delete custom JavaScript functions. Functions run within Segment's infrastructure and can act as sources, destinations, or insert middleware to transform events.

list_warehouses

List Warehouses

List all data warehouses in the workspace, optionally with connected sources and connection state for a specific warehouse.

manage_transformation

Manage Transformation

Create, update, list, or delete event transformations. Transformations modify events in-flight (rename events, rename properties, add computed properties) before they reach destinations.

manage_destination

Manage Destination

Create, update, or delete a destination in your Segment workspace. Destinations are analytics tools, marketing platforms, or data warehouses where Segment routes collected data. To create a new destination, provide the **sourceId** and **metadataId** (from the catalog). To update or delete, provide the **destinationId**.

manage_tracking_plan

Manage Tracking Plan

Create, update, delete, or connect tracking plans. Tracking plans define expected event schemas and validate incoming data against those schemas. Violations generate when events don't match the spec.

page_screen

Record Page or Screen View

Send a Page or Screen call to Segment's Tracking API. Records a page view (web) or screen view (mobile) with optional properties. Requires a write key.

browse_catalog

Browse Catalog

Browse the Segment integration catalog to discover available source, destination, and warehouse types. Returns metadata IDs needed when creating new sources, destinations, or warehouses.

manage_source

Manage Source

Create, update, or delete a data source in your Segment workspace. Sources represent websites, mobile apps, servers, or cloud services that send data into Segment. To create a new source, provide the **metadataId** (from the catalog) and a **slug**. To update or delete, provide the **sourceId**.

group_user

Group User

Send a Group call to Segment's Tracking API. Associates a user with a group (company, organization, account, team) and records group traits. Requires a write key.

list_sources

List Sources

List all data sources in the Segment workspace. Returns source details including name, slug, enabled status, write keys, and connected destinations/warehouses metadata.

get_source

Get Source

Retrieve detailed information about a specific source, including its connected destinations and warehouses.

identify_user

Identify User

Send an Identify call to Segment's Tracking API. Ties a user to their traits like email, name, and plan. Requires a write key.

list_audit_events

List Audit Events

List audit trail events for the workspace. Audit events record actions like source creation, destination updates, user invitations, and other workspace changes.

manage_destination_filter

Manage Destination Filter

Create, update, or remove filters on a destination. Destination filters control which events are forwarded, allowing you to drop events, sample a percentage, or strip specific properties before delivery.

manage_warehouse

Manage Warehouse

Create, update, delete, or manage source connections for data warehouses. Warehouses like BigQuery, Snowflake, and Redshift receive synced data from Segment sources.

manage_destination_subscription

Manage Destination Subscription

Create, retrieve, update, list, or remove Segment destination subscriptions. Destination subscriptions configure an Actions destination mapping, including the action to run, trigger condition, enabled state, and mapping settings.

manage_source_write_key

Manage Source Write Key

Create or remove Segment source write keys. Use this to rotate Tracking API credentials for a source without recreating the source.

More integrations teams use with Segment

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Subscribe to webhooks for list and library change notifications. Retrieve site properties and search for sites across Microsoft 365.

Hubspot

Create, read, update, and delete CRM objects including contacts, companies, deals, tickets, and custom objects. Manage associations between CRM records. Track engagements such as calls, emails, meetings, notes, and tasks. Send transactional and marketing emails, manage campaigns, and handle subscription preferences. Build and manage marketing workflows, sequences, and automation actions. Manage CMS content including blog posts, landing pages, and HubDB tables. Handle commerce data including products, orders, invoices, quotes, and payments. Create and manage contact lists for segmentation. Configure deal, ticket, and order pipelines with custom stages. Search and filter CRM records. Bulk import and export CRM data. Manage users, teams, and account settings. Subscribe to webhooks for real-time notifications on object creation, deletion, property changes, merges, and association changes.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Apolloio

Search and prospect B2B contacts and companies from a database of over 275 million people and 70 million organizations. Enrich people and company data with emails, phone numbers, and firmographic details. Create and manage contacts, accounts, deals, and tasks. Add contacts to email sequences and manage sequence statuses. Log and search call records. Perform bulk operations for contact creation, account creation, task creation, and data enrichment.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Technical notes for Segment

Collect, unify, and route customer event data across tools and platforms. Track user actions (identify, track, page, screen, group, alias) via the Tracking API. Manage workspace resources including sources, source write keys, destinations, destination subscriptions, warehouses, tracking plans, functions, and reverse ETL models via the Public API. Create and enforce event schemas with tracking plans. Configure destination filters to control event routing. Build audiences and computed traits based on user behavior. Create custom JavaScript functions for source, destination, or middleware logic. Monitor API usage, event volume, event delivery metrics, and monthly tracked users. Handle GDPR deletion and suppression requests. Browse the integration catalog and manage identity, access, and roles for workspace users. Forward events to external webhooks in real time.

Connect Segment to production AI agents

See how Metorial gives Segment access the governance, tracing, and security controls teams need.

Frequently asked questions

Common questions about connecting Segment to AI agents with Metorial.

  1. Can Metorial connect Segment to AI agents?
    Yes. Metorial connects AI agents to Segment through a governed integration layer, so teams can use the provider while keeping access controlled and observable.
  2. Metorial is MCP compatible and lets teams expose approved provider tools to MCP-capable agents and clients through a controlled access layer.
  3. Metorial applies policies across users, groups, providers, agents, and individual tools, then records the context around every agent interaction.
  4. Yes. Metorial records provider activity so teams can inspect tool calls, troubleshoot integrations, and give security teams the visibility they need.