Skip to main content
Glama

Adbloop Meta Ads

update_adset_schedule

DestructiveIdempotent

Change the END time of an existing ad set (e.g. start a fixed run once delivery is confirmed). Works with daily and lifetime budgets; with a lifetime budget Meta re-paces the remaining budget to the new end and the total cap is unchanged. With a lifetime budget the end must be more than 24 hours after the ad set's start. Requires confirm:true after the user approves the new end time. WRITES live.

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": {
      "adset_id": "<adset_id>",
      "end_time": "<end_time>",
      "meta_account_id": "<meta_account_id>",
      "confirm": "<confirm>"
    },
    "name": "update_adset_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true, and only after the user has explicitly approved this exact change (account, items and new values) in the conversation.
adset_idYesThe ad set ID (adsetId returned by create_campaign).
end_timeYesNew end time, ISO 8601 with timezone offset, e.g. 2026-10-20T23:59:00+08:00. Must be in the future.
meta_account_idYesREQUIRED — the ad account this ad set belongs to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Must be true, and only after the user has explicitly approved this exact change (account, items and new values) in the conversation.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "adset_id",
      -  "end_time",
      -  "meta_account_id"
      -]New value: +[
      +  "adset_id",
      +  "end_time",
      +  "meta_account_id",
      +  "confirm"
      +]
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses real consequences: with a lifetime budget Meta re-paces the remaining budget while the total cap stays unchanged, and the new end must be more than 24 hours after the ad set's start. It also flags that the write is live and gates it behind explicit user confirmation.

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?

The description is front-loaded with the action and scope, then layers constraints and the confirmation gate in a compact sequence. The trailing 'WRITES live' is largely redundant with readOnlyHint=false and destructiveHint=true, but it is short and unambiguous.

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 and a simple four-parameter mutation, the definition covers what an agent needs: allowed field, budget-mode effects, the 24-hour constraint, and the confirmation protocol. It does not say whether the change takes effect immediately or how to revert it, a minor gap.

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 schema already documents all four parameters and the baseline would be 3. The description nonetheless adds constraints not present in the schema, notably the 24-hour rule relative to start time under a lifetime budget, and reinforces the confirm-approval semantics.

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 states a specific verb and resource with an explicit scope limit: it changes only the END time of an existing ad set, not budgets or start times. That scope restriction separates it cleanly from siblings like update_campaign_budget or add_ad_to_adset without needing to name them.

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 use case ('start a fixed run once delivery is confirmed') and a hard prerequisite (confirm:true only after the user approves the new end time). It lacks explicit when-not guidance or named alternatives such as how to change a start time or budget instead.

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