Skip to main content
Glama

Set ad schedule

set_ad_schedule

Set a campaign's weekly ad schedule with friendly input and correct, platform-aware timezone handling — the easy front door over update_campaign's adSchedule. Pass HH:MM times, day shorthands (MON…SUN, WEEKDAYS, WEEKEND) and/or a preset. Windows may cross midnight (19:00->07:00) and are auto-split. timezone:'local' uses the searcher's local time on Microsoft (AdScheduleUseSearcherTimeZone); Google cannot localize per searcher, so pass an explicit IANA zone (e.g. 'Europe/Istanbul') to offset-bake the hours to that location relative to the account timezone. Use dry_run:true to preview the exact expanded schedule and any warnings WITHOUT mutating the campaign. Scoped to the active Space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presetNoA named schedule, expanded server-side. May be combined with windows to add to it.
dry_runNoIf true, return the expanded schedule + warnings WITHOUT writing. Use to learn the exact result before committing.
windowsNoFriendly windows. Each item: { days: ["MON".."SUN" | "WEEKDAYS" | "WEEKEND"], start: "HH:MM", end: "HH:MM", bidModifier?: 0.1-10 }. Minutes must be :00/:15/:30/:45. end may be "24:00"; an end at or before start crosses midnight and is auto-split.
platformNoDisambiguate timezone semantics when the campaign is linked to multiple platforms. Optional; inferred from the campaign's platform links otherwise.
space_idNoOverride the active Space for this one call.
timezoneNo'local' (searcher-local on Microsoft; account-time + warning on Google), 'UTC', or an IANA zone like 'Europe/Rome'. Omit to use the account timezone. Explicit zones that differ from the account zone are offset-baked into the stored hours (with a DST caveat in the response).
campaign_idYesCampaign id (as returned by list_campaigns).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "google-ads",
      -  "microsoft-ads",
      -  "reddit-ads",
      -  "meta-ads",
      -  "openai-ads"
      -]New value: +[
      +  "google-ads",
      +  "microsoft-ads",
      +  "reddit-ads",
      +  "meta-ads",
      +  "openai-ads",
      +  "linkedin-ads"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "google-ads",
      -  "microsoft-ads",
      -  "reddit-ads",
      -  "meta-ads"
      -]New value: +[
      +  "google-ads",
      +  "microsoft-ads",
      +  "reddit-ads",
      +  "meta-ads",
      +  "openai-ads"
      +]
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint:false, leaving the mutation aspect to the description. The description discloses critical behaviors: dry_run prevents mutation, windows crossing midnight are auto-split, timezone 'local' maps differently per platform, explicit IANA zones are offset-baked with a DST caveat, and the operation is scoped to the active Space. This goes well beyond the annotation and adds rich, non-obvious context.

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?

The description is a single dense paragraph but is well-structured: it front-loads the core purpose and value proposition, then explains input formats, timezone rules, and the dry_run safety net. Every sentence adds necessary detail for a tool of this complexity; there is no fluff or repetition.

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 tool with 7 parameters, no output schema, and complex platform-specific behavior, the description covers all essential aspects: input syntax (HH:MM, day shorthands), presets, window crossing midnight, timezone handling for each platform, dry_run behavior, and scoping. It does not specify the exact return format, but dry_run is described as returning the expanded schedule and warnings, which is sufficient for an agent to call it safely.

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 adds meaning beyond the schema by explaining the timezone semantics in detail (e.g., 'local' on Microsoft vs Google, offset-baking with DST caveat), the meaning of presets and window splitting, and the dry_run behavior. This elevates it above the baseline, though the schema already carries significant detail.

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 ('set') and resource ('campaign's weekly ad schedule'), and explicitly differentiates itself from the sibling update_campaign by calling itself 'the easy front door over update_campaign's adSchedule.' An agent can immediately tell this tool is a specialized, friendlier alternative.

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?

It gives clear when-to-use guidance ('easy front door over update_campaign's adSchedule'), explains platform-specific requirements (Microsoft vs Google timezone handling), and recommends dry_run:true for previewing without mutation. It also explains when to omit timezone and how to use presets. This is explicit and comprehensive.

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