Skip to main content
Glama
OpenAds MCP
by yashwp

Sync Campaigns

sync_campaigns

Fetch campaigns for an account and save today's snapshot to the database; rerunning on the same UTC day updates existing rows instead of creating duplicates.

Instructions

Fetch campaigns for an account and store today's snapshot in the database.

Running it twice on the same UTC day updates rows instead of duplicating them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sync_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idNoAccount identifier. Use "mock-us" or "mock-uk" until a real provider is configured.mock-us

Output Schema

NameRequiredDescriptionDefault
totalYes
updatedYes
insertedYes
account_idYes
snapshot_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well on the key risk point: it states that this writes to the database and that repeat runs on the same UTC day update rows rather than duplicating them, which is exactly the mutation semantics an agent needs. It stops short of covering permissions, provider-failure behavior, or whether older-day snapshots are retained.

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?

Two short sentences, no filler. The primary action leads and the idempotency caveat follows, so the most decision-relevant information is front-loaded.

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?

For a simple one-parameter tool with an output schema, the description covers the essentials: what is fetched, where it is stored, and the dedupe rule. Minor gaps remain around provider requirements and what happens to snapshots from prior days, but nothing blocks correct invocation.

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?

Only one parameter exists and its schema description already covers the allowed 'mock-us'/'mock-uk' values at 100% coverage. The description's phrase 'for an account' loosely maps to account_id but adds no syntax, default, or constraint beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names two concrete actions (fetch campaigns for an account, store today's snapshot in the database), which is far more specific than the title 'Sync Campaigns'. The persistence clause implicitly separates it from the read-only sibling get_campaigns, though the sibling is never named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit statement of when to use this tool rather than get_campaigns, nor any prerequisites (e.g. that a provider must be configured, or that this is a write operation to be avoided in read-only contexts). The idempotency note is behavioral information, not usage routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools