Skip to main content
Glama

preflight

Validates an experiment before launch by checking its warehouse, variant keys, metric events, and code for exposure tracking and event sending.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "experiment": "<experiment>"
    },
    "name": "preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
probeNoOn a running experiment: evaluate this many made-up identities to verify assignment. Records no exposures, but leaves identities named referee-probe-NNNNNN in Flagsmith.
code_rootNoDirectory of the source tree to scan. Defaults to the directory the server runs in.
experimentYesExperiment id, exact experiment name, or its flag name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description says 'Check' which implies a read-only verification, but annotations declare readOnlyHint=false. It also fails to mention the side effect of the probe parameter (leaving referee-probe identities in Flagsmith) and the openWorldHint context. This contradicts the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence that packs the key checks without any wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers what is checked but omits critical behavioral details such as the probe side effect and the fact that the tool is not read-only. With no output schema, it also doesn't indicate what results to expect. This leaves the agent under-informed for a tool with side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all parameters. The description adds only that code_root enables scanning whether the code records exposures and sends events, which slightly clarifies the purpose of that parameter. It does not add meaning for experiment or probe beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'check' with the resource 'an experiment before it starts' and enumerates what is checked (warehouse, variant keys, metric events, code exposures/events). It distinguishes from start_experiment by the 'before it starts' timing, but does not name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a clear usage context ('before it starts') but provides no explicit when-not conditions or named alternatives. The timing implies it should be used prior to experiment launch.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.