Skip to navigation

LaunchDarkly

Connect your AI agents to LaunchDarkly.
Ready to connect

No custom OAuth app setup required. Sign in or provide your credentials to connect.

Authentication: Access token. See Magic Link for the runtime auth flow.

Sample use cases

  • Turn off the new-checkout flag in production.
  • Create a segment for beta customers and target a flag to it.
  • Show the results of the pricing page experiment.

Available Tools

add_flag_follower

Make a member follow a flag in one environment so they are notified of changes.

add_member_to_teams

Add one member to one or more teams. To remove, use update_team with a removeMembers instruction.

apply_approval_request

Apply an approved approval request’s change. Use list_approval_requests to find IDs.

copy_flag

Copy a flag’s targeting from one environment to another (e.g. staging to production), optionally limited to some parts.

count_audit_log_entries

Count audit log entries matching resource/action statements in a time window, split into buckets.

create_ai_config

Create an AI config in completion, agent or judge mode, optionally with a first variation.

create_ai_config_variation

Add a variation (messages or instructions plus model) to an AI config.

create_approval_request

Request approval for a flag-wide variation change, or a segment or AI config change.

create_custom_role

Create a custom role from policy statements (allow/deny actions on resource specifiers like ‘proj/:env/staging:flag/’).

create_environment

Create an environment in a project, optionally copying flag settings from another environment.

create_experiment

Create an experiment on a flag with metrics and treatments (not started).

create_flag

Create a feature flag in a project (boolean by default, or multivariate with variations).

create_flag_trigger

Create a flag trigger that turns the flag on or off when its URL is called (e.g. from Datadog or a generic webhook).

create_holdout

Create a holdout that keeps a percentage of traffic out of experiments, to measure their combined effect.

create_layer

Create an experiment layer so experiments in it never share traffic. Reserve traffic for experiments with update_layer.

create_metric

Create a metric: custom (SDK track event), pageview or click (URL/selector), as conversion or numeric.

create_metric_group

Create a metric group: an ordered funnel or a standard set of metrics.

create_project

Create a project. Without ‘environments’, LaunchDarkly adds Test and Production environments.

create_scheduled_change

Schedule flag instructions (e.g. turnFlagOn, a rollout change) to apply in one environment at a future time.

create_segment

Create an empty segment in one environment.

create_team

Create a team, optionally with members and custom roles.

create_view

Create a view in a project. Add flags or segments to it with link_view_resources.

create_webhook

Create a webhook that POSTs LaunchDarkly change events to a URL, optionally limited by policy statements.

create_workflow

Create a staged workflow on a flag in one environment (e.g. turn on, wait 2 days, roll to 100%), from stages.

delete_ai_config

Delete an AI config and its variations. Use list_ai_configs for keys.

delete_ai_config_variation

Delete an AI config variation. Use get_ai_config for variation keys.

delete_approval_request

Withdraw (delete) an approval request. Use list_approval_requests to find IDs.

delete_custom_role

Delete a custom role; members and teams holding it lose its permissions. Use list_custom_roles to find keys.

delete_environment

Permanently delete an environment and its flag targeting. Cannot be undone. Use list_environments to find keys.

delete_flag

Permanently delete a flag from every environment.

delete_flag_trigger

Delete a flag trigger; its URL stops working. Use list_flag_triggers to find IDs.

delete_member

Remove a member from the account; they lose access immediately. Use list_members for IDs.

delete_metric

Delete a metric. Use list_metrics for keys.

delete_metric_group

Delete a metric group (its metrics remain). Use list_metric_groups for keys.

delete_project

Permanently delete a project with all its environments, flags and segments.

delete_scheduled_change

Cancel a scheduled flag change. Use list_scheduled_changes to find IDs.

delete_segment

Permanently delete a segment. Flags whose rules reference it stop matching it. Use list_segments to find keys.

delete_team

Delete a team. Members stay in the account. Use list_teams to find keys.

delete_view

Delete a view. Linked flags and segments are not deleted. Use list_views for keys.

delete_webhook

Delete a webhook. Use list_webhooks to find IDs.

delete_workflow

Delete a flag workflow, stopping any stages not yet run. Use list_workflows for IDs.

evaluate_context_flags

Evaluate every flag for a given context in one environment and return the served variation and reason per flag.

evaluate_context_segments

List the segments a given context belongs to in one environment, evaluating segment rules.

get_ai_config

Get one AI config with its variations. Use list_ai_configs for keys.

get_ai_config_targeting

Get an AI config’s targeting in every environment: which variation is served by default, rules and targets, with variation IDs for update_ai_config_targeting.

get_ai_config_variation

Get the versions of one AI config variation. Use get_ai_config for variation keys.

get_approval_request

Get one approval request with its instructions and reviews. Use list_approval_requests.

get_audit_log_entry

Get one audit log entry with the full before/after diff of the change. Use list_audit_log_entries to find IDs.

get_caller_identity

Show which account, member and token the current credential belongs to.

get_code_ref_branch

Get one branch’s flag references (file, line hunks), optionally for one project or flag.

get_code_ref_repository

Get one code-references repository with its branches. Use list_code_ref_repositories.

get_code_ref_statistics

Get per-flag code reference counts in a project, optionally for one flag.

get_contexts

Get the context(s) with a given kind and key in an environment, with their latest attributes.

get_custom_role

Get one custom role and its policy. Use list_custom_roles to find keys.

get_environment

Get one environment’s settings (TTL, secure mode, approval settings).

get_experiment

Get one experiment with its current iteration, metrics and treatments. Use list_experiments for keys.

get_experimentation_settings

Get a project’s experimentation randomization units. Use list_projects for keys.

get_flag

Get one flag with its variations (and their IDs) and per-environment targeting: on/off, rules, targets, fallthrough.

get_flag_defaults

Get a project’s defaults for new flags: tags, temporary, boolean variation names and client-side availability.

get_flag_expiring_targets

List the contexts scheduled to be removed from a flag’s individual targets in one environment, with removal dates.

get_flag_status

Get one flag’s evaluation status and last-requested time in one environment.

get_flag_status_across_envs

Get a flag’s evaluation status (new, active, inactive, launched) and last-requested time in every environment.

get_flag_trigger

Get one flag trigger by ID. Use list_flag_triggers to find trigger IDs.

get_holdout

Get one holdout with its related experiments. Use list_holdouts for keys.

get_member

Get one account member by ID with role, custom roles and teams. Use list_members for IDs.

get_metric

Get one metric’s definition. Use list_metrics for keys.

get_metric_group

Get one metric group with its metrics. Use list_metric_groups for keys.

get_migration_safety_issues

Check planned update_flag instructions on a migration flag for safety issues (e.g. skipped stages) before applying them.

get_model_config

Get one model configuration by key. Use list_model_configs for keys.

get_project

Get one project by key, optionally with its environments. Use list_projects to find keys.

get_scheduled_change

Get one scheduled flag change by ID. Use list_scheduled_changes to find IDs.

get_segment

Get one segment with its rules and included/excluded targets. Use list_segments for keys.

get_segment_expiring_targets

List contexts scheduled to be removed from a segment’s targets, with removal dates.

get_segment_membership

Check whether a context key is explicitly included or excluded in a big (list-based) segment.

get_team

Get one team, optionally with members, roles and maintainers. Use list_teams for keys.

get_view

Get one view’s details. Use list_view_linked_resources for its contents.

get_webhook

Get one webhook by ID. Use list_webhooks to find IDs.

get_workflow

Get one flag workflow with its stages and execution state. Use list_workflows for IDs.

invite_members

Invite people to the LaunchDarkly account by email with a base role or custom roles, optionally into teams.

link_view_resources

Add flags, segments or AI configs to a view by key, segment identifier or filter. Undo with unlink_view_resources.

list_ai_configs

List a project’s AI configs (prompt + model configurations served like flags) with pagination, filter and sort.

list_approval_requests

List approval requests across the account with pagination and filters (status, reviewStatus, resourceKind, requestor, assigned reviewers).

list_audit_log_entries

List audit log entries (who changed what, when), newest first, filtered by time window, text, member or resource specifier.

list_code_ref_branches

List the scanned branches of a code-references repository.

list_code_ref_extinctions

List extinction events: when a flag’s last code reference was removed from a branch.

list_code_ref_repositories

List repositories scanned by LaunchDarkly code references, optionally with branches and flag references on the default branch, filtered by project or flag key.

list_code_ref_statistics

List the projects that have code references, with links to their statistics.

list_context_attribute_values

List recently seen values of one context attribute in an environment, e.g. every ‘country’.

list_context_attributes

List context attribute names recently seen in an environment, per context kind.

list_context_kinds

List a project’s context kinds (e.g. user, organization, device).

list_custom_roles

List custom roles with their policies, with pagination.

list_dependent_flags

List flags in any environment that use this flag as a prerequisite.

list_dependent_flags_by_env

List flags in one environment that use this flag as a prerequisite. Use list_dependent_flags for every environment.

list_environments

List a project’s environments with pagination, query/tag filters and sorting.

list_experiments

List experiments in one environment with pagination and filters (flagKey, metricKey, status, archived).

list_flag_followers

List members following a flag in one environment (they get notified of changes).

list_flag_statuses

List the evaluation status (new, active, inactive, launched) of every flag in one environment.

list_flag_triggers

List a flag’s triggers in one environment: webhook URLs that turn the flag on or off from monitoring tools.

list_flags

List a project’s feature flags with pagination, filters (query, tags, state, type, maintainer, status) and sorting.

list_followers_by_env

List every flag in an environment that has followers, with its followers.

list_holdouts

List holdouts in one environment with pagination. Returns keys for get/update_holdout.

list_layers

List a project’s experiment layers (mutually exclusive experiment groups).

list_members

List account members with pagination, filters (name/email query, role, team) and sorting.

list_metric_groups

List a project’s metric groups (funnels and standard groups) with pagination and filters.

list_metrics

List a project’s metrics with pagination, filters (query, tags, event kind, numeric) and sorting.

list_model_configs

List model configurations usable in AI config variations, filtered by provider or text and paged.

list_project_experiments

List experiments across every environment of a project with pagination and filters.

list_projects

List projects in the LaunchDarkly account with offset pagination, filtering by name/key query or tags, and sorting.

list_resource_views

List the views a flag, segment or AI config belongs to. Segments need environment_id.

list_scheduled_changes

List pending scheduled changes for a flag in one environment, with execution dates and instructions.

list_segments

List segments in one environment with pagination, filters (query, tags, keys, unbounded) and sorting.

list_tags

List tags in use across the account, filterable by resource type and prefix.

list_team_maintainers

List the members who maintain a team, with pagination. Use list_teams for keys.

list_team_roles

List the custom roles granted to a team, with pagination. Use list_teams for keys.

list_teams

List teams with pagination, name/key query filter and sorting.

list_view_linked_resources

List the flags, segments or AI configs linked to a view, with pagination and search.

list_views

List a project’s views (named collections of flags, segments and AI configs) with pagination, filter and sort.

list_webhooks

List the account’s webhooks (signing secrets are not returned).

list_workflows

List custom workflows (staged rollouts, approval flows) on a flag in one environment, filterable by status.

remove_flag_follower

Stop a member following a flag in one environment. Use list_flag_followers for IDs.

review_approval_request

Approve, decline or comment on an approval request.

search_audit_log_entries

Search audit log entries with policy-style resource/action statements (e.g. every updateOn on any flag), plus time, text and member filters.

search_contexts

Search contexts (users, orgs, devices) seen in an environment in the last 30 days, with a filter expression and cursor pagination.

set_context_flag_setting

Serve a specific variation value of a flag to one context in an environment (an individual target), or pass setting=null to remove it.

unlink_view_resources

Remove flags, segments or AI configs from a view by key, identifier or filter.

update_ai_config

Update an AI config’s name, description, tags, maintainer or default variation.

update_ai_config_targeting

Change which AI config variation is served in an environment (default, rules, targets) with semantic patch.

update_ai_config_variation

Update an AI config variation’s name, messages, instructions, model or state (archive).

update_custom_role

Update a custom role’s name, description or policy with JSON Patch. Use get_custom_role to read the current policy.

update_environment

Update an environment with JSON Patch, e.g. [] or ‘/approvalSettings/required’.

update_experiment

Start, stop, restart, archive or rename an experiment with semantic patch instructions. Use list_experiments for keys.

update_experimentation_settings

Replace a project’s experimentation randomization units.

update_flag

Change a flag: turn on/off, add targets or rules, change rollout, rename, tag, archive.

update_flag_defaults

Update a project’s defaults for new flags with JSON Patch, e.g. []. Read them first with get_flag_defaults.

update_flag_expiring_targets

Schedule, change or cancel the automatic removal of a context from a flag’s targets.

update_flag_trigger

Enable, disable, regenerate the URL of, or change the action of a flag trigger.

update_holdout

End, rename or remove experiments from a holdout with semantic patch instructions. Use list_holdouts for holdout keys.

update_layer

Rename a layer or change experiment traffic reservations in it with semantic patch. Use list_layers for keys.

update_member

Change a member’s role or custom roles with JSON Patch, e.g. []. Use list_members for IDs.

update_metric

Update a metric with JSON Patch, e.g. ‘/name’ or ‘/tags/-’. Use list_metrics for keys.

update_metric_group

Update a metric group with JSON Patch, e.g. ‘/name’ or ‘/metrics’. Use list_metric_groups.

update_project

Update a project with JSON Patch, e.g. [] or add a tag at ‘/tags/-’. Use get_project to read current values.

update_scheduled_change

Change a scheduled flag change’s execution date or replace its instructions. Use list_scheduled_changes for IDs.

update_segment

Change a segment: add/remove included or excluded targets, add rules, rename, tag.

update_segment_expiring_targets

Schedule, change or cancel the automatic removal of a context from a segment’s included or excluded targets.

update_team

Change a team with semantic patch: add/remove members or custom roles, rename, describe.

update_view

Update a view’s name, description, maintainer or tags. Use list_views for keys.

update_webhook

Update a webhook with JSON Patch, e.g. disable it with []. Use list_webhooks to find IDs.

upsert_context_kind

Create a context kind, or update its name/description/visibility if the key exists.