Skip to main content
Glama

Google Ads & Meta Ads

Meta: Update A/B Test

meta_update_ab_test
DestructiveIdempotent

Change the name, description or end date of a Meta A/B test or lift study of the business that owns your ad account. The new end date must be in the future; an earlier end date shortens the study, and measurement it skips cannot be resumed. To stop a study use meta_end_ab_test; to delete it use meta_cancel_ab_test.

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_update_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name.
end_timeNoNew end, ISO 8601 with offset, in the future.
study_idYesA/B test or lift study id.
descriptionNoNew description.
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
studyIdYesStudy changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds real context beyond them by explaining that an earlier end date shortens the study and the measurement it skips cannot be resumed, which tells the agent why the mutation is destructive. It also notes the multi-account rule that the stored default is never used for a change, though it says nothing about required permissions or the response.

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?

Three sentences, front-loaded with the editable fields, followed by the key constraint and then the sibling routing. Tight and purposeful, though the multi-account clause inside the ad_account parameter overlaps with the schema text.

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 an output schema and full annotation coverage, the description carries only what structured data cannot: the irreversibility of shortening a study and which sibling to use instead. Nothing essential is missing, though permission requirements and the effect on already-collected data are not fully spelled out.

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 all five parameters are already documented, including the ISO 8601 with offset format and the act_ id/name form for ad_account_id. The description only restates the future-end-date constraint and partially echoes the multi-account requirement, adding little 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 (change) with the exact editable fields (name, description, end date) on a named resource (Meta A/B test or lift study), and names the sibling stop/delete tools so it is unmistakable against meta_end_ab_test and meta_cancel_ab_test.

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?

Explicitly routes the agent: use meta_end_ab_test to stop a study, meta_cancel_ab_test to delete it, implying this tool is only for field edits on a continuing study. The alternative conditions are stated, not inferred.

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