The LaunchDarkly MCP connector routes your AI agent's tool calls to LaunchDarkly's own MCP server through Scalekit. Each user signs in to LaunchDarkly once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 162 tools.
- Tools
- 162
- What they doRead · write · destructive
- 75 · 57 · 3075 read57 write30 destructive
- Users sign in with
- OAuth
- OAuth app
- Scalekit's or your own
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the LaunchDarkly MCP connection
In AgentKit > Connections, create a LaunchDarkly MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for LaunchDarkly MCP server, so you don't need to register an OAuth app.
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'launchdarklymcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize LaunchDarkly MCP:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'launchdarklymcp_find_o11y_project',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "launchdarklymcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize LaunchDarkly MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="launchdarklymcp_find_o11y_project",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toollaunchdarklymcp_find_o11y_projectFind the LaunchDarkly project that holds a service's observability data (logs, traces, metrics, errors).Read-onlyFind O11y Project
Find the LaunchDarkly project that holds a service's observability data (logs, traces, metrics, errors). Use this before other observability tools when you know a service but not its project; a project's name often does not match the services it holds. A match means the project has had data for the service, not that it is sending now; confirm the window with get-keys key=service_name. Pass the returned projectKey to the other observability toolruntime.
Inputs
projectQuerystring- Only check LaunchDarkly projects whose name or key contains this text. Omit to check every project.
serviceNamestring- Service name or a part of it, case-insensitive, e.g. checkout or checkout-api. Omit to list every project that has reported any service.
launchdarklymcp_get_agent_config_approvalsList approval requests for an AgentControl Config.Read-onlyGet Agent Config Approvals
List approval requests for an AgentControl Config. Pass projectKey and configKey, or only id. Each request has a url that opens it in LaunchDarkly. reviewStatus is the reviewers' decision: pending, approved, or declined. status is the change itself: pending, scheduled, completed (applied), or failed. Pass id to return only that request, for example to check whether it was approved; the id from create is enough on its own, and any key passed with it must match the request's resource. Each request lists its reviews with kind and comment, so a decline shows its reason. For integration-managed approvals with auto-apply on, reading a request can make LaunchDarkly apply it once approved.
Inputs
configKeystring- No description.
envstring- Environment key. If the user hasn't named one, ask; don't guess.
idstring- Return only this approval request.
projectKeystring- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_get_agent_configsWithout configKey: search and browse AgentControl Configs (query, tags, view, modes, maintainerId, maintainerTeamKey, sort, limit, offset; filters combine with AND).Read-onlyGet Agent Configs
Without configKey: search and browse AgentControl Configs (query, tags, view, modes, maintainerId, maintainerTeamKey, sort, limit, offset; filters combine with AND). With configKey: get one config; section is config (default, with variations), health (missing variations, models, prompts, tool references), status (lifecycle across every environment; no env needed), targeting (one environment; requires env), or versions (every saved version of one variation, newest first; requires variationKey). To restore an earlier prompt or model, pass that version's model and messages to update-agent-config resource=variation.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
configKeystring- No description.
envstring- Required for section=targeting; not used by the other sections.
limitinteger- No description.
maintainerIdstring- A member ID.
maintainerTeamKeystring- No description.
modesarray- No description.
offsetinteger- No description.
querystring- No description.
sectionstring- Only with configKey. Defaults to config.one of
confighealthstatustargetingversions sortstring- No description.one of
creationDate-creationDatelastModified-lastModifiedname-name tagsarray- No description.
variationKeystring- Required for section=versions; not used by the other sections.
viewstring- No description.
launchdarklymcp_get_agent_graphsWithout graphKey: list AgentControl graphs in a project (limit, offset).Read-onlyGet Agent Graphs
Without graphKey: list AgentControl graphs in a project (limit, offset). With graphKey: get one graph including its edges. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
graphKeystring- No description.
limitinteger- No description.
offsetinteger- No description.
launchdarklymcp_get_agent_skillsAgentControl agent skills: versioned SKILL.md documents that AgentControl Config variations attach by {key, version}.Read-onlyGet Agent Skills
AgentControl agent skills: versioned SKILL.md documents that AgentControl Config variations attach by {key, version}. These are not the LaunchDarkly workflow guides served by get-skills and load-skill. Without skillKey: list skills (query matches key, name, or description); when hasMore is true, pass nextOffset as offset. With skillKey: section skill (default) returns the latest version with its markdown; versions lists every version newest first with its markdown; references lists the variations that attach the skill and the version each one pins.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
limitinteger- Defaults to 25. Not used by section skill.
offsetinteger- Pass nextOffset from the previous page.
querystring- Only without skillKey.
sectionstring- Only with skillKey. Defaults to skill.one of
skillversionsreferences skillKeystring- No description.
launchdarklymcp_get_ai_configGet details about a specific AI Config including its variations and metadata.Read-onlyGetAiConfig
Get details about a specific AI Config including its variations and metadata.
Inputs
configKeystringrequired- The key of the AI Config to retrieve.
projectKeystringrequired- The project key where the AI Config resides.
launchdarklymcp_get_ai_config_healthGet the health status of an AI Config including latency, error rates, and evaluation metrics.Read-onlyGetAiConfigHealth
Get the health status of an AI Config including latency, error rates, and evaluation metrics.
Inputs
configKeystringrequired- The key of the AI Config to retrieve health status for.
environmentKeystringrequired- The environment key to retrieve health metrics from.
projectKeystringrequired- The project key identifying which project contains the AI Config.
launchdarklymcp_get_ai_config_status_across_envsGet the status of an AI Config across all environments in a project.Read-onlyGetAiConfigStatusAcrossEnvs
Get the status of an AI Config across all environments in a project.
Inputs
configKeystringrequired- The key of the AI Config to retrieve status across all environments.
projectKeystringrequired- The project key identifying which project contains the AI Config.
launchdarklymcp_get_ai_config_targetingGet the targeting rules and rollout configuration for an AI Config in a specific environment.Read-onlyGetAiConfigTargeting
Get the targeting rules and rollout configuration for an AI Config in a specific environment.
Inputs
configKeystringrequired- The key of the AI Config to retrieve targeting rules for.
envstringrequired- The environment key to retrieve targeting configuration from.
projectKeystringrequired- The project key identifying which project contains the AI Config.
launchdarklymcp_get_ai_model_configsGet the AI model configs that AgentControl Config variations can select: global catalog models (global=true) and the project's custom models.Read-onlyGet Ai Model Configs
Get the AI model configs that AgentControl Config variations can select: global catalog models (global=true) and the project's custom models. Without keys: a page filtered by query (case-insensitive match on key or name, for example gpt-4o), tags, and restricted; when hasMore is true, pass nextOffset as offset. With keys: those model configs, and any not found in missingKeys; version (an integer from an earlier read) needs exactly one key. Pass a model config's key (for example OpenAI.gpt-4o) as modelConfigKey and its id (for example gpt-4o) as modelName on a variation. Costs are USD per token.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
keysarray- Model config keys to get. Not combined with query, tags, restricted, limit, or offset.
limitinteger- Defaults to 25.
offsetinteger- Pass nextOffset from the previous page.
querystring- No description.
restrictedboolean- true returns only restricted models, false only unrestricted. Omit for both.
tagsarray- Matches model configs with any of these tags.
versioninteger- Only with exactly one key. Omit for the latest.
launchdarklymcp_get_ai_toolsWithout toolKey: list AI tool definitions in a project (limit).Read-onlyGet Ai Tools
Without toolKey: list AI tool definitions in a project (limit). With toolKey: get one AI tool definition including its schema. With toolKey and section versions: list that tool's versions newest first, paged by limit and offset; when hasMore is true, pass nextOffset as offset. To attach a tool, put its key and version in a variation's tools array ({key, version}).
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
limitinteger- No description.
offsetinteger- Only with section=versions. Pass nextOffset from the previous page.
sectionstring- Only with toolKey. Defaults to tool. versions pages by limit (1-100, default 25) and offset.one of
toolversions toolKeystring- No description.
launchdarklymcp_get_alert_firing_historyShow when an alert actually fired, and what state it is in now.Read-onlyGet Alert Firing History
Show when an alert actually fired, and what state it is in now. This is the tool that answers "is this alert doing anything?". list-alerts cannot: disabled=false only means the alert is being evaluated, and updated_at is the last config edit, not the last firing. Use this to find stale alerts worth retiring, to check whether a threshold is reachable, and to confirm an alert still works after you retune it. INPUTS: - projectKey (required): The LaunchDarkly project key (e.g., "default"). - alertId (required): The numeric ID of the alert (from list-alerts) - lookbackDays (optional, default 30): How far back to count firings. Must be positive. - limit (optional, default 20, max 100): Max individual firing rows to return, newest first RETURNS: - firing_count: Total firings in the window. May exceed the rows returned — check truncated - last_fired_at: Timestamp of the most recent firing, or null if it never fired in the window - firings: Newest-first rows with timestamp, state, group_by_key, and investigation_conversation_id when an automatic investigation ran for that firing - current_state: Latest state per group (any state, unwindowed). This is how you tell an alert firing RIGHT NOW from one that fired and resolved. States: Normal, Pending, Alerting, AlertingSilently, NoData, Error Only Alerting transitions are counted, so firing_count is a count of real firings rather than of every state change. Retention is not a constraint: the backing table has no TTL, so 30-, 60-, and 90-day windows are all equally valid. Pick the one that fits the question. A current_state of NoData is a finding worth reporting — the alert's query matches nothing, so it can no longer fire regardless of threshold. That usually means the underlying service was renamed or stopped emitting. Example usage: {"projectKey": "default", "alertId": 42, "lookbackDays": 90}
Inputs
alertIdnumberrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
includeIdleGroupsboolean- No description.
limitnumber- No description.
lookbackDaysnumber- No description.
launchdarklymcp_get_alertsWithout alertId: list existing alerts as compact rows with each enabled alert's current state, 50 at a time; page with offset, and set fullConfig for investigation settings and destination IDs; check this before creating a new alert.Read-onlyGet Alerts
Without alertId: list existing alerts as compact rows with each enabled alert's current state, 50 at a time; page with offset, and set fullConfig for investigation settings and destination IDs; check this before creating a new alert. Pass state=Alert to answer "what is firing right now" in one call. Filter by alert name with search; filter further by productType, disabled, query (text of the alert's own filter), destination, or tag. updated_at is the last config edit, not the last firing; use get-alert-firing-history for when and how often an alert fired. For project-wide stale, never-fired or unrouted alert questions, set audit (one firing lookup per alert, so slower) instead of looping get-alert-firing-history; say "no firings in the last N days", not "never fired". With alertId: get one alert's full configuration. Webhook URLs in destinations are masked.
Inputs
projectKeystringrequired- The LaunchDarkly project key (e.g., "default").
alertIdnumber- The numeric alert ID, from the list. Omit to list alerts; pass to get one alert.
auditboolean- Without alertId. Instead of the list, return one row per alert with status: active (fired within inactiveDays), stale (fired within historyWindowDays only), never_fired, disabled (history not checked) or unknown (lookup failed), plus firings_in_history_window, last_fired_at, destination_types, no_destinations, last_edited_at, last_editor_uid and alert_url, sorted never_fired first; and summary, total_alerts and alerts_without_destinations. Other list filters do not apply.
destinationstring- Only when listing. Destination kind (Slack, Webhook, Email, Jira) or a case-insensitive substring of its name, e.g. #ops-alerts.
disabledboolean- Only when listing. true keeps disabled alerts, false keeps enabled ones.
fullConfigboolean- Only when listing. Return each alert's full list configuration (threshold cooldown, destination IDs, investigation settings and repositories, updated_at) instead of the compact row. Defaults to false.
historyWindowDaysnumber- With audit. How far back to look for any firing, at most 3650 and at least inactiveDays. Defaults to 365.
inactiveDaysnumber- With audit. An enabled alert whose last firing is older than this many days is stale. Defaults to 30.
limitnumber- Only when listing. Alerts to return, at most 200. Defaults to 50.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
offsetnumber- Only when listing. Alerts to skip, for paging. Defaults to 0.
productTypestring- Only when listing. Keep alerts on this data source.one of
LogsTracesErrorsSessionsMetricsEventsPAEventsLDCustomEventsExternalMonitor querystring- Only when listing. Case-insensitive substring of the alert's filter, e.g. service_name=api.
searchstring- Only when listing. Case-insensitive substring match on alert name.
statestring- Only when listing. Keep alerts whose most urgent current group state is this; Alert lists what is firing now. Disabled alerts have no state.one of
AlertWarnErrorNoDataNormalUnknown tagstring- Only when listing. Alert tag key, or key=value, e.g. owner=team-o11y. Case-insensitive.
launchdarklymcp_get_approval_requestsList approval requests, including applied (completed), scheduled, and failed requests.Read-onlyGet Approval Requests
List approval requests, including applied (completed), scheduled, and failed requests. Pass projectKey, env, and flagKey or segmentKey (never both) for one flag or segment; only id for one request; or projectKey without a key for the whole project, the list its Approvals page shows across flags, segments, and AgentControl Configs. Given only an approval request id, call this tool with just id: it returns any approval request, whether for a flag, segment, or AgentControl Config, so never ask which kind it is. Pass status or reviewStatus to keep only some requests, for example reviewStatus ["pending"] and status ["pending"] for requests still awaiting review. Project-wide, also narrow by env, assignedToMemberIds (members asked to review; for requests waiting on the user, pass the id from get-member-self), requestedByMemberId, and resourceKind, and page with limit (default 20, max 200) and offset: results are newest first, nextOffset is set when more remain, and each request has resourceKind, resourceKey, and env. Each request has a url that opens it in LaunchDarkly. reviewStatus is the reviewers' decision: pending, approved, or declined. status is the change itself: pending, scheduled, completed (applied), or failed. Pass id to return only that request, for example to check whether it was approved; the id from create is enough on its own, and any key passed with it must match the request's resource. Each request lists its reviews with kind and comment, so a decline shows its reason. For integration-managed approvals with auto-apply on, reading a request can make LaunchDarkly apply it once approved. Timestamps in the result are UTC.
Inputs
assignedToMemberIdsarray- Project-wide only: member IDs asked to review the request.
envstring- Environment key, required with flagKey or segmentKey. Project-wide, omit it for every environment.
flagKeystring- No description.
idstring- Return only this approval request.
limitinteger- Project-wide only: page size, default 20.
offsetinteger- Project-wide only: results to skip, from nextOffset.
projectKeystring- Project key. If the user hasn't named one, ask; don't guess.
requestedByMemberIdstring- Project-wide only: member ID of the requester.
resourceKindstring- Project-wide only: requests for this kind of resource; aiconfig is an AgentControl Config.one of
flagsegmentaiconfig reviewStatusarray- Keep only requests with these review decisions. Omit to list every decision.
segmentKeystring- No description.
statusarray- Keep only requests whose change is in these statuses. Omit to list every status.
launchdarklymcp_get_automated_rollout_configFetch a single automated rollout config by id to verify its state.Read-onlyGet Automated Rollout Config
Fetch a single automated rollout config by id to verify its state. Use this after create-automated-rollout-config (which returns config_id) to confirm the rollout was recorded and to check its progress. LIFECYCLE: - pr_state: "pending" until the guarding PR merges, then "merged". - status: "active" while releasing, then "complete", "expired", or "archived". The config reports its execution_mode. Each environment reports its desired_release_type, trigger_type, wait_before_release_millis, the pinned override (if any), and release progress via released_at and associated_release_id (both set once the environment's release starts). An environment is editable with update-automated-rollout-config only while its status is "pending" and release_lifecycle_status is "not_started". INPUTS: - projectKey (required): LaunchDarkly project key (e.g., "default"). - configId (required): The rollout config id returned by create-automated-rollout-config. RETURNS: - found: Boolean; false when no config with that id exists for the project's account. - config: The rollout config when found â { id, project_key, flag_key, repo_full_name, pr_number, pr_url, pr_state, deployment_trigger, merge_position, status, execution_mode, required_application_keys, created_at, updated_at, completed_at, environments: [{ environment_key, desired_release_type, trigger_type, status, release_lifecycle_status, wait_before_release_millis, associated_release_id, released_at, override: { release_method, rollout_context_kind_key, stages, metric_keys, metric_group_keys, rollback_on_regression } }] }. deployment_trigger is the git SHA stamped when the PR merged (null until the merge is ingested); merge_position is that commit's order on the base branch.
Inputs
configIdstringrequired- Rollout config id returned by create-automated-rollout-config.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_get_changesShow what changed around a failure: one time-ordered timeline for a service and window that merges build version changes seen in traces, logs and errors, LaunchDarkly flag changes from the audit log, and the service's alert firings and config edits.Read-onlyGet Changes
Show what changed around a failure: one time-ordered timeline for a service and window that merges build version changes seen in traces, logs and errors, LaunchDarkly flag changes from the audit log, and the service's alert firings and config edits. Use it to answer "did a deploy or a flag change cause this?" before digging into traces. By default flag changes are only those the service's spans evaluated in the window (evaluated_by_service, the strongest link to the failure) or, when the service records no flag evaluations, those in environmentKey; set allFlagChanges for the rest. Alert firings of one alert and group less than two hours apart are one alert_episode row with firings and last_fired_at. When the timeline exceeds maxTokens the newest rows, nearest endDate, are kept.
Inputs
projectKeystringrequired- LaunchDarkly project key.
serviceNamestringrequired- Exact service_name value, e.g. production-api; find it with get-keys key=service_name.
startDatestringrequired- Start: ISO 8601, a date, relative (now-6h) or epoch seconds. Start before the failure so the change that preceded it is inside the window.
alertIdsarray- Alerts whose state changes to include. Omit to use alerts whose query names the service.
allFlagChangesboolean- Also list flag changes the service did not evaluate in the window and changes outside environmentKey, including project-level ones. Defaults to false; sources.flags.omitted counts what was left out.
endDatestring- End, same formats. Defaults to now.
environmentKeystring- LaunchDarkly environment key whose flag changes to include, e.g. production. Omit for every environment.
maxFlagChangesnumber- Flag audit-log entries to read, at most 200. Defaults to 100. When the window holds more, the newest page is read and the rest of the window is sampled in equal slices; sources.flags.sampling says how.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
querystring- Extra observability filter ANDed with the service for the version and flag-evaluation lookups, e.g. environment=production.
versionKeystring- Attribute that holds the build version. Omit to try service_version, then tags.version, then version.
launchdarklymcp_get_context_instancesGet all stored instances of a specific context by kind and key.Read-onlyGetContextInstances
Get all stored instances of a specific context by kind and key. Returns every recorded occurrence of the context, including its full attribute set (e.g., merchantCountryCode, disbursementRail) and which SDK/application reported each instance.
Inputs
environmentKeystringrequired- Environment Key for this operation.
keystringrequired- Key for this operation.
kindstringrequired- Kind for this operation.
projectKeystringrequired- Project Key for this operation.
continuationTokenstring- Continuation Token for this operation.
limitnumber- Limit for this operation.
launchdarklymcp_get_dashboardsWithout dashboardId: list existing dashboards, with next_offset when more remain; set includeGraphs for each dashboard's graph stubs.Read-onlyGet Dashboards
Without dashboardId: list existing dashboards, with next_offset when more remain; set includeGraphs for each dashboard's graph stubs. Check this before creating a new dashboard. search matches dashboard names only; to find dashboards that chart a metric, service or query, set graphSearch (and productType), which also returns matched_graphs. maxQueriesPerDashboard returns graph queries to reuse. With dashboardId: get one dashboard with every graph's full definition, its template variables, kind (Standard graph grid or Brief analytical report), and time_preset. Graph queries can reference variables as $key; pass their defaultValues to preview-graph as variables.
Inputs
projectKeystringrequired- The LaunchDarkly project key (e.g., "default").
dashboardIdnumber- The numeric dashboard ID, from the list. Omit to list dashboards; pass to get one.
graphSearchstring- Only when listing. Case-insensitive text to find in a graph's title, query, metric series queries, SQL, services or environments, e.g. a metric or service name. Matching dashboards list it under matched_graphs.
includeGraphsboolean- Only when listing. Include each dashboard's graph stubs (id, title, type, productType); by default only graph_count is returned.
limitnumber- Only when listing. Maximum dashboards to return, at most 50 (default 10).
maxQueriesPerDashboardnumber- Only when listing. Return up to this many graph queries per dashboard (at most 20) under queries, to reuse known-good filters. Defaults to 0.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
offsetnumber- Only when listing. Dashboards to skip, most recently updated first; pass next_offset from the previous result for the next page. Defaults to 0.
productTypestring- Only when listing. Keep dashboards with a graph on this data source: Logs, Traces, Errors, Sessions, Metrics, PAEvents, or Events; case-insensitive.
searchstring- Only when listing. Filter dashboards by name.
launchdarklymcp_get_datasetsWithout datasetId: list offline datasets in a project (id, name, status, row count, creation info), paged by page and pageSize.Read-onlyGet Datasets
Without datasetId: list offline datasets in a project (id, name, status, row count, creation info), paged by page and pageSize. With datasetId: get one dataset including its processing status and row count. Dataset status is pending, ready, or failed. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
datasetIdstring- No description.
pageinteger- No description.
pageSizeinteger- No description.
launchdarklymcp_get_docFetch the full markdown content of a LaunchDarkly documentation page.Read-onlyGetDoc
Fetch the full markdown content of a LaunchDarkly documentation page.
Inputs
urlstringrequired- Url for this operation.
launchdarklymcp_get_error_groupGet one error group by secure_id with its state, stack and one occurrence (the latest unless errorObjectId or startDate picks another), with its trace_id, session, and next_id and previous_id.Read-onlyGet Error Group
Get one error group by secure_id with its state, stack and one occurrence (the latest unless errorObjectId or startDate picks another), with its trace_id, session, and next_id and previous_id. Set occurrences to list occurrences in a window instead. Frames carry link (GitHub source URL), in_app and source_map_error when known; top_frame adds code_before and code_after. include adds distribution (browser, OS, env, service, version) and trend for the window. _pivots gives get-trace and search-logs arguments for the occurrence's trace.
Inputs
projectKeystringrequired- LaunchDarkly project key.
secureIdstringrequired- secure_id of the error group, from search-error-groups.
endDatestring- End, same formats. Defaults to now.
errorObjectIdnumber- ID of one occurrence, from occurrences or this tool's next_id and previous_id. Omit for the latest occurrence.
includearray- Extra context for the group over startDate to endDate (default the last 7 days): distribution (top browser, os_name, environment, service_name and service_version values with counts and percent) and trend (occurrence counts in up to 60 equal buckets, per minute for windows of an hour or less, with the peak bucket). Not with occurrences.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
occurrencesnumber- List this many occurrences instead, newest first, at most 50 (id, timestamp, event, service, version, session_secure_id, error_url), plus totalCount. Needs startDate; not with errorObjectId.
pagenumber- With occurrences. Page number. Defaults to 1.
querystring- Filter that picks the occurrence, or with occurrences filters the list, e.g. service_name=web. Needs startDate.
startDatestring- Start: ISO 8601, a date, relative (now-1h) or epoch seconds. With it, the occurrence returned is the latest one in the window that matches query.
launchdarklymcp_get_evaluationsWithout evaluationId: list AI evaluation definition snapshots in a project (search by name, state active or archived, sortBy updatedAt or lastRun, limit, offset).Read-onlyGet Evaluations
Without evaluationId: list AI evaluation definition snapshots in a project (search by name, state active or archived, sortBy updatedAt or lastRun, limit, offset). With evaluationId: get one snapshot including prompts, models, criteria, and toolruntime. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
evaluationIdstring- No description.
limitinteger- No description.
offsetinteger- No description.
searchstring- No description.
sortBystring- No description.one of
updatedAtlastRun statestring- No description.one of
activearchived
launchdarklymcp_get_experimentsWithout experimentKey: list experiments in a project, optionally filtered by environmentKey, flagKey, or status; each entry has key, name, description, and current iteration status.Read-onlyGet Experiments
Without experimentKey: list experiments in a project, optionally filtered by environmentKey, flagKey, or status; each entry has key, name, description, and current iteration status. With experimentKey (environmentKey also required): get one experiment including its treatments, metrics, and current iteration status. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
environmentKeystring- Environment key. If the user hasn't named one, ask; don't guess.
experimentKeystring- No description.
flagKeystring- No description.
limitnumber- No description.
offsetnumber- No description.
statusstring- No description.
launchdarklymcp_get_flag_code_referencesGet per-repository code-reference counts for one flag.Read-onlyGet Flag Code References
Get per-repository code-reference counts for one flag. Requires projectKey and flagKey. The flags map contains repository names, default branches, enabled state, hunkCount, fileCount, latestCommitTime, and links, not file paths or source hunks. Covers only default branches of repositories onboarded to code-reference scanning; an empty flags map is not proof of dead code, and disabled or stale scans need investigation. Use this evidence to identify other repositories to inspect during flag-safety review. Pair with get-flag-extinctions for removal history; neither proves that a change is correctly flag-gated.
Inputs
flagKeystringrequired- The flag key whose code references to check.
projectKeystringrequired- The project key. Ask if unknown.
launchdarklymcp_get_flag_extinctionsGet commits that removed the last code reference to one flag in scanned repositories.Read-onlyGet Flag Extinctions
Get commits that removed the last code reference to one flag in scanned repositories. Requires projectKey and flagKey. Returns an items map keyed by repository name; each event has revision, message, time (Unix epoch milliseconds), flagKey, and projKey. Optional repoName and branchName narrow the search; without branchName, only default branches are queried. Supply from and to together in Unix epoch milliseconds to filter by commit time. Extinctions are historical: references may have been reintroduced, so also check current code-reference statistics and inspect relevant branches before treating a flag as unused. An empty result does not prove the flag has no references.
Inputs
flagKeystringrequired- The flag key whose removal history to read.
projectKeystringrequired- The project key. Ask if unknown.
branchNamestring- Optional branch name; otherwise each repository's default branch is queried.
frominteger- Earliest commit time in Unix epoch milliseconds. Requires to.
repoNamestring- Optional repository name.
tointeger- Latest commit time in Unix epoch milliseconds. Requires from.
launchdarklymcp_get_flag_healthGet health indicators for a feature flag including evaluation counts, error rates, and usage patterns.Read-onlyGetFlagHealth
Get health indicators for a feature flag including evaluation counts, error rates, and usage patterns.
Inputs
envstringrequired- The environment key to check flag health in.
flagKeystringrequired- The feature flag key to retrieve health indicators for.
projectKeystringrequired- The project key identifying which project contains the flag.
launchdarklymcp_get_flag_status_across_envsGet the on/off status and targeting summary for a feature flag across all environments in a project.Read-onlyGetFlagStatusAcrossEnvs
Get the on/off status and targeting summary for a feature flag across all environments in a project.
Inputs
flagKeystringrequired- The feature flag key
projectKeystringrequired- The project key
allEnvsboolean- Include every environment instead of only the project's critical environments. Ignored when env is set.
envstring- Optional environment filter
launchdarklymcp_get_flag_unique_context_exposuresGet unique-context exposure counts (distinct-context cardinality) for a flag in an environment.Read-onlyGet Flag Unique Context Exposures
Get unique-context exposure counts (distinct-context cardinality) for a flag in an environment. Returns how many distinct users/accounts/etc. were actually exposed to the flag over a time window, broken down by context kind. CRITICAL DISTINCTION: unique exposures are NOT evaluation counts. One context evaluated 10,000 times counts as 1 exposure (not 10,000). This ~1000x difference is critical for guarded rollout sizing. The guarded-release UI gates on this figure. For total SDK call counts use get-flag-evaluation-summaries. from/to accept ISO 8601 strings or Unix millisecond timestamp strings (default: last 30 days).
Inputs
envKeystringrequired- No description.
flagKeystringrequired- No description.
projectKeystringrequired- No description.
fromstring- No description.
tostring- No description.
launchdarklymcp_get_flagsWithout flagKey: search and browse feature flags; returns a paginated summary per flag (key, name, kind, tags, temporary, archived, deprecated, maintainer, and whether targeting is on) in one environment.Read-onlyGet Flags
Without flagKey: search and browse feature flags; returns a paginated summary per flag (key, name, kind, tags, temporary, archived, deprecated, maintainer, and whether targeting is on) in one environment. Set includeDescription to also return each flag's description. Always set env to the environment the user named. With flagKey: get one flag scoped to env, with the full targeting tree (rules, individual targets, fallthrough, prerequisites) and variations. Each rule and each clause carries an `_id`; pass them as ruleId and clauseId to update-targeting-rules (addValuesToClause, removeValuesFromClause, updateClause) or create-approval-request to edit a clause in place.
Inputs
projectKeystringrequired- The project key
envstring- Environment key. Always set to the environment the user named.
expandstring- Only with flagKey. A comma-separated list of fields to expand in the response.
flagKeystring- The feature flag key. Omit to list flags; pass to get one flag.
includeDescriptionboolean- Only without flagKey. Return each flag's description. Off by default.
limitinteger- No description.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
offsetinteger- No description.
querystring- No description.
sdkAvailabilitystring- No description.one of
clientmobileanyClientserver sortstring- No description.one of
creationDate-creationDatename-name statestring- No description.one of
livedeprecatedarchived tagsarray- No description.
typestring- No description.one of
temporarypermanent viewstring- No description.
launchdarklymcp_get_incidentsRead incidents from the incident.io workspace connected to this project, to learn whether one already exists for a problem and what responders found.Read-onlyGet Incidents
Read incidents from the incident.io workspace connected to this project, to learn whether one already exists for a problem and what responders found. Without incidentId: list the most recent 250 incidents, filtered by query and status (incident.io has no text search, so older matches are not found). With incidentId: one incident's roles, custom fields, status-update timeline, follow-ups and postmortem. Fails without retry when incident.io is not connected.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
incidentIdstring- Incident id or numeric reference (123 for INC-123). Omit to list incidents.
includeFollowUpsboolean- With incidentId. Include post-incident follow-ups. Defaults to true.
includeUpdatesboolean- With incidentId. Include the status-update timeline. Defaults to true.
limitnumber- Only when listing. At most 100. Defaults to 25.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
querystring- Only when listing. Case-insensitive substring of reference, name, summary, severity or incident type.
statusstring- Only when listing. Substring of the status name or category, e.g. active, triage, closed.
launchdarklymcp_get_investigationRead the automatic investigation that ran for an alert firing, so you can build on its diagnosis instead of investigating again.Read-onlyGet Investigation
Read the automatic investigation that ran for an alert firing, so you can build on its diagnosis instead of investigating again. Pass the investigation_conversation_id from get-alert-firing-history. Returns its status, final answer and artifacts such as pull requests; set includeMessages for every turn. Cite the investigation's findings as its conclusions and check them against current data before acting. An investigation you neither started nor were shared returns an error naming that; retrying will not help.
Inputs
conversationIdstringrequired- Investigation conversation id, from investigation_conversation_id in get-alert-firing-history or last_investigation_conversation_id in get-alerts.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
includeMessagesboolean- Also return every turn (role, text, tool calls). Defaults to false.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
launchdarklymcp_get_member_selfGet the profile of the currently authenticated member, including their role and permissions.Read-onlyGetMemberSelf
Get the profile of the currently authenticated member, including their role and permissions.
Inputs
This tool takes no inputs.
launchdarklymcp_get_metric_data_sourcesWarehouse-native metric data sources: each maps a SQL query, table, or view in a connected warehouse to metric events.Read-onlyGet Metric Data Sources
Warehouse-native metric data sources: each maps a SQL query, table, or view in a connected warehouse to metric events. Without dataSourceKey: list a project's data sources (environmentKey, integrationKey, archived, includeMetrics). With dataSourceKey: get one data source. With warehouseConnections true: list the warehouse connections bound to the project instead, with the environment each serves. includeMetrics adds the metrics built on each data source.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
archivedboolean- Listing data sources only. true lists only archived data sources, false only active ones. Omitted, the list shows active ones.
dataSourceKeystring- Get this data source.
environmentKeystring- Keep only data sources or connections for this environment. Not with dataSourceKey.
includeMetricsboolean- Also return the metrics built on each data source. Gonfalon returns at most 10 metrics; metricsTotalCount is the full count. Not with warehouseConnections.
integrationKeystring- Keep only data sources or connections for this warehouse. Not with dataSourceKey.one of
snowflake-experimentationdatabricks-experimentationredshift-experimentationbigquery-experimentationclickhouse-experimentation warehouseConnectionsboolean- List warehouse connections instead of data sources.
launchdarklymcp_get_metric_eventsMetric event keys LaunchDarkly has observed.Read-onlyGet Metric Events
Metric event keys LaunchDarkly has observed. Without eventKey: list recently observed event keys (query, environmentKey, dataSourceKey, limit up to 50). With dataSourceKey and eventKey: check whether that warehouse data source has produced the event. ready false means it has not been seen yet; contextKinds are the analysis units a metric on the event can use.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
dataSourceKeystring- Warehouse metric data source key. Required with eventKey.
environmentKeystring- Listing only: keep events seen in this environment. Not with eventKey; a data source already belongs to one environment.
eventKeystring- Check this event key on dataSourceKey. Takes only projectKey and dataSourceKey alongside it.
limitinteger- Listing only. Defaults to 50. Not with eventKey.
querystring- Listing only: fuzzy match on event key. Not with eventKey.
launchdarklymcp_get_metricsLaunchDarkly metrics used by experiments and guarded rollouts; for observability metric names in a time window, use get-keys with productType metrics.Read-onlyGet Metrics
LaunchDarkly metrics used by experiments and guarded rollouts; for observability metric names in a time window, use get-keys with productType metrics. Without metricKey: list metrics in a project (query, tags, eventKind, isNumeric, hasConnections, maintainerIds, maintainerTeamKey, metricUsedIn, dataSourceKeys, versionIds, sort, limit, offset). With metricKey: get full details for one metric. To find which metric a metric version ID belongs to (experiments reference metrics by version), list with versionIds. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
dataSourceKeysarray- No description.
eventKindstring- No description.
hasConnectionsboolean- No description.
isNumericboolean- No description.
limitinteger- No description.
maintainerIdsarray- No description.
maintainerTeamKeystring- No description.
metricKeystring- No description.
metricUsedInstring- No description.
offsetinteger- No description.
querystring- No description.
sortstring- createdAt, name, connectionCount, or activeConnectionCount. Prefix with - for descending order.
tagsarray- No description.
versionIdsarray- Metric version IDs. Returns the metrics these versions belong to; each result carries its versionId.
launchdarklymcp_get_playgroundsWithout playgroundId: list LLM playgrounds in a project (names, variant counts, timestamps); search by name, filter by status, paged by limit and offset.Read-onlyGet Playgrounds
Without playgroundId: list LLM playgrounds in a project (names, variant counts, timestamps); search by name, filter by status, paged by limit and offset. With playgroundId: get one playground including its variants (evaluation definitions and their positions). Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
limitnumber- No description.
offsetnumber- No description.
playgroundIdstring- No description.
searchstring- No description.
statusstring- No description.
launchdarklymcp_get_projectsWithout projectKey: list LaunchDarkly projects in the account; use to discover project keys before calling project-scoped toolruntime.Read-onlyGet Projects
Without projectKey: list LaunchDarkly projects in the account; use to discover project keys before calling project-scoped toolruntime. To find the project that holds a service's logs, traces or errors, use find-o11y-project instead of matching project names. query searches name or key (case-insensitive), tags filters (all must match), sort is name or -name. If the user named no project, search once with query and ask the user when no single project clearly matches; do not page. Next page: offset + limit. With projectKey: get one project with its environments; use to retrieve environments or verify a project exists. Set fullSettings to true (projectKey only) to also return every project-level setting under a settings object, such as defaultClientSideAvailability, snippet and view-association requirements, the full naming convention, and lifecycle settings (settings.lifecycle: requireReadyToArchive and the checks and day thresholds that decide whether archive-flag is allowed). Neither mode returns server-side SDK keys; use get-sdk-key.
Inputs
fullSettingsboolean- No description.
limitnumber- No description.
offsetnumber- No description.
projectKeystring- Project key. If the user hasn't named one, ask; don't guess.
querystring- No description.
sortstring- No description.one of
name-name tagsarray- No description.
launchdarklymcp_get_prompt_snippetsWithout snippetKey: list reusable prompt snippets in a project (filter, limit, offset).Read-onlyGet Prompt Snippets
Without snippetKey: list reusable prompt snippets in a project (filter, limit, offset). With snippetKey: get one snippet. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
filterstring- No description.
limitinteger- No description.
offsetinteger- No description.
snippetKeystring- No description.
launchdarklymcp_get_release_policiesList release policies and guarded-rollout metric settings.Read-onlyGet Release Policies
List release policies and guarded-rollout metric settings.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_get_removal_readinessDetailed safety check before removing a feature flag in one environment; env is required, so ask which environment when the user hasn't named one.Read-onlyGet Removal Readiness
Detailed safety check before removing a feature flag in one environment; env is required, so ask which environment when the user hasn't named one. Checks dependencies, code references, active targeting, expiring targets, and cross-environment status. Returns a readiness verdict: 'safe' (proceed), 'caution' (review warnings), or 'blocked' (must resolve blockers first). Always run this before archive-flag or delete-flag. Timestamps in the result are UTC.
Inputs
envstringrequired- Environment key
flagKeystringrequired- Feature flag key
projectKeystringrequired- LaunchDarkly project key
launchdarklymcp_get_resource_viewsList the views a flag, segment, or AgentControl Config is linked to.Read-onlyGet Resource Views
List the views a flag, segment, or AgentControl Config is linked to. Views are an Enterprise feature. Flags and AgentControl Configs are identified by key; segments additionally require `environmentId` because segments are environment-scoped.
Inputs
projectKeystringrequired- No description.
resourceKeystringrequired- No description.
resourceTypestringrequired- No description.one of
flagssegmentsaiConfigs environmentIdstring- No description.
limitnumber- No description.
offsetnumber- No description.
launchdarklymcp_get_rollout_completenessCheck whether a feature flag is fully rolled out: every traffic-bearing environment serves one variation to all contexts, and a stability gate is met.Read-onlyGet Rollout Completeness
Check whether a feature flag is fully rolled out: every traffic-bearing environment serves one variation to all contexts, and a stability gate is met. A flag at 100% never looks inactive, so use this to find flags whose code path is dead and ready for cleanup. Serving is deterministic when targeting is off (off variation) or on with no rules, individual targets, prerequisites, or percentage rollout (fallthrough variation). Traffic-bearing environments have a status other than new and a lastRequested time. The stability gate passes when any environment is launched or the flag is at least stabilityDays old (default 14). Returns isFullyRolledOut, consensusVariation, per-environment results, and blockers. Timestamps in the result are UTC.
Inputs
flagKeystringrequired- Feature flag key
projectKeystringrequired- LaunchDarkly project key
envKeysstring- environment keys to check; default every environment of the flag
stabilityDaysstring- minimum flag age in days that passes the stability gate when no environment is launched; default 14
launchdarklymcp_get_sdk_keyReturn the server-side SDK key (sdk-...) for one environment.Read-onlyGet Sdk Key
Return the server-side SDK key (sdk-...) for one environment. This is the only tool that returns that credential. Do not use get-environment, get-projects, get-keys, or get-sdk-active.
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_get_segmentsWithout segmentKey: list segments in one environment with rule counts and target counts, paged; query searches name or key, tags filters, view restricts to segments linked to a view.Read-onlyGet Segments
Without segmentKey: list segments in one environment with rule counts and target counts, paged; query searches name or key, tags filters, view restricts to segments linked to a view. Always list first to avoid creating duplicates. With segmentKey: get one segment's rules, included and excluded user keys, includedContexts and excludedContexts for other context kinds, tags, and creation date. Timestamps in the result are UTC.
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
limitinteger- No description.
offsetinteger- No description.
querystring- No description.
segmentKeystring- Omit to list segments; pass to get one segment.
sortstring- No description.one of
creationDate-creationDatename-namelastModified-lastModified tagsarray- No description.
viewstring- No description.
launchdarklymcp_get_service_connections_usageGet a time series of service connection minutes from your LaunchDarkly account.Read-onlyGetServiceConnectionsUsage
Get a time series of service connection minutes from your LaunchDarkly account. Use this for capacity planning, cost analysis, and before/after deploy comparisons (e.g. compare daily incremental minutes around a deploy date).
Inputs
aggregationTypestring- No description.one of
month_to_dateincremental connectionTypearray- No description.
environmentKeyarray- No description.
fromstring- No description.
granularitystring- No description.one of
dailyhourlymonthly groupByarray- No description.
projectKeyarray- No description.
relayVersionarray- No description.
sdkNamearray- No description.
sdkTypearray- No description.
sdkVersionarray- No description.
tostring- No description.
launchdarklymcp_get_session_detailsGet one session's details in one call: the session row, its frontend errors, a network resource summary, web vitals, rage clicks, and active and idle intervals; choose sections with include.Read-onlyGet Session Details
Get one session's details in one call: the session row, its frontend errors, a network resource summary, web vitals, rage clicks, and active and idle intervals; choose sections with include. _pivots gives ready-made arguments for the logs, traces, errors, flag evaluations and timeline of the session's window. When you reference the session, wrap its ID in <session-id></session-id> so the UI can link it.
Inputs
projectKeystringrequired- LaunchDarkly project key.
sessionSecureIdstringrequired- Secure ID of the session, e.g. from search-sessions.
includearray- Sections to return. Defaults to all of them.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
launchdarklymcp_get_session_event_chunksList the rrweb event chunks recorded for a session.Read-onlyGet Session Event Chunks
List the rrweb event chunks recorded for a session. Session replay events are stored in chunks; this returns one entry per chunk with chunk_index and the chunk's start timestamp (epoch millis). Use it to see how a session's recording is segmented, then fetch a specific chunk's raw contents with get-session-event-chunk-url. REQUIRED INPUTS: - projectKey: The LaunchDarkly project key (e.g., "default"). - sessionSecureId: The secure ID of the session to list event chunks for. REQUIRED. The session's chunked field (from query-sessions) tells you whether chunks exist — unchunked (very short or old) sessions return an empty list. For a cheap chronological overview of a session prefer query-timeline-events; only fetch raw chunks when you need actual DOM/interaction detail. Here's an example of a valid input: {"projectKey": "default", "sessionSecureId": "abc123def456"}
Inputs
projectKeystringrequired- LaunchDarkly project key.
sessionSecureIdstringrequired- Secure ID of the session, e.g. from search-sessions.
indexinteger- chunk_index of one chunk to download. Omit to list the chunks.
timestampstring- ISO 8601 moment with a timezone, e.g. 2024-01-15T10:00:00Z, to download the chunk covering it. Omit to list the chunks.
launchdarklymcp_get_skillsList the LaunchDarkly skill guides this server ships.Read-onlyGet Skills
List the LaunchDarkly skill guides this server ships. Each guide carries the workflow, the safety checks, and the tool sequence for one task: deciding whether to flag a change, flag creation, flag targeting, guarded rollouts, automated releases, end-to-end PR flagging, flag discovery, flag cleanup, experiment setup, metric choice, creation, and instrumentation, and observability work: investigations across logs, traces, errors, and sessions, alert triage, query syntax, OpenTelemetry metrics, charts, and alert creation and cleanup. Returns each guide's `skill` key, `description`, and available `references`. Use `load-skill` with a `skill` key to read the guide. With no `query`, returns every guide. With a `query`, returns ranked matches. Examples: - query: `rollout monitoring` â finds the guarded rollout guide - query: `remove flag from code` â finds the flag cleanup guide - query: `conversion event tracking` â finds the metric guides - query: `stale noisy alerts` â finds the alert management guide
Inputs
querystring- No description.
launchdarklymcp_get_traceGet one trace by ID as a span tree with each span's service, duration, self_ms (time not spent in children) and status, plus completeness and error groups.Read-onlyGet Trace
Get one trace by ID as a span tree with each span's service, duration, self_ms (time not spent in children) and status, plus completeness and error groups. For latency read top_self_time (5 spans with the most own time) and critical_path (spans the root waited on, walking back from each end to the last-finishing child, with critical_ms); both cover hidden spans. Attributes appear only for expandSpanId. For large traces set onlyServiceEntrySpans; maxTokens also caps the spans shown. Pass a known span time as timestamp, not startDate.
Inputs
projectKeystringrequired- LaunchDarkly project key.
traceIdstringrequired- Trace ID, e.g. traceID from search-traces or search-logs.
endDatestring- End of the lookup window when timestamp is omitted, in the same formats as startDate. Defaults to now.
expandSpanIdstring- Span ID to return with its full attributes (e.g. http.route, exception details) and with its subtree never collapsed.
maxSpansnumber- Spans to show in the tree, at most 500. Defaults to 100; the rest are counted in hidden_child_spans_count.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
onlyServiceEntrySpansboolean- Show only root spans, spans whose service differs from their parent's, and spans with errors; hidden spans are counted in hidden_child_spans_count. Defaults to false.
startDatestring- Only without timestamp. Start of the window to look the trace up in: ISO 8601 or relative to now, e.g. now-6h. Defaults to 24 hours before endDate.
timestampstring- When any span in the trace ran, ISO 8601 with a timezone, e.g. its search-traces timestamp. Pass it whenever you know a span time: spans within an hour of it are read directly. Omit it only when no span time is known; the trace is then looked up between startDate and endDate.
launchdarklymcp_get_viewsViews are an Enterprise feature.Read-onlyGet Views
Views are an Enterprise feature. Without viewKey: list views (key, name, description, tags, maintainer; linked-resource counts when includeResourceSummary is set); query searches by name, tags filters, sort is key, name, or updatedAt (default updatedAt, most recent first). Responses include totalCount and pageInfo.offset; for the next page set offset to the current offset + limit. With viewKey: get one view with name, description, tags, maintainer, and linked-resource counts (flags, segments, AgentControl Configs); use list-view-resources to enumerate the linked resources themselves. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
includeResourceSummaryboolean- No description.
limitnumber- No description.
offsetnumber- No description.
querystring- No description.
sortstring- No description.one of
keynameupdatedAt tagsarray- No description.
viewKeystring- No description.
launchdarklymcp_getenvironmentGet details about a specific environment in a project, including its keys and settings.Read-onlyGetEnvironment
Get details about a specific environment in a project, including its keys and settings.
Inputs
environmentKeystringrequired- The key of the environment to retrieve.
projectKeystringrequired- The key of the project that contains the environment.
launchdarklymcp_getevaluationrunsummaryGet the summary results of a completed evaluation run, including pass/fail counts and aggregate scores.Read-onlyGetEvaluationRunSummary
Get the summary results of a completed evaluation run, including pass/fail counts and aggregate scores.
Inputs
evaluationIdstringrequired- The unique identifier of the evaluation definition.
projectKeystringrequired- The project key identifying which project the evaluation belongs to.
runIdstringrequired- The unique identifier of the evaluation run to retrieve the summary for.
launchdarklymcp_getexperimentmetricresultsGet detailed statistical results for a single metric on an experiment iteration.Read-onlyGetExperimentMetricResults
Get detailed statistical results for a single metric on an experiment iteration. Returns, per treatment: sample sizes (analyzedUnitCount, trafficCount, conversionCount), the observed mean and standard deviation, and a `statistics` block with the lift versus control (relativeDifferences: estimate plus lower/upper interval bounds and, for frequentist experiments, a per-comparison pValue), the overall pValue, Bayesian probabilities (probabilityToBeBest, probabilityToBeatBaseline, expectedLoss), and an isSignificant flag. Reads from LaunchDarkly's internal analysis API. Defaults to the current iteration and the latest analysis; pass iterationId to target a previous iteration. Use disableMultipleComparisonCorrection / disableSequentialTesting to see uncorrected numbers. Use get-experiment-results for a cross-metric overview, or get-experiment to discover metric keys.
Inputs
environmentKeystringrequired- Environment Key for this operation.
experimentKeystringrequired- Experiment Key for this operation.
metricKeystringrequired- Metric Key for this operation.
projectKeystringrequired- Project Key for this operation.
disableMultipleComparisonCorrectionboolean- Disable Multiple Comparison Correction for this operation.
disableSequentialTestingboolean- Disable Sequential Testing for this operation.
iterationIdstring- Iteration Id for this operation.
launchdarklymcp_getexperimentresultsGet an overall results summary for an experiment, across every metric on the current iteration.Read-onlyGetExperimentResults
Get an overall results summary for an experiment, across every metric on the current iteration. Discovers the iteration's metrics, then fetches each metric's analysis from LaunchDarkly's internal results API and returns a compact per-metric summary: which treatment is leading (isBest) — the arm with the highest probability to beat the baseline for Bayesian experiments, or the lowest p-value versus control for frequentist (note: not significance-gated, so a treatment can be flagged leading even when nothing is significant) — each treatment's lift versus control, whether it's statistically significant, and sample sizes. Pass iterationId to summarize a previous iteration. For the full per-treatment statistics (intervals, p-values, Bayesian probabilities) on one metric, use get-experiment-metric-results.
Inputs
environmentKeystringrequired- Environment Key for this operation.
experimentKeystringrequired- Experiment Key for this operation.
projectKeystringrequired- Project Key for this operation.
disableMultipleComparisonCorrectionboolean- Disable Multiple Comparison Correction for this operation.
disableSequentialTestingboolean- Disable Sequential Testing for this operation.
iterationIdstring- Iteration Id for this operation.
launchdarklymcp_getkeysDiscover available data keys/dimensions for a product type.Read-onlyGetKeys
Discover available data keys/dimensions for a product type.
Inputs
productTypestringrequired- One of logs, traces, sessions, errors, metrics, paevents, or events; case-insensitive. Use paevents for product-analytics events (keys like type, key, view_name); events is the legacy session_events source.
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
endDatestring- End, same formats. Defaults to now.
keystring- An observability attribute key from this tool's key list, e.g. service_name; not a flag or project key. Set it to get that key's observed values ranked by frequency instead of the key list.
limitnumber- Keys to return, at most 100. Defaults to 25. With key, values to return, 1-100, default 30.
searchstring- Filter keys by name, or with key, a substring of the values.
launchdarklymcp_getsdkactiveCheck whether any SDKs have been active in a given environment.Read-onlyGetSdkActive
Check whether any SDKs have been active in a given environment. Returns true if any SDK has initialized or sent events in the environment. Use this to verify that an environment is actually in use before cleanup. Optionally filter by sdkName or sdkWrapperName to check a specific SDK.
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
purposestring- No description.one of
ai sdkNamestring- No description.
sdkWrapperNamestring- No description.
launchdarklymcp_list_ai_configsList all AI Configs in a project with their current status and variation count.Read-onlyListAiConfigs
List all AI Configs in a project with their current status and variation count.
Inputs
projectKeystringrequired- The project key to list AI Configs from.
limitnumber- Maximum number of AI Configs to return per page.
offsetnumber- Offset for pagination.
querystring- Search query to filter AI Configs by name or key.
launchdarklymcp_list_view_resourcesList the resources of one type linked to a view.Read-onlyList View Resources
List the resources of one type linked to a view. Views are an Enterprise feature. Returns resource keys with link timestamps (and environment info for segments). Use query for a case-insensitive search on resource keys. Sorting: use `sort` with `linkedAt` (default) or `name`. Pagination: responses include `totalCount` and `pageInfo.offset`. To get the next page, set `offset` to the current offset + limit.
Inputs
projectKeystringrequired- No description.
resourceTypestringrequired- No description.one of
flagssegmentsaiConfigs viewKeystringrequired- No description.
limitnumber- No description.
offsetnumber- No description.
querystring- No description.
sortstring- No description.one of
linkedAtname
launchdarklymcp_match_release_policiesResolve which release policies would govern a flag in a given environment — a read-only dry-run of the server-side policy matching logic.Read-onlyMatchReleasePolicies
Resolve which release policies would govern a flag in a given environment — a read-only dry-run of the server-side policy matching logic. Does not create or modify anything.
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
flagKeystring- No description.
flagTagsarray- No description.
launchdarklymcp_previewgraphPreview a chart/graph inline WITHOUT saving it to a dashboard.Read-onlyPreviewGraph
Preview a chart/graph inline WITHOUT saving it to a dashboard. Always use this tool first when a user asks to create or visualize a chart. Returns both the graph configuration and the queried metrics data so the user can see the chart rendered inline. After showing the preview, ask the user if they want to save it to a dashboard (using create-graph).
Inputs
expressionsarrayrequired- Aggregations, e.g. [{"aggregator":"Count","column":""}] or [{"aggregator":"P90","column":"duration"}].
productTypestringrequired- Data source: Logs, Traces, Errors, Sessions, Metrics, PAEvents, or Events; case-insensitive. PAEvents is the product-analytics source the graph editor shows: filter custom events with type="track" key="<name>" and page or screen views with type="*_view" view_name="<path>". Events is the legacy session_events source, filtered with event="<name>".
projectKeystringrequired- LaunchDarkly project key.
titlestringrequired- Chart title, e.g. Error Rate by Service.
typestringrequired- Chart type: "Line chart", "Bar chart", or "Table".
bucketCountnumber- Number of time buckets, at most 300. Defaults to 12. Set it to 1 for a single total per group over the whole window.
displaystring- Exact style value. Line chart: Line, Stacked, or Stacked area. Bar chart: Stacked or Grouped.
endDatestring- End, same formats. Defaults to now.
groupByarray- Dimension keys from get-keys, e.g. ["level"].
groupByLimitnumber- Maximum groups when groupBy is set, at most 50. Defaults to 5.
querystring- Filter in search syntax, e.g. level=error. A dashboard query's $key references need variables.
startDatestring- Start: ISO 8601, a date, relative (now-6h) or epoch seconds. Defaults to 24 hours before endDate.
variablesobject- Template variable values by key, substituted for $key as the dashboard does, e.g. {"env": ["production"]}. Use a dashboard's defaultValues from get-dashboards.
launchdarklymcp_query_funnelCount how many sessions (or other groups) reach each step of an ordered funnel, where each step is a logs, traces, or product-analytics events search query, e.g.Read-onlyQuery Funnel
Count how many sessions (or other groups) reach each step of an ordered funnel, where each step is a logs, traces, or product-analytics events search query, e.g. step=landing then step=signup. Step N counts groups that matched every step up to N; with strictOrder each step must also come strictly after the previous one. Returns per-step counts and conversion ratios as totals over the whole window, not time buckets; with breakdownBy, one funnel per cohort in groups.
Inputs
productTypestringrequired- Source every step searches: logs, traces, or paevents for product-analytics events (track, page and screen views, clicks; filter custom events with type="track" key="<name>").one of
logstracespaevents projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- ISO 8601 start time with a timezone, e.g. 2024-01-15T10:00:00Z.
stepsarrayrequired- Funnel steps in order, 1 to 10.
breakdownBystring- Key, or array of keys, splitting the funnel into cohorts, e.g. environment. Each cohort's group lists the values in the same order.
breakdownLimitnumber- Maximum cohorts returned with breakdownBy, largest first; 1 to 100, defaults to 10.
endDatestring- ISO 8601 end time with a timezone. Defaults to now.
groupBystring- Key, or array of keys, identifying who moves through the funnel. Defaults to secure_session_id; use e.g. context.contextKeys.user to follow users across sessions. Records with an empty key are skipped.
querystring- Base filter ANDed into every step, e.g. service_name=web. Empty adds no filter. Query syntax: see QUERY SYNTAX in the search-aggregations tool description; a bad clause is dropped silently and widens results. LOG SEARCH: to find logs that mention or contain some words, the query is just those words: logs mentioning a connection reset means query: connection reset. Bare words search the log message as whole words (graphql request matches messages with both words); every other field is an attribute. There is no contains operator and no message prefix is needed: message contains "x" also requires the words message and contains. Common attributes: level, service_name, service_version, environment, source, secure_session_id, trace_id, span_id, code.filepath, code.function, host.name. secure_session_id EXISTS keeps only logs tied to a session. SPEED: bare words in the message (recovered panic) are whole-word, index-assisted matches; *x*, "quoted phrases" and message:"..." / message="..." are substring scans that read every message in the window and can time out over days. Write the words bare with no field, operator or quotes (query: recovered panic, not "recovered panic", message:"recovered panic" or message contains "recovered panic"), even for multi-word requests; use *x* or a quoted phrase only when the user asks for an exact phrase or the bare words return too much, or add an attribute filter (service_name=..., level=error).
strictOrderboolean- When true, a group counts for a step only if its first matching record comes strictly after its record for the previous step. Defaults to false (any order).
launchdarklymcp_search_aggregationsCompute time-bucketed aggregates (counts, sums, averages, percentiles) for a product type; prefer it to raw queries for trends, group comparisons, or windows over 24 hours; for services ranked by error rate, request count or p95, or one service's health by endpoint, use search-service-map with include health.Read-onlySearch Aggregations
Compute time-bucketed aggregates (counts, sums, averages, percentiles) for a product type; prefer it to raw queries for trends, group comparisons, or windows over 24 hours; for services ranked by error rate, request count or p95, or one service's health by endpoint, use search-service-map with include health. Pass expressions or the functionType and column shorthand, not both. For metrics the column is value; for traces duration, in nanoseconds. Each expression is labelled with the aggregator the backend ran; check it. If estimated is true, values are sampled (see sampling); set exact for exact values, and heed low_sample: a sampled percentile over few rows is noise. For a monotonic counter, Sum over the window is its increase. For counts per hour or per day, set bucketCount to the number of hours or days; rate is only for per-second style rates. Ratios: series and formulas; period-over-period: compareTo; is it abnormal: anomaly; metric to trace: exemplars; dropped at ingest: includeIngest. populationFunctionType aggregates twice, per groupBy value then across values, e.g. the Max of each pod's Avg. QUERY SYNTAX (summary; load-skill observability/querying-patterns has the full grammar): a filter only, no pipes, SELECT or aggregation; empty matches everything in the window. - key=value with = != < <= > >= EXISTS NOT EXISTS. Adjacent terms are AND; OR, NOT and parentheses group (NOT binds tightest, then AND, then OR); service_name=(api OR worker) groups values. - = is exact and case-sensitive. A * makes an unanchored, case-insensitive contains match; anchor with a regex: span_name=/^gorm\./. A bare term matches a whole word of the default key (log message, span name, error event). - In key=value, quote a value containing spaces or = > < : ! ( ): url.query="*utm_source=newsletter*", not url.query=*utm_source=newsletter*. Bare terms with no key need no quotes: quoting them turns whole-word matches into a slower substring scan. - Durations: 500ms, 2s, 24h (integers; no d). Traces duration is in nanoseconds. - Keys are case-sensitive snake_case. Confirm one with get-keys search=<name>; list real values with get-keys key=<name>. SILENT FAILURES: invalid syntax never errors; the bad clause is dropped and results get WIDER. key= with no value adds no filter; a trailing key!= negates the previous clause. Check that a filter narrowed the results before concluding data is absent. SERVICE NAMES: one system may report under several environment-prefixed service_name values (prod-api, staging-api, prod-api-worker). Before concluding a count is complete, list the family with get-keys key=service_name search=<name> and filter with service_name=(a OR b); a * wildcard is an unanchored contains match and also pulls in sibling services.
Inputs
productTypestringrequired- Data to aggregate. Use metrics for OpenTelemetry metric data points, paevents for product-analytics events (filter custom events with type="track" key="<name>"), and events only for the legacy session_events source (filter with event="<name>").one of
errorstracesrequestslogssessionsmetricspaeventsevents projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
anomalyboolean- Fit an expected band to each group's series and flag buckets outside it: each series gains expected_lower and expected_upper, and anomaly lists the anomalous buckets. Needs one expression, bucketCount of at least 8, and no series, rate or populationFunctionType. Slower: the backend fits a model per group.
anomalyDirectionstring- With anomaly: flag values above the band, below it, or both (default).one of
bothabovebelow anomalySensitivitynumber- With anomaly: the share of normal values the band covers, 0.5-0.99, default 0.95. Higher flags fewer, more extreme buckets.
bucketCountnumber- Number of time buckets, at most 300. Defaults to 10, so omitting it returns a time series. Set it to 1 for a single total per group over the whole window.
columnstring- Field for functionType; required for every functionType except Count.
compareTostring- Period-over-period offset: a whole number with m, h, d or w, e.g. 1h, 1d, 1w. Reruns the same query over the window shifted back by it and adds the earlier values with the same bucket position, group and column: previous_values on each series, or previous (keyed by expression) on each row; comparison_window gives the shifted dates. A group missing from the earlier top groups has no previous value.
endDatestring- End, same formats. Defaults to now.
environmentsarray- Exact environment values to restrict to, e.g. ["Production"]; values are case-sensitive, so list them with get-keys key=environment.
exactboolean- Read every matching row instead of a sample. Slower on wide windows. Set it when the answer needs a precise count, a small or rare-event count, or a distinct count, or when a previous response had estimated true. Defaults to false.
exemplarLimitnumber- With exemplars: how many to return, 1-50, default 10.
exemplarsboolean- productType metrics only: also return exemplars, the trace and session IDs recorded with matching data points, each with get_trace arguments to open the trace. Kept for 30 days.
expressionsarray- Aggregations per bucket, for several at once. Every aggregator except Count needs a column. Without expressions or functionType, a plain Count. RECIPES: first and last seen per group: expressions [{"aggregator":"Min","column":"timestamp"},{"aggregator":"Max","column":"timestamp"}] with bucketCount 1; values are Unix seconds. Browser web vitals are metrics named LCP, INP, CLS, FCP, TTFB, and FID (productType metrics, column value, group by metric_name and filter service_name to the frontend); CLS is unitless, the rest are milliseconds, and P75 is the usual summary.
formulasarray- Expressions over the series letters, evaluated per bucket and group: + - * / ^, parentheses and numbers, e.g. 100 * b / a for an error percentage. Each formula is one output column, named by its label or else the formula. Divide by zero or a missing series value gives no metric_value. Defaults to one formula per series letter, which returns the series themselves.
functionTypestring- Shorthand for one expression, with column. Do not combine with expressions.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSum groupBystring- Key, or array of keys for a composite group, e.g. service_name or ["service_name","level"]; metric_name for metrics. Each bucket's group lists the values in the same order.
groupByLimitnumber- Maximum groups returned when groupBy is set, at most 100. Defaults to 5. Groups are ranked by rankBy, highest first; set bucketCount to 1 for many groups.
includeIngestboolean- Also return ingest: the project's sampling rate, per-minute rate limit, exclusion query, enabled filter rules and quota state for this product, any of which drops data before it is stored; completeness_note says in one line when this product is sampled, rate-limited, filtered or over quota right now. Use it when counts look too low or a spike looks capped.
includeOtherboolean- With groupBy, also return one series per time bucket that folds every group past groupByLimit, marked is_other with group "Other", so the groups add up to the ungrouped total. Count, Sum, Min and Max only. Defaults to false.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
minCountnumber- With groupBy, skip groups with fewer records than this over the whole window (for metrics, observations), so rare or junk values do not take the top slots. The response lists ranked_groups with each group's rank_value and count.
populationFunctionTypestring- Second-pass aggregator for time vs space aggregation. Each groupBy value (e.g. k8s.pod.name) is first reduced inside each bucket with the expression's aggregator, then those per-value results are reduced across values with this one: aggregator Avg, populationFunctionType Max is the max across pods of each pod's average. The groups collapse into one series, so group is empty and groupByLimit is ignored. Needs groupBy; not with series.one of
CountMinAvgP50P75P90P95P99MaxSum querystring- Filter, e.g. error EXISTS AND service_name=foo. Empty aggregates all records. Query syntax: see QUERY SYNTAX in this tool's description. GROUPING SPANS: server spans from HTTP middleware are often named only by method (GET, POST). To rank or compare endpoints, filter span_kind=Server and group by http.route, not span_name. When middleware adds an inner server span, both spans carry http.route and route counts are about twice the request count; the span_name grouping (bare GET next to GET /route) shows whether that applies.
rankByobject- Aggregation that picks the top groups, highest first, e.g. {"aggregator":"Count","column":""} for the busiest groups while expressions report P95. Defaults to the first expression. Count and CountDistinctKey rank by record count; for metrics, Count ranks by observations.
rankOrderstring- With groupBy: DESC (default) keeps the groups with the largest rankBy value, ASC the smallest, e.g. the least-requested routes or the services with the lowest p50.one of
DESCASC ratestring- Return each bucket's Count or Sum as a rate: the value divided by bucket_window_seconds (the bucket width, also returned), times 60 for per_minute or 3600 for per_hour. Use it for request or error rates instead of dividing yourself. Rejected for other aggregators and with formulas; with series alone, each series comes back as a rate.one of
per_secondper_minuteper_hour seriesarray- Up to five input series for formulas, each with its own filter and one aggregator; they share productType, the window, groupBy and buckets. With series, leave query, functionType, column and expressions unset. Each series ranks its own top groups, so a group outside one series' top groups gives a null formula value.
servicesarray- Exact service_name values to restrict to, e.g. ["checkout-api"]. Same rows as service_name=(a OR b) in query, but with environments also set a sampled query reads a finer sample.
launchdarklymcp_search_change_historyQuery the audit log to find what changed in a LaunchDarkly account.Read-onlySearch Change History
Query the audit log to find what changed in a LaunchDarkly account. Returns changes newest first with who made each change and what they did. Filter by project, environment, resource kind or key, tags, text, and ISO 8601 dates. resourceKey requires resourceKind, the resource type such as flag, segment, view, or member; use the kind the request names, and if it names a key without its kind, ask which kind it is instead of omitting it. When hasMore is true, use nextBefore as endDate for the next page. Timestamps in the result are UTC.
Inputs
endDatestring- No description.
envstring- Environment key. If the user hasn't named one, ask; don't guess.
limitinteger- No description.
projectKeystring- Project key. If the user hasn't named one, ask; don't guess.
querystring- No description.
resourceKeystring- Set resourceKind with it.
resourceKindstring- Required whenever resourceKey is set. The resource type the request names, such as flag, segment, view, or member.
startDatestring- No description.
tagsarray- No description.
launchdarklymcp_search_contextsSearch for stored LaunchDarkly contexts in an environment by kind, key, or attribute value.Read-onlySearchContexts
Search for stored LaunchDarkly contexts in an environment by kind, key, or attribute value. Returns context records including their stored attributes (e.g., merchantCountryCode, disbursementRail) and when the context was last seen.
Inputs
environmentKeystringrequired- No description.
projectKeystringrequired- No description.
continuationTokenstring- No description.
filterstring- No description.
kindstring- No description.
limitnumber- No description.
launchdarklymcp_search_docsSearch LaunchDarkly documentation to retrieve authoritative reference material for flags, targeting rules, experiments, segments, AgentControl configs, SDKs, API fields, rollouts, metrics, and more.Read-onlySearchDocs
Search LaunchDarkly documentation to retrieve authoritative reference material for flags, targeting rules, experiments, segments, AgentControl configs, SDKs, API fields, rollouts, metrics, and more.
Inputs
querystringrequired- No description.
launchdarklymcp_search_error_groupsQuery error groups whose occurrences match a filter in a time window.Read-onlySearch Error Groups
Query error groups whose occurrences match a filter in a time window. Only OPEN groups unless state says otherwise. Each group's in_window block covers only matching occurrences; its event, serviceName, and environments are first-seen values, and a group can hold unrelated messages. Filter on exception.message; event and bare terms match only the original title. For one session's groups, query secure_session_id=<id> or use get-session-details. For one group's occurrences, trace_id and session, use get-error-group.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
countnumber- Groups to return, at most 50. Defaults to 10.
endDatestring- End, same formats. Defaults to now.
pagenumber- Page number. Defaults to 1.
querystring- Filter, e.g. exception.message="Cannot use 'in' operator*" AND service_name=web. Empty returns all groups. Query syntax: see QUERY SYNTAX in the search-aggregations tool description; a bad clause is dropped silently and widens results. FLAG FILTERS: feature_flag.key=<key> feature_flag.result.value=<value> (also feature_flag.result.reason.kind, feature_flag.context.key) keeps the records of requests that evaluated that flag value: on errors and logs through the flag evaluations recorded in the same trace, on traces through the span's own evaluation events. Use it to compare failures between variations.
sortstring- Order, newest or largest first: last_seen (default) or first_seen of a matching occurrence in the window, count of matching occurrences, sessions affected (groups with no session, such as backend errors, are left out), or spike: new or growing groups first, by window count over the count in the same-length window just before, with in_window.baseline_count, spike_ratio and new_in_window. count, sessions and spike reach the top 50 groups.one of
last_seenfirst_seencountsessionsspike statestring- Workflow state of the groups to return. Defaults to OPEN, which leaves out resolved and ignored groups; ANY returns every state. Ignored when query already filters on status. To also leave out snoozed groups, add snoozed_until<"2024-01-15T10:00:00" (now, UTC) to query.one of
OPENRESOLVEDIGNOREDANY
launchdarklymcp_search_flag_evaluationsQuery feature flag evaluations recorded on spans.Read-onlySearch Flag Evaluations
Query feature flag evaluations recorded on spans. With sessionSecureId: that session's evaluations (distinct: one row per flag with values and counts); set startDate to its created_at and endDate three hours later. Without it: counts across the project per flag, value and environment for flagKey (or a query), to see who was served what; include error_groups (needs variation) adds error groups sessions hit after being served that value; include sessions adds sessions served it. Pass only extra filters in query.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
directionstring- Timestamp sort direction. Defaults to DESC.one of
ASCDESC distinctboolean- Return one row per flag with each value the session saw and its evaluation count, instead of raw evaluations. Use it to learn which variation a user got. Defaults to false.
endDatestring- End, same formats. Defaults to now.
environmentKeystring- Without sessionSecureId: LaunchDarkly environment key (e.g. production) to count only that environment's evaluations.
flagKeystring- Without sessionSecureId: the flag key to count evaluations of across the project.
includearray- Without sessionSecureId and with flagKey: also return error_groups (error groups that sessions hit after being served variation; requires variation) and sessions (sessions served the flag, or variation when set).
includeLimitnumber- Rows per include part, at most 50. Defaults to 10.
limitnumber- Evaluations to return, at most 100. Defaults to 50. With distinct or without sessionSecureId, flag, value and environment rows to read, at most 500, defaulting to 200.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
querystring- Extra filters, e.g. service_name=checkout-web. Empty applies only the session scope.
sessionSecureIdstring- Secure ID of the session. Omit it to search the whole project for flagKey.
variationstring- Without sessionSecureId: the served value the include parts are about, e.g. true or control. Required with include error_groups: set it whenever the question is about users served one value. Counts still cover every value.
launchdarklymcp_search_log_patternsCluster the logs matching a filter into message templates, with ids, numbers and other variable parts masked, each with its count and the newest example.Read-onlySearch Log Patterns
Cluster the logs matching a filter into message templates, with ids, numbers and other variable parts masked, each with its count and the newest example. Use it to find the distinct shapes of an error or a noisy message in one call instead of paging search-logs; set patternKeys to ["error.message"] to template an attribute instead of the message. The log level key is level (level=error), not severity. It scans at most the newest 100,000 matching logs: when truncated is true, narrow the window or the filter for complete counts.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
endDatestring- End, same formats. Defaults to now.
limitnumber- Patterns to return, most frequent first, at most 200. Defaults to 20.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
patternKeysarray- Keys whose values are templated together, e.g. ["error.message"] or ["service_name","message"]. Defaults to ["message"]. Adding a key such as service_name splits each pattern by its value.
querystring- Filter, e.g. level=error AND service_name=api. Empty clusters all logs.
launchdarklymcp_search_logsQuery raw log entries (timestamp, level, message, service, attributes) in a time window.Read-onlySearch Logs
Query raw log entries (timestamp, level, message, service, attributes) in a time window. An error-level log that recorded an error carries error_group_secure_id for get-error-group. Long values such as stack traces are shortened; to read one in full, repeat the query with fullAttributes, e.g. ["code.stacktrace"]. fields picks attributes; maxTokens bounds the response. To scope to a session, query secure_session_id=<id> with startDate at the session's created_at and endDate three hours later. Use search-aggregations for counts or trends.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
cursorstring- page.next_cursor from the previous result, to get the next page. Keep the other arguments unchanged. Omit for the first page.
directionstring- Timestamp sort direction. Defaults to DESC.one of
ASCDESC endDatestring- End, same formats. Defaults to now.
environmentsarray- Exact environment values to restrict to, e.g. ["Production"]; values are case-sensitive, so list them with get-keys key=environment.
fieldsarray- Attribute keys to return; others are left out. A key covers its nested keys and * matches any characters, e.g. ["error.*","http.route"]. Core fields (timestamp, level, message, service, trace and span IDs) are always returned. Omit for every attribute.
fullAttributesarray- Attribute keys to return untruncated, e.g. ["code.stacktrace"]; a prefix such as code covers its nested keys and message covers the log message. By default values over 500 characters (messages over 2000) are shortened and a value repeated inside a longer one is replaced by a reference. ["*"] returns everything in full and caps limit at 10.
limitnumber- Entries to return, at most 50. Defaults to 20.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
querystring- Filter, e.g. level=error AND service_name=api, or bare unquoted message words such as recovered panic. Empty returns all logs. Query syntax: see QUERY SYNTAX in the search-aggregations tool description; a bad clause is dropped silently and widens results. LOG SEARCH: to find logs that mention or contain some words, the query is just those words: logs mentioning a connection reset means query: connection reset. Bare words search the log message as whole words (graphql request matches messages with both words); every other field is an attribute. There is no contains operator and no message prefix is needed: message contains "x" also requires the words message and contains. Common attributes: level, service_name, service_version, environment, source, secure_session_id, trace_id, span_id, code.filepath, code.function, host.name. secure_session_id EXISTS keeps only logs tied to a session. SPEED: bare words in the message (recovered panic) are whole-word, index-assisted matches; *x*, "quoted phrases" and message:"..." / message="..." are substring scans that read every message in the window and can time out over days. Write the words bare with no field, operator or quotes (query: recovered panic, not "recovered panic", message:"recovered panic" or message contains "recovered panic"), even for multi-word requests; use *x* or a quoted phrase only when the user asks for an exact phrase or the bare words return too much, or add an attribute filter (service_name=..., level=error). FLAG FILTERS: feature_flag.key=<key> feature_flag.result.value=<value> (also feature_flag.result.reason.kind, feature_flag.context.key) keeps the records of requests that evaluated that flag value: on errors and logs through the flag evaluations recorded in the same trace, on traces through the span's own evaluation events. Use it to compare failures between variations.
servicesarray- Exact service_name values to restrict to, e.g. ["checkout-api"]. Same rows as service_name=(a OR b) in query, but with environments also set a sampled query reads a finer sample.
launchdarklymcp_search_membersSearch account members by name or exact emails.Read-onlySearch Members
Search account members by name or exact emails.
Inputs
emailsarray- No description.
limitinteger- No description.
querystring- No description.
launchdarklymcp_search_service_mapServices from trace data in a window.Read-onlySearch Service Map
Services from trace data in a window. include picks the parts (default dependencies). dependencies: without service, services and {source, target} pairs where source calls target, narrowed with search; with service, its upstream callers and downstream callees with calls, errors and latency. health: requests, errors, error_rate and p50/p95/p99 latency per service, ranked with sortBy (e.g. error_rate); with service, also per http.route.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
directionstring- Dependencies with service: upstream for its callers, downstream for the services it calls, or both (default).one of
upstreamdownstreamboth endDatestring- End, same formats. Defaults to now.
environmentIdsarray- Dependencies with service: LaunchDarkly environment IDs to scope the edges to, as recorded in the traces key environment_id (see get-keys key=environment_id).
includearray- Parts to return: dependencies (the call graph, default) and health (RED stats per service, under health). Pass both for both.
limitnumber- With health. Services, and routes with service, to return, at most 50. Defaults to 10.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
searchstring- Case-insensitive substring of service names, e.g. production-. For dependencies without service, keeps matching services and every edge touching one.
servicestring- One exact service_name, e.g. production-api. With dependencies, returns only its callers and callees with per-edge stats; with health, also request stats per http.route.
sortBystring- With health. Ranking for services and routes: errors (default), error_rate, or spans (request count for routes).one of
errorserror_ratespans
launchdarklymcp_search_sessionsQuery sessions in a time window; set detailed for replay, privacy, and billing fields.Read-onlySearch Sessions
Query sessions in a time window; set detailed for replay, privacy, and billing fields. length and active_length are in milliseconds. To fetch one session by secure_id, use a wide window and count 1. For the longest or shortest sessions, set sortField to length (total duration), not active_length. When you reference sessions from this tool, wrap each session ID in <session-id></session-id> so the UI can link it.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
countnumber- Sessions to return, at most 50. Defaults to 10.
detailedboolean- Also return replay bookkeeping, privacy and billing flags, and per-event-type counts (client_id, fingerprint, event_counts, privacy_setting, ...). Defaults to false.
endDatestring- End, same formats. Defaults to now.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
pagenumber- Page number, from 1. Defaults to 1. The result's page.next_page names the next one.
querystring- Filter, e.g. identifier='user@example.com' AND has_errors=true, or secure_id=<id>. Empty returns all sessions. Query syntax: see QUERY SYNTAX in the search-aggregations tool description; a bad clause is dropped silently and widens results. RELATIONSHIP SEARCH: session filters such as visited-url=*/a* visited-url=*/b* match in ANY order. To relate events, join span(A) / no_span(A) and log(A) / no_log(A) blocks with AND, OR, or THEN: span(A) THEN span(B) means B strictly after A; span(A) THEN no_span(B) is a drop-off, and no_span / no_log may only be the last step. Inside a block use span keys, not session keys: view_name="/checkout" (not visited-url), span_name="click" event.text="Pay Now", span_name="track" key="order_completed". Session keys (country, browser_name, identifier, length) stay outside blocks. Example: country=US span(view_name="/checkout") THEN no_span(span_name="track" key="order_completed")
sortDescboolean- Sort descending. Defaults to true.
sortFieldstring- Field to sort by: created_at (start time), length (total session duration; use it for longest or shortest sessions) or active_length (time the user was active). Defaults to created_at.
launchdarklymcp_search_stale_flagsFind cleanup candidates, prioritized as never requested, inactive beyond the threshold, or launched without recent changes.Read-onlySearch Stale Flags
Find cleanup candidates, prioritized as never requested, inactive beyond the threshold, or launched without recent changes. Timestamps in the result are UTC.
Inputs
projectKeystringrequired- the project key
envstring- environment to analyze; required unless useCriticalEnvs is true
evalWindowinteger- evaluation count window in days
inactiveDaysinteger- days without requests before a flag is stale
includeEvalCountsboolean- include total SDK evaluations by environment
includeOnlystring- temporary (default), permanent, or all
maintainerIdstring- maintainer member ID
maintainerTeamKeystring- maintainer team key
useCriticalEnvsboolean- analyze the first critical environment instead of env
viewstring- view key
launchdarklymcp_search_timeline_eventsQuery timeline indicator events for one session (clicks, navigations, track and identify calls, focus and tab changes) in time order.Read-onlySearch Timeline Events
Query timeline indicator events for one session (clicks, navigations, track and identify calls, focus and tab changes) in time order. Filter with types, startTime and endTime, and page with limit and offset. Errors, network requests and flag evaluations are not timeline events; use get-session-details and search-flag-evaluations for those.
Inputs
projectKeystringrequired- LaunchDarkly project key.
sessionSecureIdstringrequired- Secure ID of the session, e.g. from search-sessions.
endTimestring- ISO 8601 time with a timezone, or relative to now; keep events at or before it.
limitinteger- Events to return, at most 500. Defaults to 100.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
offsetinteger- Matched events to skip, from next_offset of the previous call. Defaults to 0.
startTimestring- ISO 8601 time with a timezone, or relative to now, e.g. now-15m; keep events at or after it.
typesarray- Event tags to keep, case-insensitive, e.g. ["Click","Navigate"]. Common tags: Click, Navigate, Track, Identify, Focus, TabHidden, Reload, Referrer, Viewport; type_counts lists the tags this session has. Omit for every tag.
launchdarklymcp_search_tracesQuery raw spans in a window of at most 24 hours; use search-aggregations for longer windows.Read-onlySearch Traces
Query raw spans in a window of at most 24 hours; use search-aggregations for longer windows. view=traces returns one row per trace instead, to find slow or failing requests. Long values are shortened; fullAttributes reads them whole, fields picks attributes. For the slowest spans, set sortColumn=duration and sortDirection=DESC; duration is in nanoseconds. It reads a sample; for the true slowest, get search-aggregations Max(duration) with exact set to true, then search duration>=it. To scope to a session, query secure_session_id=<id> from its created_at to three hours later.
Inputs
projectKeystringrequired- LaunchDarkly project key.
startDatestringrequired- Start: ISO 8601 (2024-01-15T10:00:00Z), a date, relative (now-1h, now-7d) or epoch seconds.
cursorstring- page.next_cursor from the previous result, to get the next page. Keep the other arguments unchanged. Omit for the first page. Not available with sortColumn.
directionstring- Timestamp sort direction. Defaults to DESC.one of
ASCDESC endDatestring- End, same formats. Defaults to now.
environmentsarray- Exact environment values to restrict to, e.g. ["Production"]; values are case-sensitive, so list them with get-keys key=environment.
fieldsarray- Attribute keys to return; others are left out. A key covers its nested keys and * matches any characters, e.g. ["http.*","error*"]. Core span fields (span name, service, duration, status, IDs) are always returned. Omit for every attribute.
fullAttributesarray- Attribute keys to return untruncated, e.g. ["code.stacktrace"]; a prefix such as code covers its nested keys. By default values over 500 characters are shortened and a value repeated inside a longer one is replaced by a reference. ["*"] returns everything in full and caps limit at 10.
limitnumber- Traces to return, at most 50. Defaults to 20.
maxTokensnumber- Response token budget, 500-100000, default 20000; rows past it are dropped and truncation_note says how to get them.
querystring- Filter, e.g. span_name="getUserData" AND service_name=auth. Empty returns all traces. Query syntax: see QUERY SYNTAX in the search-aggregations tool description; a bad clause is dropped silently and widens results. RELATIONSHIP SEARCH: span(A) span(B) means the trace has both; span(A) OR span(B) either; span(A) THEN span(B) a B span that started strictly after A in the same trace; span(A) THEN no_span(B) no B after A (no_span only as the last step). Put one span's conditions inside one span(...). parent_span_id NOT EXISTS selects root spans; any_span(...), child_span(...), parent_span(...), root_span(...) match other spans in the same trace, top level only, never negated or used as THEN steps. GROUPING SPANS: server spans from HTTP middleware are often named only by method (GET, POST). To rank or compare endpoints, filter span_kind=Server and group by http.route, not span_name. When middleware adds an inner server span, both spans carry http.route and route counts are about twice the request count; the span_name grouping (bare GET next to GET /route) shows whether that applies. FLAG FILTERS: feature_flag.key=<key> feature_flag.result.value=<value> (also feature_flag.result.reason.kind, feature_flag.context.key) keeps the records of requests that evaluated that flag value: on errors and logs through the flag evaluations recorded in the same trace, on traces through the span's own evaluation events. Use it to compare failures between variations.
servicesarray- Exact service_name values to restrict to, e.g. ["checkout-api"]. Same rows as service_name=(a OR b) in query, but with environments also set a sampled query reads a finer sample.
sortColumnstring- Column to sort by, e.g. duration. Defaults to timestamp.
sortDirectionstring- Direction for sortColumn. Defaults to DESC.one of
ASCDESC viewstring- spans (default) returns span rows. traces returns one row per trace, matching when any span matches; it takes only query, the window, limit and cursor.one of
spanstraces
launchdarklymcp_apply_agent_config_approvalApply an already-approved AgentControl Config approval request.WriteApply Agent Config Approval
Apply an already-approved AgentControl Config approval request. Call it only after the request's reviewStatus is approved; it never approves. If reviewStatus is declined or pending, do not apply: report it to the user. A result with scheduled: true is not live until executionDate. Arguments: id and confirm: true, plus an optional comment; nothing else. Unlike get-agent-config-approvals, it takes no projectKey, configKey, or env.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
idstringrequired- No description.
commentstring- No description.
launchdarklymcp_clone_ai_config_variationClone an existing AI Config variation to create a new variation with the same settings.WriteCloneAiConfigVariation
Clone an existing AI Config variation to create a new variation with the same settings.
Inputs
configKeystringrequired- The key of the AI Config that contains the variation to clone.
projectKeystringrequired- The project key identifying which project contains the AI Config.
variationIdstringrequired- The ID of the variation to clone.
namestring- The name for the new cloned variation.
launchdarklymcp_create_agent_configCreate an AgentControl Config or one of its variations.WriteCreate Agent Config
Create 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).
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
resourcestringrequired- config: a new config, optionally with its first variation. variation: a new variation on configKey.one of
configvariation configKeystring- The config's key: the new config (resource=config) or the config to add the variation to (resource=variation).
descriptionstring- No description.
evaluationMetricKeystring- No description.
instructionsstring- The variation's system prompt.
isInvertedboolean- True when a lower evaluation metric value is better. False when a higher value is better.
judgeConfigurationobject- No description.
maintainerIdstring- resource=config: a member ID.
maintainerTeamKeystring- resource=config: a team key.
messagesarray- No description.
modestring- No description.one of
agentcompletionjudge modelConfigKeystring- A model config key from get-ai-model-configs: a global Provider.model-id key such as OpenAI.gpt-4o, or a custom model config's own key.
modelNamestring- No description.
namestring- resource=config: the config's name.
parametersobject- No description.
skillsarray- Agent skills to attach, as {key, version} from get-agent-skills. On update, the array replaces the attached skills; [] detaches them all.
sourceVariationKeystring- resource=variation: clone this variation.
tagsarray- No description.
toolsarray- No description.
variationKeystring- The new variation's key (resource=config: its first variation).
variationNamestring- The new variation's name.
viewKeysarray- No description.
launchdarklymcp_create_agent_config_approvalCreate an approval request for an AgentControl Config change without approving it.WriteCreate Agent Config Approval
Create an approval request for an AgentControl Config change without approving it. Include at least one reviewer in notifyMemberIds or notifyTeamKeys. 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. A human approves or declines the request in LaunchDarkly; you cannot. Open approvalRequest.url in the user's browser when your client can (for example with open or xdg-open, or a browser tool), and show the link either way. Check the outcome once the user says the request has been reviewed, not in a loop. Check the outcome with get-agent-config-approvals and the request's id.
Inputs
configKeystringrequired- No description.
descriptionstringrequired- No description.
instructionsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
envstring- Environment key. If the user hasn't named one, ask; don't guess.
notifyMemberIdsarray- No description.
notifyTeamKeysarray- No description.
launchdarklymcp_create_agent_graphCreate a new agent graph in a project.WriteCreateAgentGraph
Create a new agent graph in a project. An agent graph defines a directed graph of AgentControl Configs for multi-agent workflows. Provide a rootConfigKey and edges to define the graph structure, or create the graph with just metadata and add edges later via update-agent-graph. If rootConfigKey or edges are provided, both must be present.
Inputs
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
descriptionstring- No description.
edgesarray- No description.
rootConfigKeystring- No description.
launchdarklymcp_create_agent_skillCreate an agent skill from SKILL.md content.WriteCreate Agent Skill
Create an agent skill from SKILL.md content. Provide a unique key, a display name, and the verbatim markdown. The skill starts at version 1. Attach it to a variation with create-agentcontrol-config-variation or update-agentcontrol-config-variation by passing skills: [{key, version}].
Inputs
keystringrequired- No description.
markdownstringrequired- The SKILL.md content, verbatim.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
descriptionstring- No description.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
tagsarray- No description.
launchdarklymcp_create_ai_configCreate a new AI Config in a project.WriteCreateAiConfig
Create a new AI Config in a project. An AI Config manages AI model configurations with feature flag-style targeting and experimentation.
Inputs
keystringrequired- A unique key for the AI Config.
namestringrequired- A human-readable name for the AI Config.
projectKeystringrequired- The project key where the AI Config will be created.
descriptionstring- An optional description for the AI Config.
tagsarray- Optional list of tags to associate with the AI Config.
launchdarklymcp_create_ai_config_variationCreate a new variation for an AI Config with specific model, prompt, and parameter settings.WriteCreateAiConfigVariation
Create a new variation for an AI Config with specific model, prompt, and parameter settings.
Inputs
configKeystringrequired- The key of the AI Config to create a new variation for.
namestringrequired- The name for the new variation.
projectKeystringrequired- The project key identifying which project contains the AI Config.
modelobject- Model settings for the new variation such as model name and parameters.
promptarray- Prompt messages array for the new variation.
launchdarklymcp_create_ai_model_configCreate a custom AI model config for a model that is not in the global catalog.WriteCreate Ai Model Config
Create 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.
Inputs
idstringrequired- The provider's model ID.
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
costPerCachedInputTokennumber- No description.
costPerInputTokennumber- No description.
costPerOutputTokennumber- No description.
customParamsobject- No description.
iconstring- No description.
paramsobject- No description.
providerstring- No description.
tagsarray- No description.
launchdarklymcp_create_ai_toolCreate a new AI tool definition in a project.WriteCreateAiTool
Create a new AI tool definition in a project. The schema should be a raw JSON Schema object with type, properties, and required fields (e.g. {"type": "object", "properties": {...}}). Do NOT use the OpenAI function calling wrapper format. After creation, attach the tool to a variation using update-agentcontrol-config-variation.
Inputs
descriptionstringrequired- No description.
keystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
schemaobjectrequired- No description.
customParametersobject- Application metadata, not sent to the model.
tagsarray- No description.
launchdarklymcp_create_alertCreate a new observability alert that fires when a metric crosses a threshold.WriteCreateAlert
Create a new observability alert that fires when a metric crosses a threshold.
Inputs
functionTypestringrequired- Aggregator to monitor. Every value except Count also needs functionColumn, e.g. P95 with functionColumn duration for trace latency. Sessions and Errors alerts always use Count; any other value is ignored for them.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSum namestringrequired- Alert name, e.g. High API Error Rate.
productTypestringrequired- Data source. LDCustomEvents is LaunchDarkly custom (metric) events, filtered with key=<event key> and environment_id=<environment ID>.one of
LogsTracesErrorsSessionsMetricsEventsLDCustomEvents projectKeystringrequired- LaunchDarkly project key.
autoInvestigationEnabledboolean- When true, each firing starts an AI investigation that posts its diagnosis to the destinations.
destinationsarray- Notification destinations.
evaluationDelaySecondsnumber- Seconds to wait before evaluating each window, so late-arriving data is counted. Defaults to 0.
functionColumnstring- Field to aggregate. Required for every functionType except Count: duration for trace latency (P95 of duration), value for metrics. Ignored for Sessions and Errors.
groupByarray- Dimension keys; the alert fires separately per group, e.g. ["service_name"]. Sessions alerts cannot be grouped; Errors alerts always group by ["event"].
investigationCooldownSecondsnumber- Minimum seconds between automatic investigations; keep it at or above thresholdCooldown. Defaults to 86400.
investigationPermissionModestring- read investigates and reports; read-write may also open a PR. Defaults to read.one of
readread-write investigationPromptstring- Standing instructions prepended to each investigation.
investigationRepositoriesarray- Repositories the investigation may read. Without them it cannot correlate a firing with a deploy.
messageContentstring- Custom text included in notifications.
noDataBehaviorstring- State when a window has no data: NORMAL treats it as healthy, ALERT fires, NO_CHANGE keeps the previous state. Defaults to NORMAL.one of
NORMALALERTNO_CHANGE populationFunctionTypestring- Two-level aggregation: functionType is computed per unit (the groupBy keys, e.g. a user key), then this aggregates across units, e.g. P99 of Sum per user. PercentUnits alerts on the percentage (0-100) of units that sent a query-matching event and needs populationQuery or populationWindow. Requires groupBy and a Constant threshold.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSumPercentUnits populationQuerystring- With populationFunctionType: filter selecting the events whose senders form the population (the denominator), e.g. key=(page_view OR session_start).
populationWindownumber- With populationFunctionType: population lookback in seconds, at least thresholdWindow. Defaults to thresholdWindow.
querystring- Filter in search syntax, e.g. service_name=api level=error.
sendResolvedAlertboolean- Also notify the destinations when the alert recovers.
tagsobject- Key/value metadata on the alert, e.g. {"team": "release", "service": "api"}.
thresholdConditionstring- Outside applies to Anomaly only. Defaults to Above.one of
AboveAboveOrEqualBelowBelowOrEqualEqualNotEqualOutside thresholdCooldownnumber- Seconds to wait before re-notifying while still alerting. Defaults to 1800.
thresholdTypestring- Constant compares against thresholdValue; Anomaly detects deviations. Defaults to Constant.one of
ConstantAnomaly thresholdValuenumber- Value to compare against. Required when thresholdType is Constant.
thresholdWindownumber- Evaluation window in seconds, e.g. 300 for the last 5 minutes. Defaults to 3600.
warnThresholdValuenumber- Optional lower-severity threshold, crossed before thresholdValue, for an early warning.
launchdarklymcp_create_approval_requestCreate an approval request for a flag change in an environment that requires approvals.WriteCreateApprovalRequest
Create an approval request for a flag change in an environment that requires approvals. Provide the same semantic patch instructions you would use for a direct change. The request will be reviewed by approvers before taking effect. Does NOT approve the request: that must be done by a human reviewer.
Inputs
descriptionstringrequired- No description.
envstringrequired- No description.
flagKeystringrequired- No description.
instructionsarrayrequired- No description.
projectKeystringrequired- No description.
commentstring- No description.
notifyMemberIdsarray- No description.
notifyTeamKeysarray- No description.
segmentKeystring- No description.
launchdarklymcp_create_automated_rollout_configRecord an automated rollout config in LaunchDarkly for a feature-flagged change.WriteCreateAutomatedRolloutConfig
Record an automated rollout config in LaunchDarkly for a feature-flagged change.
Inputs
environmentsarrayrequired- Per-environment rollout plan.
flagKeystringrequired- Key of the guarding flag, which must already exist.
projectKeystringrequired- LaunchDarkly project key.
endingVariationIdstring- Variation a multi-variate flag rolls out to. Boolean flags default to true.
executionModestring- parallel (default) starts environments independently; sequential releases them in array order.one of
parallelsequential prNumbernumber- Pull request number.
prUrlstring- Full pull request URL.
repoFullNamestring- GitHub repository as owner/repo.
requiredApplicationKeysarray- SDK-reported application ids that must all evaluate the flag before release, so tests, jobs, and other apps do not trigger it. Pass only ids already instrumented in the repository's SDK configuration; never guess, and omit when there are none. Not a LaunchDarkly application object id.
startingVariationIdstring- Variation a multi-variate flag rolls out from. Boolean flags default to false; multi-variate flags need both variation IDs, and setting only one is rejected.
launchdarklymcp_create_environmentCreate an environment in a LaunchDarkly project.WriteCreate Environment
Create 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.
Inputs
keystringrequired- No description.
namestringrequired- Display name, capitalized as the user wrote it, e.g. QA; not the key.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
colorstring- RGB hex color without #, such as F5A623. Defaults to d9f9eb.
confirmChangesboolean- No description.
criticalboolean- No description.
defaultTrackEventsboolean- No description.
defaultTtlinteger- Minutes the PHP SDK may cache flag rules. Defaults to 0.
requireCommentsboolean- No description.
secureModeboolean- No description.
sourceEnvstring- Key of an environment in the same project to copy flag configurations and segments from. Omit unless the user names one; don't guess.
tagsarray- No description.
launchdarklymcp_create_flagCreate a new feature flag in a project.WriteCreateFlag
Create a new feature flag in a project. Defaults to a boolean temporary flag. After creation the flag is OFF in all environments: use toggle-flag to enable it.
Inputs
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
clientSideAvailabilityobject- No description.
customPropertiesobject- No description.
defaultsobject- No description.
descriptionstring- No description.
kindstring- No description.one of
booleanmultivariate maintainerIdstring- No description.
maintainerTeamKeystring- No description.
tagsarray- No description.
temporaryboolean- No description.
variationsarray- No description.
viewKeysarray- No description.
launchdarklymcp_create_playgroundCreate a new LLM playground.WriteCreatePlayground
Create 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 display position.
Inputs
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
variantsarrayrequired- No description.
launchdarklymcp_create_prompt_snippetCreate a new reusable prompt snippet.WriteCreatePromptSnippet
Create a new reusable prompt snippet.
Inputs
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
textstringrequired- No description.
descriptionstring- No description.
tagsarray- No description.
launchdarklymcp_create_segmentCreate a new segment in a project environment.WriteCreateSegment
Create a new segment in a project environment. The segment is empty after creation — use update-segment-rules to add targeting rules or update-segment-targets to add individual context keys. Segment keys are immutable after creation: choose carefully. Pass viewKeys to link the new segment to one or more views at creation time (Views are an Enterprise feature).
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
descriptionstring- No description.
tagsarray- No description.
unboundedboolean- No description.
viewKeysarray- No description.
launchdarklymcp_create_viewCreate a new view in a project.WriteCreate View
Create 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.
Inputs
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
descriptionstring- No description.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
tagsarray- No description.
launchdarklymcp_createdashboardCreate a new empty dashboard (visualization) for organizing charts.WriteCreateDashboard
Create a new empty dashboard (visualization) for organizing charts.
Inputs
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
timePresetstring- No description.
variablesarray- Template variables that graph queries reference as $key, e.g. environment=$env.
launchdarklymcp_createdatasetCreate a new offline dataset for AI evaluation.WriteCreateDataset
Create a new offline dataset for AI evaluation. Provide a dataset name, filename, and format (csv, json, or jsonl). The dataset is created in pending status and must be uploaded separately. Returns the dataset ID and upload URL.
Inputs
filenamestringrequired- No description.
formatstringrequired- No description.one of
csvjsonl keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- No description.
emptyboolean- No description.
sizeBytesnumber- No description.
launchdarklymcp_createevaluationCreate a new AI evaluation definition.WriteCreateEvaluation
Create a new AI evaluation definition. An evaluation defines a comparison between AI Config variations using a dataset and judge criteria. After creation, use run-evaluation to start an evaluation run.
Inputs
generationModelstringrequired- No description.
generationProviderstringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
criteriaarray- No description.
evaluationModelstring- No description.
evaluationProviderstring- No description.
generationContextobject- No description.
messagesarray- No description.
parametersobject- No description.
promptSnippetsobject- No description.
toolsarray- No description.
variablesobject- No description.
launchdarklymcp_createexperimentCreate a new experiment on a flag or AgentControl Config.WriteCreateExperiment
Create a new experiment on a flag or AgentControl Config. An experiment measures the impact of different variations on specified metrics. You must provide the initial iteration definition including a hypothesis, metrics, treatments, and flag configuration. One treatment must be marked as the baseline. Use `methodology` to pick the results-analysis approach (`bayesian` default, `frequentist`, or `export_only` for data-export-only mode). Use `analysisConfig` to set thresholds and multiple-comparison correction. Use `iteration.attributes` to declare slicing dimensions and `iteration.covariateId` to enable stratified sampling.
Inputs
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
iterationobjectrequired- No description.
keystringrequired- No description.
namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
analysisConfigobject- No description.
dataSourcestring- No description.one of
launchdarklysnowflakedatabricks descriptionstring- No description.
holdoutIdstring- No description.
maintainerIdstring- No description.
methodologystring- No description.one of
bayesianfrequentistexport_only tagsarray- No description.
launchdarklymcp_creategraphAdd a chart/graph to an existing dashboard.WriteCreateGraph
Add a chart/graph to an existing dashboard.
Inputs
dashboardIdnumberrequired- Numeric dashboard ID from get-dashboards.
expressionsarrayrequired- Required unless cloneFrom is set. Aggregations, e.g. [{"aggregator":"Count","column":""}] or [{"aggregator":"P90","column":"duration"}].
productTypestringrequired- Required unless cloneFrom is set. Data source: Logs, Traces, Errors, Sessions, Metrics, PAEvents, or Events; case-insensitive. PAEvents is the product-analytics source the graph editor shows: filter custom events with type="track" key="<name>" and page or screen views with type="*_view" view_name="<path>". Events is the legacy session_events source, filtered with event="<name>".
projectKeystringrequired- LaunchDarkly project key.
titlestringrequired- Chart title, e.g. Error Rate by Service. Required unless cloneFrom is set.
typestringrequired- Required unless cloneFrom is set. Chart type: "Line chart" for trends, "Bar chart" for comparisons or histograms, "Table" for breakdowns, or "Heatmap".
bucketBystring- Field to bucket by. Defaults to Timestamp.
bucketCountnumber- Number of time buckets. Defaults to 12.
cloneFromobject- Graph to copy. Its full configuration is saved as a new graph on dashboardId, which may be another dashboard; fields set alongside override the copy.
comparisonModestring- Period-over-period comparison mode.
displaystring- Exact style value. Line chart: Line, Stacked, or Stacked area. Bar chart: Stacked or Grouped.
environmentsarray- Limit the chart to these LaunchDarkly environments.
formulasarray- Calculated series over metricSeries, e.g. A / B * 100 for an error rate; replaces the stored formulas.
groupByarray- Dimension keys from get-keys, e.g. ["level"].
groupByLimitnumber- Maximum series when groupBy is set; keep it small for high-cardinality keys such as URLs or account IDs. Defaults to 10.
heatmapSecureSessionIdstring- Heatmap only. secure_id of a session that visited the target page.
heatmapSessionTimestampstring- Heatmap only. ISO timestamp of that session's navigation to the page.
limitAggregatorstring- Aggregator that ranks groups for groupByLimit. Defaults to the first expression's aggregator, or Count when that is Count or CountDistinctKey.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSum limitColumnstring- Column ranked with limitAggregator, e.g. duration. Defaults to the first expression's column. Ignored for Count.
metricSeriesarray- Lettered input series (A, B, ...) for formulas; replaces the stored series. Without it the chart plots query and expressions.
querystring- Filter in search syntax, e.g. level=error. Must use the product type's event grammar for PAEvents and Events.
servicesarray- Limit the chart to these services.
showExemplarsboolean- Overlay representative data points.
launchdarklymcp_createmetricCreate a new metric in a LaunchDarkly project.WriteCreateMetric
Create a new metric in a LaunchDarkly project.
Inputs
keystringrequired- No description.
measureTypestringrequired- distinct counts each unit's unique values of the unitAggregationField column; it does not use valueColumn.one of
countoccurrencevaluedistinct namestringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
successCriteriastringrequired- No description.one of
HigherThanBaselineLowerThanBaseline analysisUnitsarray- No description.
dataSourceKeystring- No description.
denominatorobject- Denominator term of a ratio metric; the metric's own event is the numerator term. Custom metrics on a warehouse data source only: requires dataSourceKey.
descriptionstring- No description.
eventDefaultobject- Default for units that sent no event. value is only sent when disabled is false, because Gonfalon omits value when defaulting is disabled. The only supported value is 0; ratio metrics reject any other value.
eventKeystring- No description.
excludeUnitsWithoutEventsboolean- Leave units that sent no event out of the analysis instead of counting them as 0.
filtersobject- Count only events matching context attribute or event property clauses. Custom metrics only. A group joins clauses or further groups with and/or.
kindstring- No description.one of
custompageviewclicktrace maintainerIdstring- The ID of the member who maintains this metric.
percentileinteger- Analyze this percentile of unit values instead of the mean. Requires excludeUnitsWithoutEvents: true.
selectorstring- No description.
tagsarray- No description.
traceQuerystring- Trace query of a trace metric, for example service.name = "checkout".
traceValueLocationstring- Where a trace metric with measureType value reads its number, for example duration.
unitstring- No description.
unitAggregationFieldstring- Required with measureType distinct: the warehouse column whose unique values are counted per unit, for example ORDER_ID.
urlsarray- No description.
valueAggregationstring- No description.one of
sumaverage valueColumnstring- Warehouse column holding the numeric value for measureType value.
windowEndOffsetinteger- End of the measurement window, in milliseconds after the unit's first exposure.
windowStartOffsetinteger- Start of the measurement window, in milliseconds after the unit's first exposure.
winsorIncludeImputedboolean- Count the 0 imputed for units without events when computing the winsorization bounds.
winsorLowerPercentilenumber- Clamp unit values below this percentile, in the open interval (0, 100).
winsorUpperPercentilenumber- Clamp unit values above this percentile, in the open interval (0, 100).
launchdarklymcp_createprojectCreate a new LaunchDarkly project.WriteCreateProject
Create a new LaunchDarkly project. Projects are top-level containers for feature flags and environments.
Inputs
keystringrequired- No description.
namestringrequired- No description.
tagsarray- No description.
launchdarklymcp_invite_membersInvite one or more people to the LaunchDarkly account by email.WriteInviteMembers
Invite one or more people to the LaunchDarkly account by email. Each invitee receives an email invitation to join. Optionally assign a role (reader, writer, admin) — defaults to reader if not specified.
Inputs
emailsarrayrequired- No description.
rolestring- No description.
launchdarklymcp_link_view_resourcesLink flags, segments, or AgentControl Configs to a view.WriteLink View Resources
Link flags, segments, or AgentControl Configs to a view. Views are an Enterprise feature. IDENTIFYING RESOURCES: - flags / aiConfigs: pass `keys` - segments: pass `segmentIdentifiers` ({environmentId, segmentKey} pairs — segments are environment-scoped) - any type: pass `filter` to link everything matching a list-endpoint filter expression (flags use comma-separated field:value filters, segments use queryfilter syntax; `environmentId` is required with a segments filter). Keys and filter combine as a union. Large key lists are batched automatically at 20 keys per API request. The response aggregates successCount/failureCount across batches and lists any resources that failed to link.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
resourceTypestringrequired- No description.one of
flagssegmentsaiConfigs viewKeystringrequired- No description.
commentstring- No description.
environmentIdstring- No description.
filterstring- No description.
keysarray- No description.
segmentIdentifiersarray- No description.
launchdarklymcp_load_skillRead a LaunchDarkly skill guide listed by `get-skills`.WriteLoad Skill
Read a LaunchDarkly skill guide listed by `get-skills`. Pass a `skill` key such as `feature-flags/launchdarkly-flag-cleanup`. The response `text` is the guide body. Pass a `reference` path from the guide's `references` list, such as `references/pr-template.md`, to read that supporting file instead. The `related` field names the guide keys to load next for adjacent work. Responses are capped at 75 KB.
Inputs
skillstringrequired- No description.
referencestring- No description.
launchdarklymcp_runevaluationStart a new run of an AI evaluation.WriteRunEvaluation
Start a new run of an AI evaluation. This executes the evaluation against the configured dataset and judge criteria. Returns the run ID and status.
Inputs
evaluationIdstringrequired- No description.
projectKeystringrequired- No description.
datasetIdstring- No description.
playgroundIdstring- No description.
rowSelectionModestring- No description.one of
alltoprandom rowSelectionUnitstring- No description.one of
countpercent rowSelectionValuenumber- No description.
launchdarklymcp_setup_ai_configInitialize an AI Config with its first variation and targeting setup in one step.WriteSetupAiConfig
Initialize an AI Config with its first variation and targeting setup in one step.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config to initialize.
environmentKeystringrequired- The environment key to set up the AI Config in.
projectKeystringrequired- The project key identifying which project to set up the AI Config in.
modelobject- Model settings for the initial variation.
promptarray- Prompt messages for the initial variation.
launchdarklymcp_startguardedrolloutStart a guarded rollout on a flag's default rule (fallthrough).WriteStartGuardedRollout
Start a guarded rollout on a flag's default rule (fallthrough). A guarded rollout progressively increases traffic to the test variation through a series of stages while monitoring metrics for regressions. Each stage specifies a rolloutWeight (percentage in thousandths, e.g. 10000 = 10%) and a monitoring window in milliseconds. Metrics define what to monitor and whether to notify or rollback on regression. Requires the flag to be on and not already have an active guarded rollout. If the environment requires approval, the response includes requiresApproval: true and the attempted instructions; call `create-approval-request` with the returned instructions to submit it for review.
Inputs
controlVariationIdstringrequired- No description.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
metricsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
randomizationUnitstringrequired- No description.
stagesarrayrequired- No description.
testVariationIdstringrequired- No description.
commentstring- No description.
ruleIdstring- Targeting rule _id from get-flags. Omit to start the rollout on the flag's default rule.
updateDefaultRuleOnCompletionboolean- Rule targets only. When true, completing the rollout deletes the rule and makes the default rule serve the test variation.
launchdarklymcp_toggle_alertEnable or disable an observability alert without changing its configuration.WriteToggleAlert
Enable or disable an observability alert without changing its configuration.
- Idempotent
Inputs
alertIdnumberrequired- No description.
confirmbooleanrequired- Confirm this destructive operation.
enabledbooleanrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_toggle_flagTurn a feature flag on or off in a specific environment.WriteToggleFlag
Turn a feature flag on or off in a specific environment. When off, all users receive the off variation.
- Idempotent
Inputs
confirmbooleanrequired- Confirm this destructive operation.
envstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
onbooleanrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
launchdarklymcp_unlink_view_resourcesUnlink flags, segments, or AgentControl Configs from a view.WriteUnlink View Resources
Unlink flags, segments, or AgentControl Configs from a view. Views are an Enterprise feature. Requires confirm=true, which approves the unlink. Unlinking never deletes flags, segments, or AgentControl Configs; only their link to the view is removed. IDENTIFYING RESOURCES: - flags / aiConfigs: pass `keys` - segments: pass `segmentIdentifiers` ({environmentId, segmentKey} pairs) - any type: pass `filter` to unlink everything matching a list-endpoint filter expression (`environmentId` is required with a segments filter). Keys and filter combine as a union. Up to 100 keys or segmentIdentifiers per call, batched automatically at 20 per API request; split longer lists into several calls. The response aggregates successCount/failureCount across batches and lists any resources that failed to unlink.
Inputs
confirmbooleanrequired- Set true to approve unlinking these resources from the view. This only removes the links; it never deletes the resources.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
resourceTypestringrequired- No description.one of
flagssegmentsaiConfigs viewKeystringrequired- No description.
commentstring- No description.
environmentIdstring- No description.
filterstring- No description.
keysarray- No description.
segmentIdentifiersarray- No description.
launchdarklymcp_update_agent_configUpdate an AgentControl Config.WriteUpdate Agent Config
Update an AgentControl Config. resource is required and picks what changes. resource=config: name, description, tags, defaultVariationKey (the variation new environments serve by default; existing environments keep their fallthrough, so change those with resource=targeting), evaluationMetricKey, isInverted, or maintainer (maintainerId or maintainerTeamKey, not both; an empty string removes it). Configs cannot be archived. resource=variation: one variation's name (variationName), model, prompts, tools, or skills, by variationKey. resource=targeting: one environment's targeting, in a single write: on turns targeting on or off; fallthrough sets the default for contexts no rule matches ({"variationKey":"candidate"} serves one variation, {"weights":[{"variationKey":"a","percent":50},{"variationKey":"b","percent":50}]} splits traffic); targetingInstructions changes rules and individual targets with kinds addRule, removeRule, reorderRules, replaceRules, updateRuleDescription, addClauses, removeClauses, addValuesToClause, removeValuesFromClause, updateClause, addTargets, removeTargets, clearTargets, and replaceTargets; rule kinds take ruleId, each kind takes variationKey where it serves a variation, and addTargets and removeTargets also require contextKind (for example user) and values. variation and targeting require confirm=true.
Inputs
configKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
resourcestringrequired- config: the config's metadata. variation: one variation. targeting: one environment's on/off, fallthrough, rules, and individual targets.one of
configvariationtargeting archivedboolean- Not supported: a config cannot be archived; the tool rejects this field.
commentstring- No description.
confirmboolean- Required true for resource=variation and resource=targeting.
defaultVariationKeystring- No description.
descriptionstring- No description.
envstring- Environment key. If the user hasn't named one, ask; don't guess.
evaluationMetricKeystring- No description.
fallthroughstring- The default for contexts no rule matches: {variationKey} serves one variation; {weights, contextKind?, bucketBy?} is a percentage rollout whose percents sum to 100.
instructionsstring- The variation's system prompt.
isInvertedboolean- True when a lower evaluation metric value is better. False when a higher value is better.
judgeConfigurationobject- No description.
maintainerIdstring- A member ID.
maintainerTeamKeystring- No description.
messagesarray- No description.
modelConfigKeystring- A model config key from get-ai-model-configs: a global Provider.model-id key such as OpenAI.gpt-4o, or a custom model config's own key.
modelNamestring- No description.
namestring- No description.
onboolean- resource=targeting: turn targeting on or off.
parametersobject- No description.
skillsarray- Agent skills to attach, as {key, version} from get-agent-skills. On update, the array replaces the attached skills; [] detaches them all.
tagsarray- No description.
targetingInstructionsarray- Semantic patch instructions for rules and individual targets. Each instruction or replaceRules rule takes variationKey (a variation key or name) or variationId. addTargets and removeTargets take contextKind, variationKey, and values (context keys), e.g. [{"kind":"addTargets","contextKind":"user","variationKey":"candidate","values":["user-1"]}].
toolsarray- No description.
variationKeystring- resource=variation: the variation to update.
variationNamestring- resource=variation: the variation's new name.
launchdarklymcp_update_agent_skillUpdate an agent skill's markdown, name, description, tags, or maintainer.WriteUpdate Agent Skill
Update an agent skill's markdown, name, description, tags, or maintainer. Only provided fields are updated. Variations stay pinned to the version they attached; use list-agent-skill-references to find them and update-agentcontrol-config-variation to move them to the new version.
Inputs
confirmbooleanrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
skillKeystringrequired- No description.
descriptionstring- No description.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
markdownstring- Replaces the SKILL.md content.
moveVariationsobject- Re-point AgentControl Config variations to one version of this skill, after any other changes here.
namestring- No description.
tagsarray- Replaces the skill's tags.
launchdarklymcp_update_ai_configUpdate the metadata for an AI Config such as name, description, and tags.WriteUpdateAiConfig
Update the metadata for an AI Config such as name, description, and tags.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config to update.
projectKeystringrequired- The project key identifying which project contains the AI Config.
descriptionstring- The updated description for the AI Config.
namestring- The updated display name for the AI Config.
tagsarray- Array of tags to associate with the AI Config.
launchdarklymcp_update_ai_config_individual_targetsUpdate the individual user targeting for an AI Config in a specific environment.WriteUpdateAiConfigIndividualTargets
Update the individual user targeting for an AI Config in a specific environment.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config to update.
envstringrequired- The environment key where the AI Config targeting will be updated.
projectKeystringrequired- The project key for the LaunchDarkly project.
targetsarray- The individual user targets to set for this AI Config.
launchdarklymcp_update_ai_config_rolloutUpdate the rollout percentages for an AI Config's default rule in a specific environment.WriteUpdateAiConfigRollout
Update the rollout percentages for an AI Config's default rule in a specific environment.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config to update.
envstringrequired- The environment key where the rollout will be updated.
projectKeystringrequired- The project key for the LaunchDarkly project.
rolloutobject- The rollout configuration defining percentage splits across variations.
launchdarklymcp_update_ai_config_targeting_rulesUpdate the targeting rules for an AI Config in a specific environment.WriteUpdateAiConfigTargetingRules
Update the targeting rules for an AI Config in a specific environment.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config to update targeting rules for.
envstringrequired- The environment key where targeting rules will be updated.
projectKeystringrequired- The project key identifying which project contains the AI Config.
rulesarray- Array of targeting rule objects to apply to the AI Config.
launchdarklymcp_update_ai_config_variationUpdate a specific variation of an AI Config, including its prompt, model settings, and parameters.WriteUpdateAiConfigVariation
Update a specific variation of an AI Config, including its prompt, model settings, and parameters.
- Idempotent
Inputs
configKeystringrequired- The key of the AI Config that contains the variation to update.
projectKeystringrequired- The project key identifying which project contains the AI Config.
variationIdstringrequired- The ID of the variation to update.
modelobject- Model settings for this variation such as model name and parameters.
namestring- The updated name for the variation.
promptarray- Prompt messages array for this variation.
launchdarklymcp_update_ai_model_configUpdate an AI model config.WriteUpdate Ai Model Config
Update an AI model config. Requires confirm=true. modelConfigKey is the key, not the id: for example OpenAI.gpt-4o for a global model, or the key a custom model was created with, which often has no provider prefix (for example gpt-image-2-custom). Pass the model key the user gives as modelConfigKey without asking or looking it up first. restricted=true stops variations from selecting the model and works on global models; restricted=false allows it again. The other fields change only custom models (global=false); params, customParams, and tags replace the current values. provider and id cannot change: create a new model config instead. If restricting fails because the key is in use, move those variations to another modelConfigKey, then retry.
Inputs
confirmbooleanrequired- No description.
modelConfigKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
costPerCachedInputTokennumber- No description.
costPerInputTokennumber- No description.
costPerOutputTokennumber- No description.
customParamsobject- Replaces the current customParams.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
namestring- No description.
paramsobject- Replaces the current params.
restrictedboolean- true restricts the model so variations cannot select it; false removes the restriction.
tagsarray- Replaces the current tags.
launchdarklymcp_update_ai_toolUpdate an AI tool definition's description or schema.WriteUpdateAiTool
Update an AI tool definition's description or schema. All fields are optional: only provided fields are updated. The schema should be a raw JSON Schema object with type, properties, and required fields.
- Idempotent
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
toolKeystringrequired- No description.
customParametersobject- Application metadata, not sent to the model.
descriptionstring- No description.
schemaobject- No description.
tagsarray- Replaces the tool's tags.
launchdarklymcp_update_automated_rollout_configModify an automated rollout config that has not started releasing.WriteUpdate Automated Rollout Config
Modify an automated rollout config that has not started releasing. Pass only what changes: environments, repoFullName, prNumber, or prUrl; omitted fields stay as they are. environments REPLACES the whole ordered plan, so an environment you omit is removed: read the config with get-automated-rollout-config, edit that list, and send it back complete. Each environment takes the shape create-automated-rollout-config accepts: releaseType is override (default) or policy, never immediate, so an immediate release passes only environmentKey. The config must be active with an unmerged PR, and an environment is editable only while its status is "pending" and release_lifecycle_status is "not_started". Otherwise LaunchDarkly returns a conflict, which is terminal: do not retry. Returns updated and the config as stored.
Inputs
configIdstringrequired- Id of the rollout config to modify.
confirmbooleanrequired- Confirm this destructive operation.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
environmentsarray- Complete replacement plan, in order. An environment you omit is removed.
prNumbernumber- Pull request number.
prUrlstring- Full pull request URL.
repoFullNamestring- GitHub repository as owner/repo.
launchdarklymcp_update_dashboardUpdate an existing dashboard.WriteUpdate Dashboard
Update an existing dashboard. Only the fields you provide are changed; everything else is preserved. Use create-graph/update-graph to add or edit charts. INPUTS: - projectKey (required): The LaunchDarkly project key (e.g., "default"). - dashboardId (required): The numeric ID of the dashboard (from list-dashboards) - name (optional): New dashboard name - timePreset (optional): New default time range, e.g. "last_24_hours", "last_7_days" - graphIds (optional): Reorder (or hide) graphs — the full ordered list of graph IDs to display. Any existing graph omitted from this list disappears from the dashboard grid (it still exists; re-add its ID to show it again). Get current IDs from get-dashboard. - variables (optional): REPLACES the full list of dashboard template variables. Each entry: - key, defaultValues (array), suggestionType (one of None, Value, Key), field (optional) RETURNS: - dashboard_updated: Boolean indicating success - dashboard_id, dashboard_url, name, time_preset, graph_ids (final state) Example - reorder graphs 10 and 11, dropping graph 12 from view: {"projectKey": "default", "dashboardId": 12345, "graphIds": [11, 10]}
Inputs
confirmbooleanrequired- Confirm this destructive operation.
dashboardIdnumberrequired- Numeric dashboard ID from get-dashboards.
projectKeystringrequired- LaunchDarkly project key.
bucketBystring- Graph only. Field to bucket by, e.g. Timestamp.
bucketCountnumber- Graph only. Number of buckets.
comparisonModestring- Graph only. Period-over-period comparison mode.
displaystring- Graph only. Line, Stacked, or Stacked area.
environmentsarray- Graph only. Limit the chart to these LaunchDarkly environments.
expressionsarray- Graph only. Replaces the aggregation list.
formulasarray- Graph only. Calculated series over metricSeries, e.g. A / B * 100 for an error rate; replaces the stored formulas.
graphIdnumber- Numeric ID of a graph on this dashboard. Set it to change that graph; omit it to change the dashboard.
graphIdsarray- Dashboard only. Graph IDs in display order; graphs you leave out follow the listed ones.
groupByarray- Graph only. Dimension keys from get-keys. [] removes grouping and its ranking.
groupByLimitnumber- Graph only. Maximum series when grouped.
limitAggregatorstring- Graph only. Aggregator that ranks groups for groupByLimit.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSum limitColumnstring- Graph only. Column ranked with limitAggregator.
metricSeriesarray- Graph only. Lettered input series (A, B, ...) for formulas; replaces the stored series. Without it the chart plots query and expressions.
namestring- Dashboard only. New dashboard name.
productTypestring- Graph only. Data source: Logs, Traces, Errors, Sessions, Metrics, PAEvents, or Events; case-insensitive. PAEvents is the product-analytics source the graph editor shows: filter custom events with type="track" key="<name>" and page or screen views with type="*_view" view_name="<path>". Events is the legacy session_events source, filtered with event="<name>".
querystring- Graph only. Filter in search syntax, e.g. level=error. "" clears it.
servicesarray- Graph only. Limit the chart to these services.
showExemplarsboolean- Graph only. Overlay representative data points.
timePresetstring- Dashboard only. Default time range, e.g. last_24_hours or last_7_days.
titlestring- Graph only. Chart title.
typestring- Graph only. "Line chart", "Bar chart", "Table", "Heatmap", or "Funnel chart".
variablesarray- Dashboard only. Replaces every template variable.
launchdarklymcp_update_error_group_stateTriage an error group: set its state to OPEN, RESOLVED, or IGNORED, and optionally snooze it until a time.WriteUpdate Error Group State
Triage an error group: set its state to OPEN, RESOLVED, or IGNORED, and optionally snooze it until a time. Changes whether Errors alerts fire for the group. Requires confirm=true. Check the group with get-error-group first. Returns the state and snoozed_until read back after the change.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
projectKeystringrequired- LaunchDarkly project key.
secureIdstringrequired- secure_id of the error group, from search-error-groups.
statestringrequired- New state. Errors alerts count only OPEN groups that are not snoozed. A RESOLVED group reopens when the error recurs; an IGNORED group stays ignored.one of
OPENRESOLVEDIGNORED snoozedUntilstring- ISO 8601 time with a timezone until which alerts for the group are snoozed; keep state OPEN to snooze. Omit to clear any snooze.
launchdarklymcp_update_expiring_targetsList, add, update, or remove expiring targets on a flag.WriteUpdate Expiring Targets
List, add, update, or remove expiring targets on a flag. Expiring targets are automatically removed from targeting after a specified date. Timestamps in the result are UTC.
Inputs
actionstringrequired- No description.one of
listaddupdateremove confirmbooleanrequired- Confirm this destructive operation.
envstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
contextKeystring- No description.
contextKindstring- No description.
expiresAtstring- No description.
variationIdstring- No description.
launchdarklymcp_update_flagUpdate a flag's top-level settings and variations without changing environment targeting.WriteUpdate Flag
Update a flag's top-level settings and variations without changing environment targeting. It takes no environment: names, descriptions, tags, maintainers, and variations are project-wide, so never ask for one. Accepted instruction kinds: updateName, updateDescription, addTags and removeTags (values array), makeFlagTemporary, makeFlagPermanent, updateMaintainerMember, updateMaintainerTeam, addCustomProperties, replaceCustomProperties, removeCustomProperties, updateDefaultVariation, addVariation, updateVariation. updateDefaultVariation takes OnVariationValue and/or OffVariationValue (PascalCase), the variation values themselves, not indexes; for example {"kind":"updateDefaultVariation","OnVariationValue":true,"OffVariationValue":false}. Repeating an addVariation with the same value, name and description is a no-op; the same value with a different name or description is rejected (use updateVariation). Turning a flag on or off is environment-scoped: use toggle-flag, not turnFlagOn or turnFlagOff here. Pass either instructions or variationJsonSchema, never both; make two separate calls.
Inputs
flagKeystringrequired- The feature flag key. The key identifies the flag in your code.
projectKeystringrequired- The project key
commentstring- Optional audit comment.
dryRunboolean- If true, the patch will be validated but not persisted. Returns a preview of the flag after the patch is applied.
instructionsarray- Metadata-only semantic patch instructions.
variationJsonSchemaobject- JSON schema that replaces the flag's variation schema.
launchdarklymcp_update_flag_targetingAdd, remove, or replace users or contexts in individual flag targeting, and add or remove flag prerequisites, in one environment.WriteUpdate Flag Targeting
Add, remove, or replace users or contexts in individual flag targeting, and add or remove flag prerequisites, in one environment. Accepts only the instruction kinds addTargets, removeTargets, replaceTargets, addPrerequisite and removePrerequisite; use update-targeting-rules for rules.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
envstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
instructionsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
launchdarklymcp_update_metricChange an existing metric.WriteUpdate Metric
Change an existing metric. Send only the fields to change; each one replaces the current value as a JSON Patch replace, so tags and analysisUnits must list every entry the metric should keep, and denominator replaces the whole denominator term. percentile sets analysisType to percentile and percentileValue. measureType and valueAggregation are sent as isNumeric and unitAggregationType, the same mapping create-metric uses. JSON null clears a window offset, a winsor bound, traceQuery, traceValueLocation, unitAggregationField, filters, or the denominator. A disabled eventDefault matches a read-back that omits value. Fields that only apply to some metric kinds are still sent; LaunchDarkly rejects illegal combinations. LaunchDarkly accepts an analysis unit only if its context kind is marked available for experiments and guarded rollouts in the project. Timestamps in the result are UTC.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
metricKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
analysisUnitsarray- Context kinds to analyze the metric by. Replaces the metric's whole list.
archivedboolean- Whether the metric version is archived.
denominatorstring- Replaces the metric's whole ratio denominator term; JSON null clears it. The metric's own event is the numerator term. Custom metrics on a warehouse data source only.
descriptionstring- No description.
eventDefaultobject- How units that sent no event count. disabled: true leaves them out of the analysis instead of counting them as value. Gonfalon omits value when disabled is true.
eventKeystring- Event key of a custom metric.
filtersstring- Replaces the metric's event filters. JSON null clears them. Custom metrics only.
isActiveboolean- Whether the metric is active.
maintainerIdstring- The ID of the member who maintains this metric.
measureTypestring- distinct counts each unit's unique values of the unitAggregationField column; it does not use valueColumn.one of
countoccurrencevaluedistinct namestring- No description.
percentileinteger- Analyze this percentile of unit values instead of the mean. Sent as analysisType percentile and percentileValue. Requires eventDefault.disabled true.
selectorstring- CSS selector of a click metric.
successCriteriastring- Whether higher or lower values than the baseline count as an improvement.one of
HigherThanBaselineLowerThanBaseline tagsarray- Replaces the metric's whole tag list.
traceQuerystring- Trace query of a trace metric. JSON null clears it. Gonfalon still requires a query on a trace metric, so clearing traceQuery is rejected there.
traceValueLocationstring- Where a numeric trace metric reads its number. JSON null clears it.
unitstring- Unit label for a numeric metric, for example USD or ms.
unitAggregationFieldstring- Warehouse column whose unique values are counted per unit. JSON null clears it.
urlsarray- Target URLs of a click or pageview metric.
valueAggregationstring- How a measureType value metric aggregates unit values. Requires measureType.one of
sumaverage valueColumnstring- Warehouse column holding the numeric value for measureType value.
windowEndOffsetinteger- End of the measurement window, in milliseconds after the unit's first exposure. JSON null clears it. Gonfalon requires both offsets set or both cleared.
windowStartOffsetinteger- Start of the measurement window, in milliseconds after the unit's first exposure. JSON null clears it. Gonfalon requires both offsets set or both cleared.
winsorIncludeImputedboolean- Count the 0 imputed for units without events when computing the winsorization bounds.
winsorLowerPercentilenumber- Clamp unit values below this percentile, in the open interval (0, 100). JSON null clears the lower bound.
winsorUpperPercentilenumber- Clamp unit values above this percentile, in the open interval (0, 100). JSON null clears the upper bound.
launchdarklymcp_update_off_variationSet the variation a flag serves when its targeting is OFF, in one environment (env), several (envs), or every environment (allEnvs).WriteUpdate Off Variation
Set the variation a flag serves when its targeting is OFF, in one environment (env), several (envs), or every environment (allEnvs). One call repairs a whole flag: fallthroughVariationIndex also sets the default rule (what an ON flag serves when no rule matches), and updateFlagDefaults also sets the flag-level defaults that seed new environments (offVariation = variationIndex, onVariation = fallthroughVariationIndex). Each variationIndex is a 0-based position in the flag's variations; use get-flag to see them. For boolean flags, 0 = true, 1 = false by convention. Environments that already match are left alone. An environment that requires approval is reported as blocked with the instructions to pass to `create-approval-request`; the other environments still apply.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
envsarrayrequired- No description.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
variationIndexintegerrequired- No description.
commentstring- No description.
fallthroughVariationIndexinteger- No description.
launchdarklymcp_update_playgroundUpdate an LLM playground's name, variants, or archived status.WriteUpdatePlayground
Update an LLM playground's name, variants, or archived status. All fields are optional.
- Idempotent
Inputs
playgroundIdstringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
archivedboolean- No description.
namestring- No description.
variantsarray- No description.
launchdarklymcp_update_projectRename a LaunchDarkly project or change its tags.WriteUpdate Project
Rename a LaunchDarkly project or change its tags. Send only the fields to change; each one replaces the current value, so tags must list every tag the project should keep. To add a tag, read the current tags with get-projects first. The project key cannot change.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
namestring- No description.
tagsarray- Replaces the project's whole tag list.
launchdarklymcp_update_prompt_snippetUpdate an existing prompt snippet.WriteUpdatePromptSnippet
Update an existing prompt snippet. Creates a new version of the snippet. All fields are optional — only provided fields are updated.
- Idempotent
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
snippetKeystringrequired- No description.
descriptionstring- No description.
namestring- No description.
tagsarray- No description.
textstring- No description.
launchdarklymcp_update_rolloutChange the default rule (fallthrough) for a flag.WriteUpdateRollout
Change the default rule (fallthrough) for a flag. Set a percentage rollout across variations or serve a single variation to all unmatched users. Weights must sum to 100. Use human-friendly percentages (e.g., 80 for 80%). If the environment requires approval, the response includes requiresApproval: true and the attempted instructions; call `create-approval-request` with the returned instructions to submit it for review.
- Idempotent
Inputs
confirmbooleanrequired- Confirm this destructive operation.
envstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
rolloutTypestringrequired- No description.one of
percentagevariation commentstring- No description.
contextKindstring- No description.
variationIndexinteger- No description.
weightsarray- No description.
launchdarklymcp_update_viewUpdate a view's name, description, maintainer, or tags.WriteUpdate View
Update a view's name, description, maintainer, or tags. Views are an Enterprise feature. Include only the fields to change — provided values replace the existing ones (tags are replaced wholesale, not merged). Only one of maintainerId or maintainerTeamKey can be specified. The view key cannot be changed.
Inputs
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
viewKeystringrequired- No description.
descriptionstring- No description.
maintainerIdstring- No description.
maintainerTeamKeystring- No description.
namestring- No description.
tagsarray- No description.
launchdarklymcp_apply_approval_requestApply an already-approved approval request.DestructiveApplyApprovalRequest
Apply an already-approved approval request. This executes the changes that were approved by reviewers. Only works on requests with reviewStatus 'approved'. Does NOT approve requests: that must be done by a human reviewer.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
idstringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
launchdarklymcp_archive_automated_rollout_configArchive an automated rollout config so the scheduler stops processing it.DestructiveArchive Automated Rollout Config
Archive an automated rollout config so the scheduler stops processing it. It is a soft delete: the config stays readable with get-automated-rollout-config, with status "archived". Returns archived, config_id, and project_key.
Inputs
configIdstringrequired- Rollout config id returned by create-automated-rollout-config.
confirmbooleanrequired- Confirm this destructive operation.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_archive_flagArchive a feature flag (reversible).DestructiveArchiveFlag
Archive a feature flag (reversible). This is a soft-delete that can be undone. Recommended as the first step before permanent deletion. Always run check-removal-readiness before archiving.
- Idempotent
Inputs
confirmbooleanrequired- Confirm this destructive operation.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
launchdarklymcp_copy_flag_configCopy a flag's targeting configuration from one environment to another.DestructiveCopyFlagConfig
Copy a flag's targeting configuration from one environment to another. Common use: promote from staging to production. Optionally select which aspects to copy: targeting, rules, offVariation, prerequisites, on state. If the target environment requires approval, the response includes requiresApproval: true and an approvalUrl; follow the approvalUrl to submit the copy request for review.
- Idempotent
Inputs
confirmbooleanrequired- Confirm this destructive operation.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
sourceEnvstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
targetEnvstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
excludedActionsarray- No description.
includedActionsarray- No description.
launchdarklymcp_delete_agent_configPermanently delete an AgentControl Config (resource=config) or one of its variations (resource=variation, with variationKey).DestructiveDelete Agent Config
Permanently delete an AgentControl Config (resource=config) or one of its variations (resource=variation, with variationKey). Requires confirm=true.
Inputs
configKeystringrequired- No description.
confirmbooleanrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
resourcestringrequired- No description.one of
configvariation variationKeystring- resource=variation: the variation to delete.
launchdarklymcp_delete_agent_skillPermanently delete an agent skill and all of its versions.DestructiveDelete Agent Skill
Permanently delete an agent skill and all of its versions. THIS IS IRREVERSIBLE. LaunchDarkly rejects the delete while any variation still attaches the skill; use list-agent-skill-references to find and detach them first. Requires confirm=true to execute.
Inputs
confirmbooleanrequired- No description.
projectKeystringrequired- No description.
skillKeystringrequired- No description.
launchdarklymcp_delete_ai_configPermanently delete an AI Config and all its variations.DestructiveDeleteAiConfig
Permanently delete an AI Config and all its variations. This is irreversible.
Inputs
configKeystringrequired- The key of the AI Config to permanently delete.
projectKeystringrequired- The project key identifying which project contains the AI Config to delete.
launchdarklymcp_delete_ai_config_variationDelete a variation from an AI Config.DestructiveDeleteAiConfigVariation
Delete a variation from an AI Config. This is permanent and cannot be undone.
Inputs
configKeystringrequired- The key of the AI Config that contains the variation to delete.
projectKeystringrequired- The project key identifying which project contains the AI Config.
variationIdstringrequired- The ID of the variation to permanently delete.
launchdarklymcp_delete_ai_model_configPermanently delete a custom AI model config.DestructiveDelete Ai Model Config
Permanently 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.
Inputs
confirmbooleanrequired- No description.
modelConfigKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_delete_ai_toolPermanently delete an AI tool definition.DestructiveDeleteAiTool
Permanently delete an AI tool definition. THIS IS IRREVERSIBLE. Any AgentControl Config variations referencing this tool will lose the attachment. Requires confirm=true to execute.
Inputs
confirmbooleanrequired- Confirm for this operation.
projectKeystringrequired- Project Key for this operation.
toolKeystringrequired- Tool Key for this operation.
launchdarklymcp_delete_alertPermanently delete an observability alert.DestructiveDeleteAlert
Permanently delete an observability alert. THIS IS IRREVERSIBLE. Requires confirm=true to execute. Use get-alert first to verify you are deleting the right alert.
Inputs
alertIdnumberrequired- The numeric ID of the alert to delete
confirmbooleanrequired- Must be true to execute the deletion
projectKeystringrequired- The LaunchDarkly project key (e.g., "default").
launchdarklymcp_delete_dashboardPermanently delete a dashboard (visualization) and all of its graphs.DestructiveDeleteDashboard
Permanently delete a dashboard (visualization) and all of its graphs. THIS IS IRREVERSIBLE. Requires confirm=true to execute. Use get-dashboard first to verify you are deleting the right dashboard.
Inputs
confirmbooleanrequired- Must be true to execute the deletion
dashboardIdnumberrequired- The numeric ID of the dashboard to delete (from list-dashboards)
projectKeystringrequired- The LaunchDarkly project key (e.g., "default").
launchdarklymcp_delete_flagPermanently delete a feature flag and all its targeting rules across all environments.DestructiveDeleteFlag
Permanently delete a feature flag and all its targeting rules across all environments. This is irreversible.
Inputs
confirmbooleanrequired- Must be set to true to confirm permanent deletion of the flag.
flagKeystringrequired- The key of the feature flag to permanently delete.
projectKeystringrequired- The project key where the flag resides.
launchdarklymcp_delete_graphPermanently remove a single chart/graph from its dashboard.DestructiveDelete Graph
Permanently remove a single chart/graph from its dashboard. THIS IS IRREVERSIBLE. The dashboard itself is untouched. Requires confirm=true to execute. Use get-dashboard first to verify you are deleting the right graph. INPUTS: - projectKey (required): The LaunchDarkly project key (e.g., "default"). - graphId (required): The numeric ID of the graph to delete (from get-dashboard) - confirm (required): Must be true to execute the deletion RETURNS: - deleted: Boolean indicating success - graph_id: ID of the deleted graph
Inputs
confirmbooleanrequired- Must be true to delete.
dashboardIdnumberrequired- Numeric ID of the dashboard the graph is on, from get-dashboards.
graphIdnumberrequired- Numeric ID of the graph to delete.
projectKeystringrequired- LaunchDarkly project key.
launchdarklymcp_delete_metricPermanently delete a metric.DestructiveDelete Metric
Permanently delete a metric. LaunchDarkly refuses while a flag, experiment, guarded rollout, metric group, or release policy uses it.
Inputs
confirmbooleanrequired- No description.
metricKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
launchdarklymcp_delete_prompt_snippetPermanently delete a prompt snippet.DestructiveDeletePromptSnippet
Permanently delete a prompt snippet. THIS IS IRREVERSIBLE. Any AgentControl Config variations referencing this snippet will lose their reference. Requires confirm=true to execute.
Inputs
confirmbooleanrequired- Confirm for this operation.
projectKeystringrequired- Project Key for this operation.
snippetKeystringrequired- Snippet Key for this operation.
launchdarklymcp_delete_segmentPermanently delete a segment from one environment.DestructiveDelete Segment
Permanently delete a segment from one environment. This is irreversible and requires confirm=true. Check that no flag targeting rules reference the segment first.
Inputs
confirmbooleanrequired- No description.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
segmentKeystringrequired- No description.
launchdarklymcp_delete_viewDelete a view by key.DestructiveDelete View
Delete a view by key. THIS IS IRREVERSIBLE. Requires confirm=true to execute. Views are an Enterprise feature. Deleting a view does not delete the linked resources, only the view and its links.
Inputs
confirmbooleanrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
viewKeystringrequired- No description.
launchdarklymcp_deleteagentgraphPermanently delete an agent graph and all of its edges.DestructiveDeleteAgentGraph
Permanently delete an agent graph and all of its edges. THIS IS IRREVERSIBLE. Requires confirm=true to execute.
Inputs
confirmbooleanrequired- Confirm for this operation.
graphKeystringrequired- Graph Key for this operation.
projectKeystringrequired- Project Key for this operation.
launchdarklymcp_deletedatasetPermanently delete an offline dataset and its associated metadata.DestructiveDeleteDataset
Permanently delete an offline dataset and its associated metadata. THIS IS IRREVERSIBLE. Requires confirm=true to execute.
Inputs
confirmbooleanrequired- Must be set to true to confirm the irreversible deletion of the dataset.
datasetIdstringrequired- The unique identifier of the dataset to permanently delete.
projectKeystringrequired- The project key identifying which project the dataset belongs to.
launchdarklymcp_saveandstartexperimentiterationStop the current running iteration, create a new draft iteration with the provided field updates applied, and start it — the API-recommended way to mutate treatments, metrics, methodology, or other fields that are locked while an iteration is running.DestructiveSaveAndStartExperimentIteration
Stop the current running iteration, create a new draft iteration with the provided field updates applied, and start it — the API-recommended way to mutate treatments, metrics, methodology, or other fields that are locked while an iteration is running. Provide `changeJustification` to record why a new iteration is needed. Field inputs are the same as `update-experiment`; updates are checked against the new iteration's not_started mutability rules. Fields not allowed in not_started are returned under `skipped` rather than being sent.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
experimentKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
analysisConfigobject- No description.
attributesarray- No description.
canReshuffleTrafficboolean- No description.
changeJustificationstring- No description.
covariateIdstring- No description.
dataSourcestring- No description.one of
launchdarklysnowflakedatabricks descriptionstring- No description.
flagsobject- No description.
flagSettingsobject- No description.
holdoutIdstring- No description.
hypothesisstring- No description.
maintainerIdstring- No description.
methodologystring- No description.one of
bayesianfrequentistexport_only metricsarray- No description.
namestring- No description.
primaryFunnelKeystring- No description.
primarySingleMetricKeystring- No description.
randomizationUnitstring- No description.
tagsarray- No description.
treatmentsarray- No description.
launchdarklymcp_startexperimentiterationStart an experiment iteration.DestructiveStartExperimentIteration
Start an experiment iteration. This begins data collection for the experiment's current draft iteration and starts allocating live end-user traffic across its treatments. The experiment's flag must be toggled on, a randomization unit must be set, and at least one treatment must have a non-zero allocation percent.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
experimentKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
changeJustificationstring- No description.
launchdarklymcp_stopexperimentiterationStop the currently running iteration of an experiment.DestructiveStopExperimentIteration
Stop the currently running iteration of an experiment. Data collection ends and the iteration moves to the `stopped` status. A winning treatment is required to stop: pass `winningTreatmentId` (the `_id` of one of the iteration's treatments, available from get-experiment) and an optional `winningReason` explaining the call. If the experiment was inconclusive, declare the baseline/control treatment as the winner.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
experimentKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
winningTreatmentIdstringrequired- No description.
winningReasonstring- No description.
launchdarklymcp_stopguardedrolloutStop an active guarded rollout on a flag's default rule (fallthrough).DestructiveStopGuardedRollout
Stop an active guarded rollout on a flag's default rule (fallthrough). This immediately halts the progressive rollout and locks the flag to its current state. If the environment requires approval, the response includes requiresApproval: true and the attempted instructions; call `create-approval-request` with the returned instructions to submit it for review.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
outcomestring- rollBack serves the control variation. rollForward serves the test variation. Omit to roll back.one of
rollBackrollForward ruleIdstring- Targeting rule _id from get-flags. Omit to stop the rollout on the flag's default rule.
launchdarklymcp_update_alertUpdate an existing observability alert.DestructiveUpdateAlert
Update an existing observability alert. Only the fields you provide are changed; everything else is preserved.
- Idempotent
Inputs
alertIdnumberrequired- Numeric alert ID from get-alerts.
confirmbooleanrequired- Confirm this destructive operation.
projectKeystringrequired- LaunchDarkly project key.
autoInvestigationEnabledboolean- When true, each firing starts an AI investigation that posts its diagnosis to the destinations.
destinationsarray- Replaces the whole destination list.
evaluationDelaySecondsnumber- Seconds to wait before evaluating each window, so late-arriving data is counted.
functionColumnstring- Field to aggregate, e.g. duration for P90 latency. Omit for Count. "" clears it.
functionTypestring- Aggregator to monitor.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSum groupByarray- Dimension keys; the alert fires separately per group, e.g. ["service_name"]. [] clears it.
investigationCooldownSecondsnumber- Minimum seconds between automatic investigations; keep it at or above thresholdCooldown. Defaults to 86400.
investigationPermissionModestring- read investigates and reports; read-write may also open a PR. Defaults to read.one of
readread-write investigationPromptstring- Standing instructions prepended to each investigation.
investigationRepositoriesarray- Repositories the investigation may read. Without them it cannot correlate a firing with a deploy.
messageContentstring- Custom text included in notifications. "" clears it.
namestring- New alert name.
noDataBehaviorstring- State when a window has no data: NORMAL treats it as healthy, ALERT fires, NO_CHANGE keeps the previous state. Defaults to NORMAL.one of
NORMALALERTNO_CHANGE populationFunctionTypestring- Two-level aggregation: functionType is computed per unit (the groupBy keys, e.g. a user key), then this aggregates across units, e.g. P99 of Sum per user. PercentUnits alerts on the percentage (0-100) of units that sent a query-matching event and needs populationQuery or populationWindow. Requires groupBy and a Constant threshold.one of
CountCountDistinctCountDistinctKeyMinAvgP50P75P90P95P99MaxSumPercentUnits populationQuerystring- With populationFunctionType: filter selecting the events whose senders form the population (the denominator), e.g. key=(page_view OR session_start).
populationWindownumber- With populationFunctionType: population lookback in seconds, at least thresholdWindow. Defaults to thresholdWindow.
productTypestring- Data source. LDCustomEvents is LaunchDarkly custom (metric) events, filtered with key=<event key> and environment_id=<environment ID>.one of
LogsTracesErrorsSessionsMetricsEventsLDCustomEvents querystring- Filter in search syntax, e.g. service_name=api level=error. "" clears it.
sendResolvedAlertboolean- Also notify the destinations when the alert recovers.
tagsobject- Key/value metadata on the alert, e.g. {"team": "release", "service": "api"}. Replaces all tags.
thresholdConditionstring- Outside applies to Anomaly only.one of
AboveAboveOrEqualBelowBelowOrEqualEqualNotEqualOutside thresholdCooldownnumber- Seconds to wait before re-notifying while still alerting.
thresholdTypestring- Constant compares against thresholdValue; Anomaly detects deviations.one of
ConstantAnomaly thresholdValuenumber- Value to compare against. Required when thresholdType is Constant.
thresholdWindownumber- Evaluation window in seconds, e.g. 300 for the last 5 minutes.
warnThresholdValuenumber- Optional lower-severity threshold, crossed before thresholdValue, for an early warning.
launchdarklymcp_update_segment_rulesAdd, remove, or modify attribute-based targeting rules on a segment.DestructiveUpdateSegmentRules
Add, remove, or modify attribute-based targeting rules on a segment. Rules evaluate context attributes to determine segment membership. Clauses within a rule are ANDed; multiple rules use OR logic. Supported kinds: addRule, removeRule, addClauses, removeClauses, updateClause, addValuesToClause, removeValuesFromClause, reorderRules, updateRuleDescription, updateRuleRolloutAndContextKind. If the environment requires approval, the response includes requiresApproval: true and the attempted instructions; call `create-approval-request` with the returned instructions to submit it for review.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
instructionsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
segmentKeystringrequired- No description.
commentstring- No description.
launchdarklymcp_update_segment_targetsAdd or remove individual context keys from a segment's included or excluded lists.DestructiveUpdateSegmentTargets
Add or remove individual context keys from a segment's included or excluded lists. Included targets always match the segment. Excluded targets never match, even if rules would include them. Supported kinds: addIncludedTargets, removeIncludedTargets, addExcludedTargets, removeExcludedTargets. Each instruction requires contextKind and values. If the environment requires approval, the response includes requiresApproval: true and the attempted instructions; call `create-approval-request` with the returned instructions to submit it for review.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
instructionsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
segmentKeystringrequired- No description.
commentstring- No description.
launchdarklymcp_update_targeting_rulesAdd, remove, or modify custom targeting rules for a flag in an environment.DestructiveUpdateTargetingRules
Add, remove, or modify custom targeting rules for a flag in an environment. Rules evaluate top-to-bottom; first matching rule wins. Use get-flag to look up rule _ids, clause _ids, and variation _ids before constructing instructions.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
envstringrequired- Environment key. If the user hasn't named one, ask; don't guess.
flagKeystringrequired- No description.
instructionsarrayrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
commentstring- No description.
launchdarklymcp_updateagentgraphUpdate an agent graph's metadata or structure.DestructiveUpdateAgentGraph
Update an agent graph's metadata or structure. All fields are optional. If rootConfigKey or edges are provided, both must be present and will fully replace the existing graph structure. Pass name or description to update metadata only.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
graphKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
descriptionstring- No description.
edgesarray- No description.
namestring- No description.
rootConfigKeystring- No description.
launchdarklymcp_updateexperimentUpdate fields on an experiment or its current iteration.DestructiveUpdateExperiment
Update fields on an experiment or its current iteration. Which fields are mutable depends on the current iteration's status (not_started, running, stopped). This tool first reads the experiment's mutableFieldsByStatus, applies only the updates that are allowed for the current status via the updateExperimentFields semantic patch, and returns any rejected fields under `skipped` with the reason. If no provided field is mutable, the response includes `currentStatus` and `allowedFields` so you can retry with valid inputs.
Inputs
confirmbooleanrequired- Confirm this destructive operation.
environmentKeystringrequired- Environment key. If the user hasn't named one, ask; don't guess.
experimentKeystringrequired- No description.
projectKeystringrequired- Project key. If the user hasn't named one, ask; don't guess.
analysisConfigobject- No description.
attributesarray- No description.
canReshuffleTrafficboolean- No description.
covariateIdstring- No description.
dataSourcestring- No description.one of
launchdarklysnowflakedatabricks descriptionstring- No description.
flagsobject- No description.
flagSettingsobject- No description.
holdoutIdstring- No description.
hypothesisstring- No description.
maintainerIdstring- No description.
methodologystring- No description.one of
bayesianfrequentistexport_only metricsarray- No description.
namestring- No description.
primaryFunnelKeystring- No description.
primarySingleMetricKeystring- No description.
randomizationUnitstring- No description.
tagsarray- No description.
treatmentsarray- No description.
No tools match.