Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Create metric data source
LAUNCH_DARKLY_MCP_CREATE_METRIC_DATA_SOURCECreate a warehouse-native metric data source that maps a SQL query, table, or view in a connected warehouse to metric events. Give sqlQuery, or tableName or viewName with columns. With sqlQuery and no columns, the columns come from previewing the query. sqlQuery must be a single SELECT or WITH statement. Mappings that name a column the source does not return are rejected before saving, with the list of its columns. contexts maps each context kind to the column holding its key, such as {"user": "USER_ID"}; each kind must be a randomization unit in the project. Event keys are discovered asynchronously after creation: check them with get-metric-events, then create the metric with create-metric and this dataSourceKey.
Create playground
LAUNCH_DARKLY_MCP_CREATE_PLAYGROUNDCreate a new LLM playground. A playground lets you compare AgentControl Config variations side-by-side. Provide a name and variants — each variant references an evaluation definition (by evaluationId) and a zero-based display position: the first variant is 0, the second 1. Timestamps in the result are UTC.
Create project
LAUNCH_DARKLY_MCP_CREATE_PROJECTCreate a new LaunchDarkly project. Returns the project with its environments, including each environment's client-side ID and mobile key. Does not return server-side SDK keys; use get-sdk-key. Project keys must be lowercase with hyphens, starting with a letter. Production and Test environments are created by default.
Create prompt snippet
LAUNCH_DARKLY_MCP_CREATE_PROMPT_SNIPPETCreate a reusable prompt snippet. Not for a snippet the user defines while creating an evaluation: create-evaluation takes it inline in promptSnippets. Timestamps in the result are UTC.
Create segment
LAUNCH_DARKLY_MCP_CREATE_SEGMENTCreate a new segment in a project environment. The segment is empty after creation; use update-segment-rules or update-segment-targets to configure it. Segment keys are immutable.
Create trace annotation
LAUNCH_DARKLY_MCP_CREATE_TRACE_ANNOTATIONSave a review (annotation) on one span of a trace that has none: correctness, explanation, or expectedOutputOverride; give at least one. Requires confirm=true. traceId, spanId, and timestamps come from search-traces and get-trace (observability toolset). spanTimestamp needs a UTC offset; any time within an hour of the span works. If the span has a review, use update-trace-annotation. To add the span to a dataset, call create-trace-promotion next.
Create trace promotion
LAUNCH_DARKLY_MCP_CREATE_TRACE_PROMOTIONAdd one span of a trace, or the whole trace, to an offline evaluation dataset as a new row. With spanId, the span's review is applied (expectedOutputOverride becomes the expected output); without it, none is. traceId, spanId, and timestamps come from search-traces and get-trace (observability toolset). datasetId comes from get-datasets. timestamp needs a UTC offset; any time within an hour works. Returns a jobId right away; poll get-trace-promotions until it is completed or failed. Don't start it again while it runs.
Create view
LAUNCH_DARKLY_MCP_CREATE_VIEWCreate a new view in a project. Views are an Enterprise feature. The view is empty after creation — use link-view-resources to link flags, segments, or AgentControl Configs to it, or pass viewKeys when creating those resources. The key is converted to lowercase by the API, so use the lowercase form to reference the view afterward. MAINTAINER: set maintainerTeamKey or maintainerId to assign an owner; only one of the two can be specified. Prefer maintainerTeamKey when a suitable team exists. Timestamps in the result are UTC.
Run evaluation
LAUNCH_DARKLY_MCP_RUN_EVALUATIONStart an AI evaluation run. Provide exactly one target: datasetId (from get-datasets; the dataset must finish processing) or playgroundId (from get-playgrounds). rowSelectionMode is all (the default), top (the first rows), or random (a sample); top and random also need rowSelectionUnit count with a positive integer (e.g. 50) or percent with a fraction in (0, 1] (e.g. 0.25). Returns the run ID and state. Timestamps in the result are UTC.