Skip to main content
Glama

Meta get campaign stats

meta_get_campaign_stats
Read-only

Meta campaign stats over time. client_id picks the brand (defaults to the active one); extra passes any other field the app accepts.

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": "meta_get_campaign_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNo
levelNo
sinceNo
untilNo
user_idNo
client_idNo
user_emailNo
campaign_idYes
date_presetNo
time_incrementNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds almost no behavioral context beyond that: it does not explain what date windows, level, or time_increment do, what the time series granularity is, or what the output looks like despite having an output schema.

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

Conciseness3/5

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

It is short and front-loads the resource, which is good, but two of three clauses are vague ('over time', 'any other field the app accepts'). The brevity comes at the cost of substance rather than from efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter stats tool surrounded by many overlapping siblings, the description is far too sparse. An agent cannot determine how to set level, date_preset, or time_increment, nor when this tool is preferable to the breakdown or selected-campaign variants.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters, so the description must compensate, but it only explains client_id (defaults to active) and extra (passthrough). Critical parameters like campaign_id (required), level, date_preset, time_increment, and since/until are left entirely undefined.

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 a specific verb and resource ('Meta campaign stats over time'), making the read intent clear. It does not distinguish itself from siblings such as meta_get_campaign_breakdown_device or meta_get_selected_campaign_stats beyond the vague 'over time' phrasing.

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?

No when-to-use guidance is given relative to the many sibling stat tools (selected campaign stats, breakdowns, overall stats). The only contextual note is the client_id default, which is parameter behavior, not usage guidance.

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.