Skip to main content
Glama

analyze_campaign

Read-only

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

NameRequiredDescriptionDefault
end_dateNoEnd date YYYY-MM-DD. Defaults to today.
platformNoAd platform the campaign belongs to. Omit to search every connected platform.
start_dateNoStart date YYYY-MM-DD. Defaults to 30 days ago.
campaign_idYesCampaign ID or exact campaign name, as shown by list_campaigns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known; the description adds genuinely new behavior: recommendations are advice only and are never applied, and the agent should respond to mutation requests by stating the limitation and offering an analysis. This clarifies output semantics and conversational policy beyond the structured fields, though part of the read-only boilerplate merely restates the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and inputs are front-loaded in the first two sentences, which is the right ordering. The trailing read-only/refusal boilerplate runs three sentences and partly duplicates the annotations, costing a point on economy while remaining readable.

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?

With no output schema, the description must convey what comes back, and it does by enumerating the analysis sections the agent will receive. Combined with the schema's date and platform filters and the annotation safety profile, an agent has enough to invoke it correctly; only the response format and granularity (e.g. metric detail) remain unstated.

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?

Schema description coverage is 100%, so campaign_id (ID or exact name from list_campaigns) and the date/platform filters are already documented. The description only restates the campaign_id convention and says nothing about start_date/end_date defaults or the platform enum, so it adds little beyond the schema and the baseline of 3 applies.

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 uses a specific verb ('Analyses') plus a scoped resource ('one of the user's campaigns') and enumerates the output dimensions: key metrics, funnel bottlenecks, top creatives, spend efficiency, AI observations. It also names the sibling that supplies the identifier ('from list_campaigns'), so an agent can distinguish it from list_campaigns or analyze_competitor without opening a schema.

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

Usage Guidelines4/5

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

It gives clear usage context: run it once you have a campaign ID or exact name from list_campaigns, and if the user asks for a mutation, decline and offer an analysis instead. What it lacks is any explicit routing against the other analysis siblings (e.g. analyze_competitor, compare_competitors), so the agent gets positive guidance but no exclusion rules.

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