Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Create experiment

create_experiment
Idempotent

Use when the user wants a new A/B test. Returns the created id, variant keys, and the goal event. To pause, resume, or complete one, use update_experiment. To remove one, use delete_experiment.

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": {
      "project": "<project>",
      "name": "<name>",
      "variants": "<variants>",
      "goal_event": "<goal_event>"
    },
    "name": "create_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExperiment name
projectYesProject name
weightsNoVariant weights, for example 50 and 50
variantsYesVariant keys, for example control and new_cta
goal_eventYesGoal event name to measure conversions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the mutation profile (readOnly=false, destructive=false, idempotent=true), so the description's job is to add context, and it does by disclosing the return payload: created id, variant keys, and goal event. It does not mention failure modes like duplicate names or invalid goal events, which is the remaining gap.

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?

Three short sentences with the trigger condition front-loaded, followed by the return payload and then the sibling routing. Nothing is redundant with the schema and no sentence is filler.

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

Completeness4/5

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

With no output schema, the description usefully covers the return shape, and the fully documented schema handles parameters. What is missing is prerequisite information for a creation tool with a required project and goal_event, plus the effect of omitting weights.

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 all five parameters including weights and variants already carry explanations, and the baseline of 3 applies. The description adds only a light restatement of variant keys and goal event via the return values, and never mentions the optional weights parameter.

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 frames the tool as creating "a new A/B test" and names the created experiment id, so the verb-plus-resource intent is unambiguous against update_experiment and delete_experiment. It stops just short of a declarative "creates an experiment" statement, relying on the name and the when-to-use phrasing to carry the action.

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 the trigger condition (user wants a new A/B test) and explicitly routes lifecycle changes to update_experiment and removal to delete_experiment, so an agent can pick among the three siblings without opening schemas. It does not state prerequisites, such as whether the project or goal event must already exist.

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