Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Create agent config
LAUNCH_DARKLY_MCP_CREATE_AGENT_CONFIGCreate an AgentControl Config or one of its variations. resource is required. configKey always names the config and variationKey and variationName always name a variation. resource=config creates the config (configKey, name, mode); pass variationKey, variationName, modelConfigKey, modelName, and instructions or messages to also create its first variation, optionally with tools and skills, in the same write. For mode judge, evaluationMetricKey and isInverted are required (isInverted: true if a lower metric value is better). maintainerId (member ID) or maintainerTeamKey (team key) sets the maintainer, not both. resource=variation adds variationKey and variationName to configKey, with model and prompts, or clones sourceVariationKey (omitted model, prompts, tools, skills, and judgeConfiguration are copied from it).
Create agent config approval
LAUNCH_DARKLY_MCP_CREATE_AGENT_CONFIG_APPROVALCreate an approval request for an AgentControl Config change without approving it. Each instruction is an AgentControl Config targeting semantic patch object with a kind: enableTargeting or disableTargeting turns targeting on or off, so enabling it is [{"kind":"enableTargeting"}]; rule and target kinds are those of update-agent-config resource=targeting targetingInstructions. Reviewers go in notifyMemberIds and notifyTeamKeys; pass only reviewers the user named and never pick one yourself. A request needs at least one reviewer unless an approval integration such as ServiceNow runs the review, which takes no LaunchDarkly reviewers; pass its form fields in integrationConfig instead. Without env, the request covers every environment and LaunchDarkly applies the project's strictest approval settings. If the tool rejects the reviewers, ask the user who should review and call it again. A person approves or declines the request in LaunchDarkly. The response includes approvalRequest.url. Check the outcome with get-agent-config-approvals and the request's id.
Create agent graph
LAUNCH_DARKLY_MCP_CREATE_AGENT_GRAPHCreate an AgentControl graph for a multi-agent workflow. Timestamps in the result are UTC.
Create agent skill
LAUNCH_DARKLY_MCP_CREATE_AGENT_SKILLCreate an AgentControl agent skill from SKILL.md markdown. It starts at version 1. Set maintainerId or maintainerTeamKey, not both. Attach it with create-agent-config or update-agent-config resource=variation by passing skills: [{key, version}].
Create ai model config
LAUNCH_DARKLY_MCP_CREATE_AI_MODEL_CONFIGCreate a custom AI model config for a model that is not in the global catalog. Search get-ai-model-configs first, and use a global model if one exists. key uses letters, numbers, ., _, and - (for example gpt-image-2-custom). id is the provider's model ID (for example gpt-image-2). provider matches the key's prefix, if any (for example OpenAI). Costs are USD per token (for example 0.000005). params and customParams are JSON objects (for example {"temperature": 0.7}). maintainerId and maintainerTeamKey are not applied on create; set one of them with update-ai-model-config. Next, pass key as modelConfigKey and id as modelName when creating an AgentControl Config variation.
Create ai tool
LAUNCH_DARKLY_MCP_CREATE_AI_TOOLCreate an AI tool definition using raw JSON Schema. customParameters is application metadata that is not sent to the model.
Create alert
LAUNCH_DARKLY_MCP_CREATE_ALERTCreate an observability alert that fires when an aggregated metric crosses a threshold. Every functionType except Count needs functionColumn: duration for trace latency, value for metrics. Before creating one, check get-alerts for a similar alert, discover dimensions with get-keys, and confirm data and a sensible threshold with search-aggregations. Sessions alerts need sessionsAlertMode. Returns alert_created, alert_id, alert_url, and notes when the product-type rules overrode an input.
Create approval request
LAUNCH_DARKLY_MCP_CREATE_APPROVAL_REQUESTCreate an approval request for a flag or segment change without approving it. Pass flagKey for a flag or segmentKey for a segment, never both. Each instruction is a semantic patch object with a kind. Flag kinds include turnFlagOn, turnFlagOff, updateOffVariation or updateFallthroughVariationOrRollout with a variationId, addRule, addTargets or addPrerequisite; turning the flag on is [{"kind":"turnFlagOn"}]. To add or remove values on an existing rule clause, use addValuesToClause or removeValuesFromClause with ruleId, clauseId (the `_id` values from get-flags with flagKey) and values, or updateClause with ruleId, clauseId and clause; never removeClauses and addClauses to change a clause's values. Segment kinds are those of update-segment-rules and update-segment-targets, such as addRule or addIncludedTargets with contextKind and values. Reviewers go in notifyMemberIds and notifyTeamKeys; pass only reviewers the user named and never pick one yourself. Whether a reviewer is required depends on the environment, so this tool checks for you: a flag needs one when its environment requires approval for it, and a segment always does, unless an approval integration such as ServiceNow runs the review. An integration takes no LaunchDarkly reviewers; pass its form fields in integrationConfig instead. When the requester cannot review their own requests, the requester cannot be a reviewer. If the tool rejects the reviewers, ask the user who should review and call it again. A person approves or declines the request in LaunchDarkly. The response includes approvalRequest.url. Then give the user approvalRequest.url and stop: a person has to review it first, so check the outcome later with get-approval-requests and the request's id, not right after creating it. Timestamps in the result are UTC.
Create assignment data source
LAUNCH_DARKLY_MCP_CREATE_ASSIGNMENT_DATA_SOURCECreate a custom assignment data source from a warehouse table, view, or SQL query. LaunchDarkly runs the source against the environment's warehouse integration and rejects it unless columnMappings.columns matches the columns the warehouse returns. Attach it to an experiment through the experiment's assignmentDataSource.
Create automated rollout config
LAUNCH_DARKLY_MCP_CREATE_AUTOMATED_ROLLOUT_CONFIGRecord an automated rollout config for a feature-flagged change. Use it only for AutomatedRollout requests. The guarding flag must already exist. Pass repoFullName, prNumber, and prUrl for the PR the user names or you just filed; omit them when there is none. Each listed environment releases after the merge, pinned in override or by a release plan; to hold one, leave it out (no hold or date field exists). releaseType is only override or policy; immediate, progressive, and guarded are override.releaseMethod values. An immediate release passes only environmentKey, with no releaseType or override. triggerType: flag_eval (default), webhook (CI/CD deploy), manual, or promotion. Stages have exactly allocation and durationMillis; allocation is thousandths of a percent, so 10% over one hour is {"allocation":10000,"durationMillis":3600000}. override keys are camelCase: releaseMethod, rolloutContextKindKey, stages, metricKeys, rollbackOnRegression. policy uses the environment's default release plan, or the plan environmentReleasePlanKey names. Surface every warning in generated comments; do not call a warned environment a clean rollout. Returns config_id, the stored config, and warnings.
Create dashboard
LAUNCH_DARKLY_MCP_CREATE_DASHBOARDCreate a new empty dashboard (visualization) for organizing charts. IMPORTANT: Before creating a new dashboard: 1. Use get-dashboards to check if a similar dashboard already exists 2. Use get-keys to discover available data dimensions for the product types you want to chart Takes name and optional timePreset (default "last_24_hours"; also "last_7_days", "last_30_days"), variables ({key, defaultValues, suggestionType, field}), description (subtitle under the name), tags (for finding it in the dashboards list, e.g. ["checkout", "team-payments"]), and maintainerId or maintainerTeamKey (the maintaining member or team). Returns dashboard_created, dashboard_id, dashboard_url, name, and the stored description, tags, maintainer_id and maintainer_team_key. After creating a dashboard, use create-graph to add charts to it. Before adding more than three, load the observability/dashboard-layout skill guide with load-skill and plan the rows. Example usage: {"name": "API Performance Dashboard", "timePreset": "last_7_days"}
Create dataset
LAUNCH_DARKLY_MCP_CREATE_DATASETCreate and upload an offline evaluation dataset with a stable key. Provide JSONL rows or raw CSV/JSONL content. Timestamps in the result are UTC.
Create environment
LAUNCH_DARKLY_MCP_CREATE_ENVIRONMENTCreate an environment in a LaunchDarkly project. name is the display name capitalized as the user wrote it (QA, not qa). Returns its key, name, client-side ID, mobile key, color, tags, and settings. Does not return the server-side SDK key; use get-sdk-key. Environment keys must be unique in the project, start with a letter or number, and contain only letters, numbers, periods, underscores, and dashes. A key already in use returns a conflict: do not retry with the same key; check it with get-environment and ask the user whether to use that environment or another key. A permission denied error can also mean the project has reached its environment limit. Boolean settings default to false. With sourceEnv, the new environment starts with a copy of that environment's flag configurations and segments, including rules but not individual context targets; its settings come from this call, not from sourceEnv. Approval settings cannot be set when creating an environment and are not copied.
Create environment release plan
LAUNCH_DARKLY_MCP_CREATE_ENVIRONMENT_RELEASE_PLANCreate a reusable progressive-release plan in the specified project and environment. Does not start a release on a flag. An active plan with the same key returns 409. Returns the created plan as read back. Beta API. progressiveRelease: randomizationUnit, optional advancementMode (manual or automatic, default manual) and cleanupBehavior, phases, and optional metrics. cleanupBehavior sets what happens when a release finishes: leave_rules_in_place keeps the rules, so the release stays limited to the audience in them; remove_rules_and_update_default_rule removes the rules and releases to everyone through the default rule (the API default). PHASES: 1-10, each with 1-10 clauses and 1-10 steps. A flag release plan can use this plan only if it has exactly one phase. Every phase's clauses must include the randomization unit clause {attribute: "kind", op: "in", values: [<randomizationUnit>], contextKind: <randomizationUnit>}; alone it releases to every context of that kind. randomizationUnit must be an existing, unarchived context kind in the project. Clauses use the flag targeting shape {attribute, op, values, contextKind?, negate?}: contextKind defaults to user, and attribute and contextKind may be empty only for segmentMatch, whose values are segment keys. values holds 1-25 entries, each string at most 1,024 bytes. STEPS: {allocation, durationMillis}. allocation is per-100k (5000 = 5%): greater than 0, at most 99000 (99%), and greater than the previous step's. Completing the release reaches everyone. durationMillis is the hold before the next step and must be greater than 0 (14400000 = 4h). METRICS: object keyed by metric or metric group key, each {isGroup, autoRollback?}. Empty makes a progressive release; any keys make releases from the plan guarded, which caps every step at 50000 (50%) and requires the randomizationUnit to be enabled for guarded rollouts. Max 10 metrics and 5 groups; keys must exist in the project and each metric must support the randomizationUnit. One example per release type: - progressive, no metrics: {"projectKey":"default","environmentKey":"production","key":"prod-ramp","name":"Production ramp","progressiveRelease":{"randomizationUnit":"user","advancementMode":"automatic","cleanupBehavior":"remove_rules_and_update_default_rule","phases":[{"clauses":[{"attribute":"kind","op":"in","values":["user"],"contextKind":"user"}],"steps":[{"allocation":10000,"durationMillis":3600000},{"allocation":50000,"durationMillis":3600000}]}]}} - guarded, steps at most 50000: {"projectKey":"default","environmentKey":"production","key":"prod-guarded","name":"Production guarded","progressiveRelease":{"randomizationUnit":"user","advancementMode":"automatic","cleanupBehavior":"remove_rules_and_update_default_rule","phases":[{"clauses":[{"attribute":"kind","op":"in","values":["user"],"contextKind":"user"}],"steps":[{"allocation":10000,"durationMillis":3600000},{"allocation":50000,"durationMillis":3600000}]}],"metrics":{"error-rate":{"isGroup":false,"autoRollback":true}}}}
Create evaluation
LAUNCH_DARKLY_MCP_CREATE_EVALUATIONCreate an AI evaluation definition snapshot. Datasets are selected later when run-evaluation is called. Messages can reference {{snippet.<key>}}; give each referenced snippet's text inline in promptSnippets (key to text), which is stored in this evaluation and needs no create-prompt-snippet call. Pass the environment it generates in as generationContext.environmentKey. Timestamps in the result are UTC.
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 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.