Skip to main content
Glama

Google Ads & Meta Ads

Meta: Cancel A/B Test

meta_cancel_ab_test
Destructive

Cancel a Meta A/B test or lift study of the business that owns your ad account. This deletes the study and its results; to stop it and keep the results use meta_end_ab_test. Two steps: confirmed=false (default) is a preview — it shows the study and the results that would be lost, and deletes nothing; confirmed=true deletes it. Set confirmed=true only after the user explicitly approved deleting this study in chat. The campaigns and ad sets in it keep running; pause them with meta_set_status.

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": {
      "study_id": "<study_id>"
    },
    "name": "meta_cancel_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
study_idYesA/B test or lift study id.
confirmedNofalse (default): preview only — shows the study and the results that would be deleted. true: delete it — set only after the user explicitly approved deleting this study in this conversation.
ad_account_idNoMeta ad account to change: act_ id or exact account name. Required when you have several ad accounts — the stored default is never used for a change then.

Output Schema

NameRequiredDescriptionDefault
nameNoStudy name.
typeNoSPLIT_TEST, LIFT, …
stageYesPREVIEW (nothing deleted) or DELETED.
endTimeNoStudy end.
studyIdYesStudy previewed or deleted.
startTimeNoStudy start.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Adds substantial context beyond the destructiveHint annotation: what exactly gets destroyed (the study and its results), the two-step preview/confirm workflow, the 'deletes nothing' guarantee of the preview, and the fact that contained campaigns/ad sets keep running. This is precisely the information an agent needs before invoking a destructive operation.

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?

Front-loaded with the destructive action and its alternative, then the two-step protocol, then the side-effect note on campaigns. Every sentence carries operational meaning with no filler.

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 destructive, non-idempotent tool with an output schema and full annotation coverage, the description covers the required approval gate, what is lost, the preview path, and what is not affected. Nothing an agent needs to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes slightly further by framing confirmed as a workflow gate tied to prior user approval rather than a bare boolean, and by clarifying the preview/delete semantics inline. It doesn't add format or edge-case detail for study_id or ad_account_id beyond the schema.

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?

States a specific verb (cancel/delete) and resource (Meta A/B test or lift study) with clear scope limited to the business owning the ad account. It explicitly distinguishes itself from meta_end_ab_test, so an agent can pick between the two without opening schemas.

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?

Gives explicit when-to-use (stop and keep results use meta_end_ab_test), when to use the preview vs. delete modes, the approval prerequisite in chat, and a follow-up pointer (pause campaigns with meta_set_status). No ambiguity is left for the caller.

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