Skip to main content
Glama

Last Price

propose_experiment_variant

Add one price arm to an existing experiment: pass experiment_key and the price, optionally label (otherwise the next variant_N is used) and metadata. The experiment must split traffic evenly and have room for another arm (ten at most); one whose arms carry weights refuses, so the author has to say how traffic is reshared. This changes the experiment, so a running one starts serving the new price to its share of buyers. Needs a claimed Last Price credential. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.

Input Schema

NameRequiredDescriptionDefault
labelNoThe arm's name. Defaults to the next variant_N.
priceYesThe price the new arm serves.
metadataNoAnything to keep with the arm.
experiment_keyYesThe experiment key: key on a list_experiments result, lowercase letters, digits and underscores.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the live effect that a running experiment will start serving the new price to its share of buyers, plus credential and workspace requirements including a 403 refusal for sandbox keys. This adds substantial operational context and does not contradict the declared non-readonly, non-idempotent, non-destructive behavior.

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?

The description is front-loaded with the core action and required parameters, then layers in constraints and auth requirements. Despite covering many constraints, every sentence contributes useful operational information without repetition.

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 mutation tool with no output schema, the description covers the critical missing context: live behavior, experiment constraints, credential requirements, and workspace claim requirements. An agent has enough information to decide whether and how to invoke it correctly.

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 description coverage is 100%, so the schema already documents all four parameters, including the label default and price meaning. The description reinforces required versus optional parameters but adds little parameter-level syntax or semantics beyond what the schema provides.

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?

The description uses a specific verb and resource: 'Add one price arm to an existing experiment.' It clearly scopes the operation to existing experiments rather than creating experiments or allocating traffic generally, so an agent can distinguish it from siblings like create_experiment or allocate_variant_traffic.

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?

It explicitly states prerequisites and refusal conditions: the experiment must split traffic evenly, have room for another arm, reject weighted arms, and require a claimed Last Price credential and claimed workspace. These are concrete when-to-use and when-not-to-use signals rather than implied guidance.

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.

Resources