Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Create experiment
LAUNCH_DARKLY_MCP_CREATE_EXPERIMENTCreate a draft experiment on a flag or AgentControl Config. It collects no data until an iteration is explicitly started; return the design for user review before starting. To keep it unstarted, simply do not call a start tool; send only schema properties, with no note or message field. The design (hypothesis, randomizationUnit, metrics, primarySingleMetricKey or primaryFunnelKey, treatments, and flags) goes only inside iteration; the top level rejects these fields, so never repeat hypothesis or primarySingleMetricKey outside iteration. Timestamps in the result are UTC.
Create flag
LAUNCH_DARKLY_MCP_CREATE_FLAGCreate a new feature flag in a project. Defaults to a boolean temporary flag. After creation the flag is off in all environments. Multivariate flags require defaults. If the response has needsTeamMaintainer, the flag was not created: ask the user which of the returned teams should own it, then retry with maintainerTeamKey. Set defaults.offVariation to the index of the value your code falls back to, so the new flag behaves like the code while off and needs no approval to stay that way. defaults.onVariation is the index served when targeting is on. To change them later, call update-off-variation (envs ["*"], fallthroughVariationIndex) and update-flag with updateDefaultVariation for new environments.
Create flag release
LAUNCH_DARKLY_MCP_CREATE_FLAG_RELEASEStart a flag release: release a flag across environments by a flag release plan (kind "plan") or a list of environments (kind "custom"). In an interactive run, confirm the project, the flag, and the plan or each environment's release with the user before you send confirm: true. When you picked the project because the user named none, name it and wait for their reply first. With kind "plan", flagReleasePlanKey names the plan (from get-flag-release-plans; default: true unless the user picks another). Prefer kind "custom" when the project has no flag release plan or none fits the request; otherwise use a plan. With kind "custom", environments lists each environment in release order. Use only immediate and policy environments. An immediate environment is only environmentKey (releaseType is never immediate). releaseType "policy" releases with the environment's default release plan, or the plan environmentReleasePlanKey names. override exists for parity with create-automated-rollout-config, but a flag release does not use it. Never make up stages, percentages, or waits: ask the user. With releaseType "policy", the environment release plan sets how the environment ramps, so tell the user when durations they asked for will not apply. waitBeforeReleaseMillis still delays an environment's start after the previous one completes. A multi-variate flag needs startingVariationId and endingVariationId (variation _ids); a boolean flag omits both (false to true). Send pullRequest (repoFullName as owner/name, and number) for a pull request's release. A webhook environment then waits for a deploy that includes the merge. Without a pull request, it starts on the next deploy signal for that environment. Returns config_id and the release as read back; manage it with the *-automated-rollout-config tools. Report all returned warnings; an environment with one is not a clean release. Examples: - plan, boolean flag, no pull request: {"projectKey":"default","flagKey":"new-checkout","flagReleasePlanKey":"standard","confirm":true} - plan, multi-variate flag: {"projectKey":"default","flagKey":"theme","flagReleasePlanKey":"standard","startingVariationId":"<from _id>","endingVariationId":"<to _id>","confirm":true} - custom, staging immediate, then production by its default release plan: {"projectKey":"default","flagKey":"new-checkout","environments":[{"environmentKey":"staging"},{"environmentKey":"production","releaseType":"policy"}],"confirm":true}
Create flag release plan
LAUNCH_DARKLY_MCP_CREATE_FLAG_RELEASE_PLANCreate a flag release plan, a reusable project-wide template for releasing flags across environments. Does not start a release on a flag; use create-flag-release for that. Beta API. Requires key, name, and environments. A key already in use returns an error; check get-flag-release-plans first. RULES: 1-50 environments, each listed once, in release order. Each environment needs environmentKey and triggerType, plus environmentReleasePlanKey unless isImmediate is true (never both). The environment release plan must already exist in that environment, be complete, and have exactly one phase; find one with get-environment-release-plans. triggerType: flag_eval starts when the flag is first evaluated there, webhook waits for a deploy signal, manual waits for a person, promotion starts when the previous environment finishes. The first environment cannot use promotion. executionMode is sequential: environments release in the listed order. At most 25 applicationKeys. A project holds at most 100 flag release plans and at most one default. One example environments entry per trigger for an environment release plan: - environment release plan, on a CI/CD deploy: {"environmentKey":"staging","triggerType":"webhook","environmentReleasePlanKey":"staging-ramp"} - environment release plan, when a person starts it: {"environmentKey":"production","triggerType":"manual","environmentReleasePlanKey":"prod-guarded"} - environment release plan, after the previous environment finishes: {"environmentKey":"production","triggerType":"promotion","environmentReleasePlanKey":"prod-ramp"} When another plan is already the project's default, do not send default: true: LaunchDarkly rejects the create. Create the plan without default, then set default: true with update-flag-release-plan, which demotes the current default; say so to the user first. Send default: true only when the project has no stored default.
Create graph
LAUNCH_DARKLY_MCP_CREATE_GRAPHAdd a chart to an existing dashboard. Set type to "Line chart", "Bar chart", "Table", or "Heatmap"; a bar chart's display is Stacked or Grouped; productType is capitalized: Logs, Traces, Errors, Sessions, Metrics, or Events; Count takes column "". Before adding one, discover dimensions with get-keys and confirm data with the query tools or preview-graph. For a ratio such as an error rate, define metricSeries A and B and a formula like A / B * 100. To copy an existing graph, with its series, formulas, and display settings, onto dashboardId, set cloneFrom; the other fields then become optional overrides, and the title defaults to "<title> (copy)". For a user journey (did X, then Y), set type "Funnel chart" with funnelSteps on PAEvents, Logs, or Traces; expressions and bucketing are not needed. Set groupBy to whose journey it follows, e.g. ["member"] to follow each member or ["user"] each user; omitted, it follows each session. Check the steps with query-funnel first. Charts land three across; the observability/dashboard-layout skill guide plans rows. bucketInterval in seconds gives one point per period, any range: 3600 hourly, 86400 daily, 604800 weekly; bucketCount fixes the count.
Create metric
LAUNCH_DARKLY_MCP_CREATE_METRICCreate a custom, pageview, click, or trace metric. To count each unit's distinct values of a warehouse column, set measureType distinct and name the column in unitAggregationField; valueColumn is only for measureType value. maintainerId sets the maintaining member. eventDefault.value is the number imputed for units that sent no event. This must be 0, and it applies only when disabled=false. When disabled=true, value is not sent. excludeUnitsWithoutEvents still sends eventDefault disabled true with no value. eventKey is the event the metric measures, also for a warehouse metric with dataSourceKey (purchase events: purchase). unit is the display unit, such as USD; valueColumn is the warehouse column that holds the value. Timestamps in the result are UTC.
Create metric data source
LAUNCH_DARKLY_MCP_CREATE_METRIC_DATA_SOURCECreate a warehouse-native metric data source that maps a SQL query, table, or view in a connected warehouse to metric events. Give sqlQuery, or tableName or viewName with columns. With sqlQuery and no columns, the columns come from previewing the query. sqlQuery must be a single SELECT or WITH statement. Mappings that name a column the source does not return are rejected before saving, with the list of its columns. contexts maps each context kind to the column holding its key, such as {"user": "USER_ID"}; each kind must be a randomization unit in the project. Event keys are discovered asynchronously after creation: check them with get-metric-events, then create the metric with create-metric and this dataSourceKey.
Create playground
LAUNCH_DARKLY_MCP_CREATE_PLAYGROUNDCreate a new LLM playground. A playground lets you compare AgentControl Config variations side-by-side. Provide a name and variants — each variant references an evaluation definition (by evaluationId) and a zero-based display position: the first variant is 0, the second 1. Timestamps in the result are UTC.
Create project
LAUNCH_DARKLY_MCP_CREATE_PROJECTCreate a new LaunchDarkly project. Returns the project with its environments, including each environment's client-side ID and mobile key. Does not return server-side SDK keys; use get-sdk-key. Project keys must be lowercase with hyphens, starting with a letter. Production and Test environments are created by default.
Create prompt snippet
LAUNCH_DARKLY_MCP_CREATE_PROMPT_SNIPPETCreate a reusable prompt snippet. Not for a snippet the user defines while creating an evaluation: create-evaluation takes it inline in promptSnippets. Timestamps in the result are UTC.
Create segment
LAUNCH_DARKLY_MCP_CREATE_SEGMENTCreate a new segment in a project environment. The segment is empty after creation; use update-segment-rules or update-segment-targets to configure it. Segment keys are immutable.
Create trace annotation
LAUNCH_DARKLY_MCP_CREATE_TRACE_ANNOTATIONSave a review (annotation) on one span of a trace that has none: correctness, explanation, or expectedOutputOverride; give at least one. Requires confirm=true. traceId, spanId, and timestamps come from search-traces and get-trace (observability toolset). spanTimestamp needs a UTC offset; any time within an hour of the span works. If the span has a review, use update-trace-annotation. To add the span to a dataset, call create-trace-promotion next.
Create trace promotion
LAUNCH_DARKLY_MCP_CREATE_TRACE_PROMOTIONAdd one span of a trace, or the whole trace, to an offline evaluation dataset as a new row. With spanId, the span's review is applied (expectedOutputOverride becomes the expected output); without it, none is. traceId, spanId, and timestamps come from search-traces and get-trace (observability toolset). datasetId comes from get-datasets. timestamp needs a UTC offset; any time within an hour works. Returns a jobId right away; poll get-trace-promotions until it is completed or failed. Don't start it again while it runs.
Create view
LAUNCH_DARKLY_MCP_CREATE_VIEWCreate a new view in a project. Views are an Enterprise feature. The view is empty after creation — use link-view-resources to link flags, segments, or AgentControl Configs to it, or pass viewKeys when creating those resources. The key is converted to lowercase by the API, so use the lowercase form to reference the view afterward. MAINTAINER: set maintainerTeamKey or maintainerId to assign an owner; only one of the two can be specified. Prefer maintainerTeamKey when a suitable team exists. Timestamps in the result are UTC.
Delete agent config
LAUNCH_DARKLY_MCP_DELETE_AGENT_CONFIGPermanently delete an AgentControl Config (resource=config) or one of its variations (resource=variation, with variationKey). Requires confirm=true.
Delete agent graph
LAUNCH_DARKLY_MCP_DELETE_AGENT_GRAPHPermanently delete an AgentControl graph. Requires confirm=true.
Delete agent skill
LAUNCH_DARKLY_MCP_DELETE_AGENT_SKILLPermanently delete an AgentControl agent skill and all of its versions. Requires confirm=true. LaunchDarkly refuses while any variation attaches the skill, including through an earlier version of the variation; detach it, or delete those variations.
Delete ai model config
LAUNCH_DARKLY_MCP_DELETE_AI_MODEL_CONFIGPermanently delete a custom AI model config. Requires confirm=true. modelConfigKey is the key, not the id. Global models cannot be deleted; restrict them with update-ai-model-config instead. If the API returns "model config is still in use", move those variations to another modelConfigKey, then retry.
Delete ai tool
LAUNCH_DARKLY_MCP_DELETE_AI_TOOLPermanently delete an AI tool definition. Requires confirm=true.
Delete alert
LAUNCH_DARKLY_MCP_DELETE_ALERTPermanently delete an observability alert. THIS IS IRREVERSIBLE. Requires confirm=true to execute. Use get-alerts first to verify you are deleting the right alert. Takes alertId, the numeric ID of the alert. Returns deleted and alert_id.