mcp-harness-fme

🧩 Segment tools

Manage rule-based segments and their per-environment definitions, plus classic segments and the change-request approval flow.

FME has two kinds of segments. Rule-based segments are dynamic — membership is computed from rules, exclusions, and matchers — and they have both workspace-level metadata and per-environment definitions, much like feature flags. The classic list_segments tool covers standard (key-list) segments.

All tools take a workspace_id. Discover IDs with the workspace & environment tools.

🏷️ Rule-based segment metadata

list_rule_based_segments

List all rule-based segments in a workspace.

ArgumentTypeDefaultDescription
workspace_idstringThe workspace ID
limitnumber20Number of results to return
offsetnumber0Pagination offset

get_rule_based_segment

Get a rule-based segment's workspace-level metadata by name.

ArgumentTypeDescription
workspace_idstringThe workspace ID
segment_namestringThe segment name

create_rule_based_segment

Create a new rule-based segment in a workspace under a specific traffic type.

ArgumentTypeDescription
workspace_idstringThe workspace ID
traffic_typestringThe traffic type ID or name
namestringThe segment name (unique per workspace)
descriptionstringOptional description

delete_rule_based_segment

Permanently delete a rule-based segment from a workspace. Environment-level configs must be removed separately.

ArgumentTypeDefaultDescription
workspace_idstringThe workspace ID
segment_namestringThe segment name
confirmbooleanfalseMust be true to execute

🎯 Rule-based segment definitions (per environment)

list_rule_based_segment_definitions

List rule-based segment definitions in a specific environment.

ArgumentTypeDescription
workspace_idstringThe workspace ID
environment_idstringThe environment ID or name

enable_rule_based_segment_definition

Enable (activate) a rule-based segment in a specific environment — creates an empty definition that you can then configure via update_rule_based_segment_definition.

ArgumentTypeDescription
workspace_idstringThe workspace ID
environment_idstringThe environment ID or name
segment_namestringThe segment name

update_rule_based_segment_definition

Update a rule-based segment definition in an environment (rules, exclusions, matchers).

ArgumentTypeDescription
workspace_idstringThe workspace ID
environment_idstringThe environment ID or name
segment_namestringThe segment name
definitionstringFull definition as a JSON string — includes rules, excludedKeys, excludedSegments

disable_rule_based_segment_definition

Disable (remove) a rule-based segment from a specific environment. Workspace-level metadata is preserved.

ArgumentTypeDefaultDescription
workspace_idstringThe workspace ID
environment_idstringThe environment ID or name
segment_namestringThe segment name
confirmbooleanfalseMust be true to execute

✅ Change requests

create_rule_based_segment_change_request

Submit a change request for a rule-based segment definition. Supports an approval flow via approvers — useful when your environment requires sign-off before segment changes ship.

ArgumentTypeDescription
workspace_idstringThe workspace ID
environment_idstringThe environment ID or name
titlestringChange request title
operation_typestringChange operation type (e.g. UPDATE)
rule_based_segmentstringThe segment definition to apply as a JSON string
commentstringOptional comment for the change request
approversarrayEmail addresses of approvers

📇 Classic segments

list_segments

List all (standard) segments in a workspace.

ArgumentTypeDefaultDescription
workspace_idstringThe workspace ID
limitnumber20Number of results to return
offsetnumber0Pagination offset

On this page