View as Markdown
Eppo icon

Eppo ACTION

Create Feature Flag

Create a new feature flag in Eppo with a unique key, display name, entity ID, variations, and optional tags. Use this when the user wants to add a new feature flag. The key must be a unique URL-safe slug (e.g. my-new-feature). Duplicate keys are rejected by the API. IMPORTANT: Each variation requires variant_key (unique slug) and type (must be STRING, INTEGER, or JSON — uppercase). Do NOT use key or value fields. Example: [{"variant_key": "on", "type": "STRING", "name": "On"}, {"variant_key": "off", "type": "STRING", "name": "Off"}]. Use List Feature Flags to verify the flag was created. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Eppo account once, then configure and run Create Feature Flag from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "eppo-create-feature-flag",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    eppo: { authProvisionId: "apn_xxxxxxx" },
    key: "Key",
    name: "Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Feature Flag inputs
Property Type Description
key Key string
A unique URL-safe slug for the flag (e.g. my-new-feature). Must be unique across all flags.
Required
name Name string
A human-readable display name for the flag.
Required
variations Variations string
JSON array of variation objects. Each requires variant_key (unique slug) and type (uppercase: STRING, INTEGER, or JSON). Do NOT use key or value fields — use variant_key and type. Optionally include name. Example: [{"variant_key": "on", "type": "STRING", "name": "On"}, {"variant_key": "off", "type": "STRING", "name": "Off"}].
Required
entityId Entity ID integer
The numeric entity type ID this metric measures (e.g. user, session). Use List Metrics to find the entity_id from any existing metric — all metrics in the same workspace typically share the same entity ID.
Required
tagNames Tag Names string[]
The names of the tags to add to the flag. Example: ["growth", "checkout"].
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
eppo-create-feature-flag
Version
0.0.2
App
Eppo
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes