Skip to main content
Glama

A/B test results of campaigns

get_ab_tests
Read-onlyIdempotent

Results of the A/B tests on this channel's campaigns, read only: for each test the variants (each line of the private message) with sends, unique clicks and the rate with a confidence interval, and decision: a winner (with p_value and lift), or why not yet (not_enough_data with how many more sends each variant needs, too_close, rotation_off, copy_changed). Pass campaign_id for one campaign's test. The owner starts, stops and applies tests in the dashboard: report the result and let the user decide.

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": {
      "page": "<page>"
    },
    "name": "get_ab_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesChannel id from list_pages (a Facebook Page or an Instagram account)
campaign_idNoOne campaign's test; omit for every test on the channel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description reinforces rather than contradicts that ('read only', 'report the result and let the user decide'). Beyond the annotations it discloses the decision model, including the 'winner with p_value and lift' branch and the four non-winning branches (not_enough_data with additional sends needed, too_close, rotation_off, copy_changed), which is real behavioral context. It does not cover result size/pagination for a channel with many tests.

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?

Front-loads the core statement of what is returned and then layers the decision enumeration and the parameter note in a single compact block with no filler. It is dense but every clause carries information, with only minor repetition of the schema's campaign_id behavior and of the readOnly annotation.

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 carries the return-shape burden and does so thoroughly by enumerating metrics and decision states. For a two-parameter read tool that is nearly complete; only the absence of any note about result volume or pagination across many campaigns leaves a small gap.

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%, so both parameters are already documented, and the description's 'Pass campaign_id for one campaign's test' largely restates the schema's 'omit for every test on the channel'. It adds the framing that results are scoped to a channel's campaigns but no format or edge-case detail beyond that, so the baseline of 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?

Names a specific resource and scope ('Results of the A/B tests on this channel's campaigns') and immediately characterizes the payload: per-test variants with sends, unique clicks, click rate with confidence interval, and a decision. An agent can distinguish this from get_campaign/list_campaigns/get_analytics without opening any schema.

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?

Gives explicit parameter-driven usage ('Pass campaign_id for one campaign's test') and a clear boundary on what to do with the result: the owner starts, stops and applies tests in the dashboard, so this tool only reports and the user decides. It stops short of naming a sibling tool for the mutation path, so the routing is behavioral rather than tool-to-tool.

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.