Skip to main content
Glama

Experiment Create

experiment_create
Read-onlyIdempotent

Model Lab: run one prompt across many AI models at once and compare their outputs, cost, and latency side by side. Create and start an experiment: run each prompt against each model (x reps), collecting output, tokens, latency, and billed cost per cell. PREPAID: requires Pipeworx credit balance ≥ max_spend_usd (top up via experiment_topup); bills actual provider cost x 1.5 with a $0.10 minimum per experiment. ASYNC: returns experiment_id immediately, execution starts within ~1 minute; poll experiment_status until complete, then call experiment_results. Do NOT wait synchronously. Set summary:false to skip the AI-written model-comparison summary. Example: experiment_create({ name: "tone test", prompts: ["Rewrite formally: ..."], models: ["anthropic/claude-haiku-4.5", "openai/gpt-5-mini"], reps: 2, max_spend_usd: 2 })

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "model comparison",
      "models": [
        "anthropic/claude-sonnet-4.5",
        "openai/gpt-4o-mini"
      ],
      "prompts": [
        "Explain quantum computing in simple terms."
      ],
      "max_spend_usd": 5
    },
    "name": "experiment_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoShort experiment name
repsNoRepetitions per promptxmodel for variance, 1-5 (default 1)
modelsYesModel ids from experiment_models (max 12)
paramsNoOptional {system, temperature, max_tokens (default 512)}
promptsYesPrompts to test (max 20)
summaryNoAI-written comparison of the models' outputs when the run completes (default true)
max_spend_usdYesREQUIRED hard spend cap in USD for this experiment (max 100). Execution stops when reached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / reps / description
      Previous value: -"Repetitions per prompt×model for variance, 1-5 (default 1)"New value: +"Repetitions per promptxmodel for variance, 1-5 (default 1)"
  2. First observed

TDQS

A4.1/5.0
Behavior1/5

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

The description discloses a paid, state-mutating operation: it creates and starts a run, requires prepaid credit ≥ max_spend_usd, bills actual provider cost x 1.5 with a $0.10 minimum, and spends asynchronously. Annotations declare readOnlyHint=true and idempotentHint=true, which directly contradicts a tool that creates state and charges money — a repeat call would start a second billed experiment, not return the same result.

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?

Front-loaded with purpose, then hard constraints marked by scannable caps labels (PREPAID, ASYNC, DO NOT), then a concrete call example. Every sentence carries operational weight; nothing is repeated from the schema verbatim or padded.

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

Completeness5/5

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

For a 7-parameter async tool writing to a nested params object with no output schema, the description covers cost model, execution timeline, follow-up tools, and the effect of the summary flag. An agent can call it and know what to do next without opening other tools.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description still adds value by tying max_spend_usd to the prepaid balance requirement and billing formula, and by clarifying that reps multiplies prompt x model cells. The inline example also demonstrates realistic parameter combinations (array-of-string prompts, slash-qualified model ids, nested params).

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

Purpose5/5

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

Opens with a concrete verb+resource ('Create and start an experiment') and states exactly what happens: each prompt against each model x reps, collecting output, tokens, latency, and billed cost per cell. The 'Model Lab' framing plus the contrast with the polling siblings makes it unmistakable what this tool is for.

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

Usage Guidelines5/5

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

Explicit lifecycle routing: returns immediately, poll experiment_status until complete, then call experiment_results, and 'Do NOT wait synchronously.' It also names experiment_topup for insufficient balance and explains when to set summary:false, so both entry conditions and follow-up steps are covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.