Sync Campaigns
sync_campaignsFetch 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
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Account identifier. Use "mock-us" or "mock-uk" until a real provider is configured. | mock-us |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| updated | Yes | ||
| inserted | Yes | ||
| account_id | Yes | ||
| snapshot_date | Yes |