Skip to main content
Glama

Get A/B test

get_ab_test
Read-onlyIdempotent

Returns one A/B test: its versions with their traffic and what each changes against version A, and for a started test each version's visitors, paid orders, conversion, revenue, revenue per visitor and lift against A. results.says puts what the numbers mean in one line; results.recommended_version is the version we call the winner, if any. We judge a test after 7 full days, 500 visitors and 20 paid orders per version. get_bundle or get_cart with version returns a version's full settings.

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": {
      "ab_test_id": "<ab_test_id>"
    },
    "name": "get_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
ab_test_idYesTest id from list_ab_tests.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuine behavioral context on top: metrics only appear 'for a started test', and the judging criteria (7 full days, 500 visitors, 20 paid orders per version) explain when numbers are meaningful. It also names specific output fields (results.says, results.recommended_version) and their meaning, which is exactly the burden the description should carry with no output schema.

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?

It is front-loaded with the return payload, then interpretation fields, then judging thresholds, then the alternative tool — a logical order with no filler. The middle sentences are dense metric lists that read as a run-on, but every clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description must explain return values and it does thoroughly, including field-level meaning for the interpretive outputs and the conditions under which metrics exist. Nothing an agent needs in order to call this correctly or interpret the response is missing.

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% and the single parameter is documented in-schema as 'Test id from list_ab_tests.' The description adds no further detail about ab_test_id formatting or provenance, so it neither compensates nor detracts — baseline 3 applies.

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 opens with a specific verb and resource ('Returns one A/B test') and then enumerates exactly what comes back: versions, traffic, diffs against version A, and per-version metrics. That level of specificity makes it clearly distinct from list_ab_tests or the mutation siblings.

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 gives a concrete routing rule for a common follow-up need: 'get_bundle or get_cart with version returns a version's full settings', which tells the agent when this tool's output is insufficient. It doesn't explicitly contrast with list_ab_tests, but the singular-resource framing makes the choice obvious.

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