Skip to main content
Glama

experiment_results

Read-onlyIdempotent

Retrieve A/B experiment results per variant: visitors, conversions, conversion rate, revenue per visitor, z-test p-value, confidence interval, and sample-ratio-mismatch warnings for comparability.

Instructions

A/B experiment results: per variant visitors, conversions, conversion rate and revenue per visitor, a two-proportion z-test against the control (p-value, 95% interval, significant yes/no), and a sample-ratio-mismatch check. If warnings say the split is mismatched, the arms are not comparable.

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": "experiment_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
experimentYesThe experiment key, e.g. "pricing_page", or its numeric id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value by disclosing the returned statistical artifacts, including an SRM warning whose presence invalidates comparison between arms. It does not mention data freshness, date-range scoping, or what happens when the experiment key is unknown.

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

Conciseness4/5

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

Two sentences, no filler, and the list of returned metrics is front-loaded before the caveat about sample-ratio mismatch. The one long enumerated sentence is dense but every item earns its place by telling the agent what to expect in the response.

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

Completeness3/5

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

With no output schema present, the description properly carries the burden of describing return values, which it does thoroughly. However, it omits scope details an agent would want for a single-parameter lookup tool – result time window, behavior for an unknown or non-running experiment, and whether metrics are cumulative or bounded.

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?

There is a single required parameter, and schema coverage is 100% – the schema already documents that 'experiment' accepts a key such as "pricing_page" or a numeric id. The description adds nothing about the parameter, so the baseline of 3 applies.

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 names a specific resource (A/B experiment results) and enumerates exactly what is returned: per-variant visitors, conversions, conversion rate, revenue per visitor, a two-proportion z-test with p-value and 95% interval, and an SRM check. That is far more specific than the bare tool name and clearly separates it from reporting siblings like revenue_summary. It falls short of 5 only because it never explicitly contrasts itself with a named alternative.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus other tools, nor any prerequisite such as the experiment needing to be running or completed. The only guidance is interpretive ('if warnings say the split is mismatched, the arms are not comparable'), which tells the agent how to read output, not when to select the tool.

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