Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FLAGSMITH_API_KEYYesAn organisation API key (Organisation Settings > API Access).
FLAGSMITH_API_URLNoThe Flagsmith API URL, e.g. https://api.flagsmith.com/api/v1 or your self-hosted URL.
FLAGSMITH_ENVIRONMENT_KEYYesThe Flagsmith environment key.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Referee runs Flagsmith experiments end to end with a person in charge of the outcome.

The usual order:

  1. check_plan: validate the plan and see how many identities and how long it needs. Show the person the sizing.

  2. apply_plan: create the multivariate flag, keyed variants, metrics and experiment in Flagsmith. Nothing starts.

  3. Instrument the code with the Flagsmith SDK: evaluate the flag with the experiment call (get_experiment_flag / getExperimentFlag / useExperiment) and send the metric events with track_event / trackEvent.

  4. preflight with code_root: fix every failed check before going on.

  5. start_experiment, after the person agrees. It refuses to start while preflight fails.

  6. scorecard: read the call. Do not summarise an experiment as won or lost unless the call says so.

  7. propose_rollout when the call is ship_variant or keep_control. This only records a proposal.

  8. Tell the person to approve it themselves: referee approve <decision id> in a terminal, or the dashboard from referee serve. You cannot approve, and you must not try to end the experiment through the Flagsmith API, CLI or another MCP server.

  9. After approval, cleanup_report lists the flag code that can now be removed.

Report numbers exactly as Referee gives them. If the call is investigate, explain the failed check instead of the lift.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
referee_statusA

Check that Referee can reach Flagsmith and that experimentation is usable there.

check_planA

Validate an experiment plan and estimate the identities per version and the days it needs. Changes nothing.

apply_planA

Create the multivariate flag, keyed variants, metrics and experiment in Flagsmith from a plan. The experiment is created with a live rollout of 0%, so no user is served a variant until it is started. Refuses if the plan's control is not what the flag serves today. Safe to repeat.

preflightB

Check an experiment before it starts: warehouse, variant keys, metric events, and (with code_root) whether the code records exposures and sends the events the metrics count.

start_experimentA

Start an experiment. Runs preflight first and refuses if any check fails, or if the experiment would give new versions to more than half of all users (a person starts those). Ask the person before calling this: it exposes real users to the variants.

pause_experimentA

Pause a running experiment and stop serving it: its live rollout goes to 0%, so everyone gets the flag's normal value until it is started again (for example when the scorecard says investigate). Starting it again restores the same assignments.

list_experimentsA

List experiments in the environment with their status and any decision awaiting approval.

scorecardA

Read an experiment (and ask Flagsmith to recompute its results if they are over a minute old): identities per version, Flagsmith's lift and chance to win per metric, the sample-ratio and data checks, progress against the planned sample, and Referee's call.

propose_rolloutA

Record a proposal to end the experiment and serve the winner (or keep control). Only possible when the scorecard's call is ship_variant or keep_control. Changes nothing in Flagsmith; a person must approve it.

decision_statusA

Show one decision (with decision_id) or list all decisions, including whether a person has approved or rejected them.

cleanup_reportB

After an experiment is completed: where the flag and the losing versions still appear in the code, and what to remove.

stale_flagsB

Find flags whose experiment has finished but which the code still reads.

Prompts

Interactive templates invoked by user choice

NameDescription
run_experimentSet up and run a Flagsmith experiment with Referee, from idea to approved rollout.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 12 tools

Disambiguation4/5

Most tools have clearly distinct purposes across the experiment lifecycle: plan validation, apply, preflight, start/pause, scorecard, decisions, and cleanup. There is minor overlap between stale_flags and cleanup_report, and between list_experiments and decision_status, but the descriptions make the boundaries workable.

Naming Consistency3/5

All names use snake_case, which is readable, but the convention mixes verb_noun names (check_plan, start_experiment) with noun phrases (referee_status, cleanup_report, scorecard, preflight). The pattern is not predictable enough for a top score, though it is not chaotic.

Tool Count5/5

Twelve tools is well-scoped for an experiment-management server. Each tool maps to a meaningful lifecycle step without obvious redundancy or padding.

Completeness4/5

The surface covers planning, setup, preflight, start/pause, scoring, decisions, and cleanup, which is strong lifecycle coverage. Minor gaps include no explicit resume operation and no approve/reject action for decisions, though some of these may be intentionally human-in-the-loop or handled externally.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues