mureo_state_upsert_campaign
Synchronize campaign metadata changes by atomically upserting a CampaignSnapshot with optional performance metrics into STATE.json.
Instructions
Atomically upsert a CampaignSnapshot into STATE.json (root campaigns array). Use this to keep STATE.json in sync with campaign metadata changes the agent observes via vendor MCPs or BYOD imports. Pass the optional metrics object to persist the campaign's performance numbers (spend, clicks, conversions, cpa, ctr, …) so the reporting dashboard can render KPIs from STATE.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional path to the file. Defaults to STRATEGY.md / STATE.json in the MCP server's current working directory. Paths outside cwd are refused. | |
| campaign | Yes | A CampaignSnapshot for STATE.json plus its platform context. Required: campaign_id, campaign_name, status, platform, account_id. The platform + account_id populate the per-platform ``platforms`` section the dashboard reads (omit them and the client renders as inactive). Optional fields mirror the snapshot schema in docs/strategy-context.md, including ``metrics`` (spend / impressions / clicks / conversions / cpa / ctr / result_indicator / period / fetched_at) for dashboard KPIs. |