Skip to main content
Glama

Meta get account analytics

meta_get_account_analytics
Read-only

Meta analytics for an account, campaign, ad set or ad. 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": {
      "ad_account_id": "<ad_account_id>"
    },
    "name": "meta_get_account_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNo
extraNo
date_toNo
user_idNo
adset_idNo
client_idNo
date_fromNo
user_emailNo
campaign_idNo
ad_account_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is known. The description adds the useful defaulting behavior for client_id and the fact that extra fields are forwarded to the underlying app, plus confirmation that the entity scope is controlled by IDs. It does not describe pagination, date-range semantics, or any rate/limit behavior, so with annotations carrying the main burden a 3 is right.

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?

The text is short and front-loads the resource scope before the parameter notes, with no wasted sentences. However, for a 10-parameter tool it is undersized rather than concise — the brevity comes at the cost of missing semantics.

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?

An output schema exists, so return values need not be explained, but the input side is thin: 10 parameters with zero schema descriptions and only two of them covered in prose. The description never clarifies whether entity IDs are mutually exclusive or hierarchical, nor what date_from/date_to default to, which an agent needs to call this correctly.

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 and it largely does not. It explains only client_id (brand selector with an active-brand default) and extra (passthrough for arbitrary app fields); the meaning and interaction of ad_account_id, date_from/date_to, campaign_id, adset_id, ad_id, user_id, and user_email — including how the entity-level IDs interact — remain unexplained.

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 the resource (Meta analytics) and the four entity levels it supports — account, campaign, ad set, ad — so an agent knows what kind of data it returns and at what granularity. It does not distinguish itself from close siblings such as meta_get_account_insights, meta_get_detailed_analytics, or meta_get_account_overview, which keeps it below a 5.

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?

There is no statement of when to use this tool versus the many sibling analytics tools, nor any prerequisites or exclusions. The only guidance given is operational ('client_id ... defaults to the active one'), which is parameter behavior, not usage selection.

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.