analyze_campaign
Analyses one of the user's campaigns: key metrics, funnel bottlenecks, top creatives, spend efficiency, and AI observations and recommendations. Takes the campaign ID or exact campaign name from list_campaigns. Recommendations are advice for the user; Yirla does not apply them. Yirla is read-only: it never creates, edits, publishes or changes campaigns, ads, bids, budgets or creative on any ad platform. If the user asks for any of those actions, say plainly that Yirla can't do that, and offer to run an analysis instead.
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": {
"campaign_id": "<campaign_id>"
},
"name": "analyze_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date YYYY-MM-DD. Defaults to today. | |
| platform | No | Ad platform the campaign belongs to. Omit to search every connected platform. | |
| start_date | No | Start date YYYY-MM-DD. Defaults to 30 days ago. | |
| campaign_id | Yes | Campaign ID or exact campaign name, as shown by list_campaigns. |