Segment MCP Server for Cloudflare Workers
Test Segment tools directly in your browser. Select a tool and provide inputs to see the results.
Create a free account to test Segment tools interactively. No credit card required.
segment_list_usersList all users in the workspace. Args: - count: Number of users to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of users.
segment_get_userGet details for a specific user. Args: - userId: The user ID (required) Returns: User details.
segment_delete_usersDelete users from the workspace. WARNING: This action is irreversible. Args: - userIds: Array of user IDs to delete (required) Returns: Confirmation of deletion.
segment_list_user_groupsList all user groups in the workspace. Args: - count: Number of groups to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of user groups.
segment_get_user_groupGet details for a specific user group. Args: - groupId: The group ID (required) Returns: User group details.
segment_create_user_groupCreate a new user group. Args: - name: Group name (required) Returns: The created user group.
segment_update_user_groupUpdate a user group. Args: - groupId: The group ID (required) - name: New group name (required) Returns: The updated user group.
segment_delete_user_groupDelete a user group. WARNING: This action is irreversible. Args: - groupId: The group ID (required) Returns: Confirmation of deletion.
segment_add_users_to_user_groupAdd users to a user group. Args: - groupId: The group ID (required) - emails: Array of user emails to add (required) Returns: Confirmation of addition.
segment_remove_users_from_user_groupRemove users from a user group. Args: - groupId: The group ID (required) - emails: Array of user emails to remove (required) Returns: Confirmation of removal.
segment_list_invitesList all pending invites. Args: - count: Number of invites to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of invites.
segment_create_invitesSend invites to new users. Args: - emails: Array of email addresses to invite (required) Returns: Confirmation of invites sent.
segment_delete_invitesCancel pending invites. Args: - emails: Array of email addresses to cancel (required) Returns: Confirmation of invites cancelled.
segment_list_labelsList all labels in the workspace. Labels are used to organize and filter resources. Args: - count: Number of labels to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of labels.
segment_create_labelCreate a new label. Args: - key: Label key (required) - value: Label value (required) - description: Label description Returns: The created label.
segment_delete_labelDelete a label. WARNING: This action is irreversible. Args: - key: Label key (required) - value: Label value (required) Returns: Confirmation of deletion.
segment_list_regulations_from_sourceList regulations (deletion/suppression requests) for a source. Args: - sourceId: The source ID (required) - count: Number to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of regulations.
segment_create_source_regulationCreate a regulation (deletion/suppression request) for a source. Use this for GDPR/CCPA compliance to delete or suppress user data. Args: - sourceId: The source ID (required) - regulationType: Type of regulation (DELETE, SUPPRESS, etc.) - subjectType: Type of subject (USER_ID, etc.) - subjectIds: Array of subject IDs to regulate Returns: The created regulation.
segment_get_regulationGet details for a regulation. Args: - regulationId: The regulation ID (required) Returns: Regulation details including status.
segment_delete_regulationDelete a regulation request. Args: - regulationId: The regulation ID (required) Returns: Confirmation of deletion.
segment_list_audit_eventsList audit events for the workspace. Audit events track changes made to workspace resources. Args: - count: Number to return (default: 20) - cursor: Pagination cursor - resourceId: Filter by resource ID - resourceType: Filter by resource type - format: Response format ('json' or 'markdown') Returns: Paginated list of audit events.
segment_get_workspaceGet details for the current workspace. Returns: Workspace details including ID, name, and slug.
segment_get_sources_catalogBrowse the sources catalog. Lists all available source types that can be created. Args: - count: Number of sources to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of source types.
segment_get_source_metadataGet metadata for a source type. Args: - sourceMetadataId: The source metadata ID (required) Returns: Source type metadata including description, logos, and categories.
segment_get_destinations_catalogBrowse the destinations catalog. Lists all available destination types that can be created. Args: - count: Number of destinations to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of destination types.
segment_get_destination_metadataGet metadata for a destination type. Args: - destinationMetadataId: The destination metadata ID (required) Returns: Destination type metadata including description, supported methods, and actions.
segment_get_warehouses_catalogBrowse the warehouses catalog. Lists all available warehouse types (Snowflake, BigQuery, Redshift, etc.). Args: - count: Number of warehouses to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of warehouse types.
segment_get_warehouse_metadataGet metadata for a warehouse type. Args: - warehouseMetadataId: The warehouse metadata ID (required) Returns: Warehouse type metadata including description and logos.
segment_list_destinationsList all destinations in the workspace. Returns a paginated list of destinations configured in your workspace. Args: - count: Number of destinations to return (default: 20) - cursor: Pagination cursor from previous response - format: Response format ('json' or 'markdown') Returns: Paginated list of destinations with their IDs, names, types, and enabled status.
segment_get_destinationGet details for a specific destination. Args: - destinationId: The destination ID (required) - format: Response format ('json' or 'markdown') Returns: Destination details including settings, metadata, and configuration.
segment_create_destinationCreate a new destination connected to a source. Args: - sourceId: The source ID to connect (required) - metadataId: The destination catalog ID (use segment_get_destinations_catalog) - name: Display name for the destination (required) - settings: Destination-specific settings - enabled: Whether the destination is enabled (default: true) Returns: The created destination object.
segment_update_destinationUpdate an existing destination. Args: - destinationId: The destination ID to update (required) - name: New display name - enabled: Enable or disable the destination - settings: Updated destination-specific settings Returns: The updated destination object.
segment_delete_destinationDelete a destination. WARNING: This action is irreversible. Args: - destinationId: The destination ID to delete (required) Returns: Confirmation of deletion.
segment_list_destination_subscriptionsList subscriptions for a destination. Subscriptions define which events are sent to an Actions destination. Args: - destinationId: The destination ID (required) - format: Response format ('json' or 'markdown') Returns: List of subscriptions for the destination.
segment_get_destination_subscriptionGet a specific subscription for a destination. Args: - destinationId: The destination ID (required) - subscriptionId: The subscription ID (required) Returns: The subscription details.
segment_create_destination_subscriptionCreate a subscription for a destination. Args: - destinationId: The destination ID (required) - name: Subscription name (required) - actionId: The action ID (required) - trigger: FQL trigger expression (required) - enabled: Whether enabled (default: true) - settings: Action-specific settings Returns: The created subscription.
segment_update_destination_subscriptionUpdate a destination subscription. Args: - destinationId: The destination ID (required) - subscriptionId: The subscription ID (required) - name: New name - enabled: Enable or disable - trigger: New FQL trigger expression - settings: Updated settings Returns: The updated subscription.
segment_delete_destination_subscriptionDelete a destination subscription. Args: - destinationId: The destination ID (required) - subscriptionId: The subscription ID (required) Returns: Confirmation of deletion.
segment_list_destination_filtersList filters for a destination. Filters control which events are sent to a destination. Args: - destinationId: The destination ID (required) - format: Response format ('json' or 'markdown') Returns: List of filters for the destination.
segment_create_destination_filterCreate a filter for a destination. Filters can drop events, sample events, or modify properties. Args: - sourceId: The source ID (required) - destinationId: The destination ID (required) - title: Filter title (required) - ifClause: FQL condition expression (required) - actions: Array of filter actions (required) - enabled: Whether enabled (default: true) - description: Filter description Returns: The created filter.
segment_update_destination_filterUpdate a destination filter. Args: - destinationId: The destination ID (required) - filterId: The filter ID (required) - title: New title - ifClause: New FQL condition - actions: New filter actions - enabled: Enable or disable - description: New description Returns: The updated filter.
segment_delete_destination_filterDelete a destination filter. Args: - destinationId: The destination ID (required) - filterId: The filter ID (required) Returns: Confirmation of deletion.
segment_list_spacesList all Engage spaces in the workspace. Spaces are Engage workspaces that contain audiences and computed traits. Args: - count: Number of spaces to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of spaces.
segment_get_spaceGet details for a specific Engage space. Args: - spaceId: The space ID (required) Returns: Space details.
segment_list_audiencesList all audiences in an Engage space. Audiences are dynamic groups of users based on conditions. Args: - spaceId: The space ID (required) - count: Number of audiences to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of audiences.
segment_get_audienceGet details for a specific audience. Args: - spaceId: The space ID (required) - audienceId: The audience ID (required) - format: Response format ('json' or 'markdown') Returns: Audience details including definition and status.
segment_deploy_functionDeploy a function to make it available for use. Args: - functionId: The function ID (required) Returns: The deployed function.
segment_create_audienceCreate a new audience in an Engage space. Args: - spaceId: The space ID (required) - name: Audience name (required) - definition: Audience definition with query and type - description: Description - enabled: Whether enabled (default: true) Returns: The created audience.
segment_update_audienceUpdate an existing audience. Args: - spaceId: The space ID (required) - audienceId: The audience ID (required) - name: New name - definition: New definition - description: New description - enabled: Enable or disable Returns: The updated audience.
segment_delete_audienceDelete an audience. WARNING: This action is irreversible. Args: - spaceId: The space ID (required) - audienceId: The audience ID (required) Returns: Confirmation of deletion.
segment_list_computed_traitsList all computed traits in an Engage space. Computed traits are dynamically calculated user properties. Args: - spaceId: The space ID (required) - count: Number of traits to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of computed traits.
segment_get_computed_traitGet details for a specific computed trait. Args: - spaceId: The space ID (required) - traitId: The computed trait ID (required) - format: Response format ('json' or 'markdown') Returns: Computed trait details.
segment_create_computed_traitCreate a new computed trait. Args: - spaceId: The space ID (required) - name: Trait name (required) - definition: Trait definition with query and type - description: Description - enabled: Whether enabled (default: true) Returns: The created computed trait.
segment_update_computed_traitUpdate an existing computed trait. Args: - spaceId: The space ID (required) - traitId: The computed trait ID (required) - name: New name - definition: New definition - description: New description - enabled: Enable or disable Returns: The updated computed trait.
segment_delete_computed_traitDelete a computed trait. WARNING: This action is irreversible. Args: - spaceId: The space ID (required) - traitId: The computed trait ID (required) Returns: Confirmation of deletion.
segment_list_functionsList all functions in the workspace. Functions are custom JavaScript code that can transform or filter data. Args: - count: Number of functions to return (default: 20) - cursor: Pagination cursor from previous response - resourceType: Filter by type (DESTINATION, INSERT_DESTINATION, SOURCE) - format: Response format ('json' or 'markdown') Returns: Paginated list of functions.
segment_get_functionGet details for a specific function. Args: - functionId: The function ID (required) - format: Response format ('json' or 'markdown') Returns: Function details including code, settings, and deployment status.
segment_create_functionCreate a new function. Args: - displayName: The function display name (required) - code: JavaScript code for the function (required) - resourceType: Type of function (DESTINATION, INSERT_DESTINATION, SOURCE) - description: Description of the function - settings: Array of setting definitions Returns: The created function.
segment_update_functionUpdate an existing function. Args: - functionId: The function ID (required) - displayName: New display name - code: New JavaScript code - description: New description - settings: Updated setting definitions Returns: The updated function.
segment_delete_functionDelete a function. WARNING: This action is irreversible. Args: - functionId: The function ID (required) Returns: Confirmation of deletion.
segment_list_reverse_etl_modelsList all Reverse ETL models. Reverse ETL models sync data from warehouses back to destinations. Args: - count: Number of models to return (default: 20) - cursor: Pagination cursor - format: Response format ('json' or 'markdown') Returns: Paginated list of Reverse ETL models.
segment_get_reverse_etl_modelGet details for a specific Reverse ETL model. Args: - modelId: The model ID (required) - format: Response format ('json' or 'markdown') Returns: Reverse ETL model details including query and schedule.
segment_list_connected_destinations_from_sourceList all destinations connected to a source. Args: - sourceId: The source ID (required) - format: Response format ('json' or 'markdown') Returns: List of destinations connected to the source.
segment_create_reverse_etl_modelCreate a new Reverse ETL model. Args: - sourceId: The warehouse source ID (required) - name: Model name (required) - query: SQL query to extract data (required) - queryIdentifierColumn: Column to use as unique identifier (required) - description: Model description - enabled: Whether enabled (default: true) - scheduleStrategy: Schedule strategy (e.g., 'PERIODIC') - scheduleConfig: Schedule configuration (e.g., { intervalMinutes: 60 }) Returns: The created Reverse ETL model.
segment_update_reverse_etl_modelUpdate a Reverse ETL model. Args: - modelId: The model ID (required) - name: New name - query: New SQL query - description: New description - enabled: Enable or disable - scheduleStrategy: New schedule strategy - scheduleConfig: New schedule configuration Returns: The updated Reverse ETL model.
segment_delete_reverse_etl_modelDelete a Reverse ETL model. WARNING: This action is irreversible. Args: - modelId: The model ID (required) Returns: Confirmation of deletion.
segment_trigger_reverse_etl_syncManually trigger a Reverse ETL sync. Args: - modelId: The model ID (required) - subscriptionId: The subscription ID (required) Returns: Confirmation that sync was triggered.
segment_list_sourcesList all sources in the workspace. Returns a paginated list of sources. Use the cursor from the response to fetch the next page. Args: - count: Number of sources to return (default: 20) - cursor: Pagination cursor from previous response - format: Response format ('json' or 'markdown') Returns: Paginated list of sources with their IDs, names, slugs, and enabled status.
segment_get_sourceGet details for a specific source. Args: - sourceId: The source ID (required) - format: Response format ('json' or 'markdown') Returns: Source details including ID, name, slug, write keys, metadata, and settings.
segment_create_sourceCreate a new source in the workspace. Args: - slug: Unique slug for the source (required) - name: Display name for the source (required) - catalogId: The source catalog ID (use segment_get_sources_catalog to find IDs) Returns: The created source object.
segment_update_sourceUpdate an existing source. Args: - sourceId: The source ID to update (required) - name: New display name - enabled: Enable or disable the source Returns: The updated source object.
segment_delete_sourceDelete a source from the workspace. WARNING: This action is irreversible. All data associated with the source will be deleted. Args: - sourceId: The source ID to delete (required) Returns: Confirmation of deletion.
segment_get_source_schema_settingsGet schema settings for a source. Schema settings control how Segment validates tracking data. Args: - sourceId: The source ID (required) Returns: Schema settings including track, identify, and group settings.
segment_update_source_schema_settingsUpdate schema settings for a source. Args: - sourceId: The source ID (required) - settings: Schema settings object Returns: Updated schema settings.
segment_add_labels_to_sourceAdd labels to a source for organization and filtering. Args: - sourceId: The source ID (required) - labels: Array of {key, value} label objects Returns: The updated source object.
segment_list_connected_warehouses_from_sourceList all warehouses connected to a source. Args: - sourceId: The source ID (required) - format: Response format ('json' or 'markdown') Returns: List of warehouses connected to the source.
segment_create_write_key_for_sourceCreate a new write key for a source. Write keys are used to authenticate tracking API requests. Args: - sourceId: The source ID (required) Returns: The new write key.
segment_remove_write_key_from_sourceRemove a write key from a source. WARNING: This will invalidate the write key and any systems using it will stop working. Args: - sourceId: The source ID (required) - writeKey: The write key to remove (required) Returns: Confirmation of removal.
segment_list_tracking_plansList all tracking plans in the workspace. Tracking plans define the expected schema for your tracking data. Args: - count: Number of tracking plans to return (default: 20) - cursor: Pagination cursor from previous response - format: Response format ('json' or 'markdown') Returns: Paginated list of tracking plans.
segment_get_tracking_planGet details for a specific tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - format: Response format ('json' or 'markdown') Returns: Tracking plan details including name, description, and type.
segment_create_tracking_planCreate a new tracking plan. Args: - name: The tracking plan name (required) - type: Type of tracking plan (default: 'LIVE') - description: Description of the tracking plan Returns: The created tracking plan.
segment_update_tracking_planUpdate an existing tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - name: New name - description: New description Returns: The updated tracking plan.
segment_delete_tracking_planDelete a tracking plan. WARNING: This action is irreversible. Args: - trackingPlanId: The tracking plan ID (required) Returns: Confirmation of deletion.
segment_list_tracking_plan_rulesList rules in a tracking plan. Rules define the expected schema for events, traits, and properties. Args: - trackingPlanId: The tracking plan ID (required) - format: Response format ('json' or 'markdown') Returns: List of rules in the tracking plan.
segment_update_tracking_plan_rulesUpdate rules in a tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - rules: Array of rule objects with key, type, and jsonSchema Returns: Confirmation of update.
segment_add_source_to_tracking_planConnect a source to a tracking plan. Once connected, events from the source will be validated against the tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - sourceId: The source ID to connect (required) Returns: Confirmation of connection.
segment_remove_source_from_tracking_planDisconnect a source from a tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - sourceId: The source ID to disconnect (required) Returns: Confirmation of disconnection.
segment_list_sources_from_tracking_planList sources connected to a tracking plan. Args: - trackingPlanId: The tracking plan ID (required) - format: Response format ('json' or 'markdown') Returns: List of sources connected to the tracking plan.
segment_get_transformationGet details for a specific transformation. Args: - transformationId: The transformation ID (required) - format: Response format ('json' or 'markdown') Returns: Transformation details including rules and configuration.
segment_identifyIdentify a user and record their traits. The Identify call lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about them. Args: - userId: The unique ID for the user (required) - traits: Object of user traits (email, name, plan, etc.) - anonymousId: Anonymous ID if userId is not available - context: Additional context (ip, userAgent, etc.) Returns: Confirmation that the identify call was sent.
segment_trackTrack an event that a user has performed. The Track call records actions your users perform. Every action triggers an "event", which can have associated properties. Args: - userId: The unique ID for the user (required) - event: The name of the event (required) - properties: Object of event properties - anonymousId: Anonymous ID if userId is not available - context: Additional context (ip, userAgent, etc.) Returns: Confirmation that the track call was sent.
segment_pageTrack a page view on a website. The Page call lets you record page views on your website, along with optional information about the page being viewed. Args: - userId: The unique ID for the user (required) - name: Name of the page - category: Category of the page - properties: Additional page properties (url, referrer, etc.) - anonymousId: Anonymous ID if userId is not available - context: Additional context Returns: Confirmation that the page call was sent.
segment_screenTrack a screen view in a mobile app. The Screen call lets you record whenever a user sees a screen of your mobile app. Args: - userId: The unique ID for the user (required) - name: Name of the screen - category: Category of the screen - properties: Additional screen properties - anonymousId: Anonymous ID if userId is not available - context: Additional context Returns: Confirmation that the screen call was sent.
segment_groupAssociate a user with a group (company, organization, account, etc.). The Group call lets you associate an identified user with a group. A group could be a company, organization, account, project, or team. Args: - userId: The unique ID for the user (required) - groupId: The unique ID for the group (required) - traits: Group traits (name, industry, employees, etc.) - anonymousId: Anonymous ID if userId is not available - context: Additional context Returns: Confirmation that the group call was sent.
segment_aliasCreate an alias between two user identities. The Alias call lets you merge two user identities. This is useful when a user signs up and you want to merge their anonymous browsing history with their new identity. Args: - userId: The new user ID (required) - previousId: The previous user ID or anonymous ID (required) - context: Additional context Returns: Confirmation that the alias call was sent.
segment_batchSend a batch of tracking events. The Batch call lets you send multiple identify, track, page, screen, group, and alias events in a single request for higher performance. Args: - batch: Array of event objects, each with a "type" field - context: Shared context for all events - integrations: Control which integrations receive the events Returns: Confirmation that the batch was sent.
segment_list_transformationsList all transformations in the workspace. Transformations modify events as they flow through Segment. Args: - count: Number of transformations to return (default: 20) - cursor: Pagination cursor from previous response - format: Response format ('json' or 'markdown') Returns: Paginated list of transformations.
segment_create_transformationCreate a new transformation. Args: - sourceId: The source ID (required) - name: Transformation name (required) - ifClause: FQL condition for when to apply (required) - newEventName: New event name to use - enabled: Whether enabled (default: true) - destinationMetadataId: Apply to specific destination - propertyRenames: Array of {oldName, newName} for renaming properties - fqlDefinedProperties: Array of {fql, propertyName} for computed properties Returns: The created transformation.
segment_update_transformationUpdate an existing transformation. Args: - transformationId: The transformation ID (required) - name: New name - ifClause: New FQL condition - newEventName: New event name - enabled: Enable or disable - propertyRenames: Updated property renames - fqlDefinedProperties: Updated computed properties Returns: The updated transformation.
segment_delete_transformationDelete a transformation. WARNING: This action is irreversible. Args: - transformationId: The transformation ID (required) Returns: Confirmation of deletion.
segment_list_warehousesList all warehouses in the workspace. Returns a paginated list of data warehouses (Snowflake, BigQuery, Redshift, etc.). Args: - count: Number of warehouses to return (default: 20) - cursor: Pagination cursor from previous response - format: Response format ('json' or 'markdown') Returns: Paginated list of warehouses with their IDs, names, types, and enabled status.
segment_get_warehouseGet details for a specific warehouse. Args: - warehouseId: The warehouse ID (required) - format: Response format ('json' or 'markdown') Returns: Warehouse details including settings, metadata, and connection info.
segment_create_warehouseCreate a new warehouse. Args: - metadataId: The warehouse catalog ID (use segment_get_warehouses_catalog) - settings: Warehouse-specific settings (credentials, database, schema, etc.) - name: Display name for the warehouse - enabled: Whether the warehouse is enabled (default: true) Returns: The created warehouse object.
segment_update_warehouseUpdate an existing warehouse. Args: - warehouseId: The warehouse ID to update (required) - name: New display name - enabled: Enable or disable the warehouse - settings: Updated warehouse-specific settings Returns: The updated warehouse object.
segment_delete_warehouseDelete a warehouse. WARNING: This action is irreversible. Args: - warehouseId: The warehouse ID to delete (required) Returns: Confirmation of deletion.
segment_add_source_connection_to_warehouseConnect a source to a warehouse. This enables data from the source to be synced to the warehouse. Args: - warehouseId: The warehouse ID (required) - sourceId: The source ID to connect (required) Returns: Confirmation of connection.
segment_remove_source_connection_from_warehouseDisconnect a source from a warehouse. Args: - warehouseId: The warehouse ID (required) - sourceId: The source ID to disconnect (required) Returns: Confirmation of disconnection.
segment_list_connected_sources_from_warehouseList all sources connected to a warehouse. Args: - warehouseId: The warehouse ID (required) - format: Response format ('json' or 'markdown') Returns: List of sources connected to the warehouse.
segment_list_users{
"count": true,
"cursor": "example_cursor",
"format": "example_format"
}segment_get_user{
"userId": "example_userId"
}segment_delete_users{
"userIds": true
}