Skip to main content
Glama

Google Ads & Meta Ads

Meta: Compare Ad Accounts

meta_compare_accounts
Read-onlyIdempotent

Compare spend and results across several of your Meta ad accounts over the same date range — spend, impressions, clicks, reach, purchases and purchase value per account, each in its own currency plus a US dollar conversion so the accounts can be ranked. Defaults to every ad account this connection reaches. Use this instead of calling meta_get_insights once per account; it reports which accounts could not be read rather than failing. Reads only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "meta_compare_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoStart date YYYY-MM-DD (overrides date_preset with until).
untilNoEnd date YYYY-MM-DD. Required with since.
date_presetNoDate range preset. Default last_7d.
ad_account_idsNoAd accounts to compare (act_ ids or names). Defaults to every ad account this connection reaches, up to 25.

Output Schema

NameRequiredDescriptionDefault
skippedYesAccounts that could not be read, and why.
accountsYesOne row per account read.
dateRangeYesRange every account was read over.
truncatedYesTrue when more accounts were reachable.
currencyMismatchYesTrue when the accounts do not all share one currency.
totalSpendUsdCentsNoSum in US cents, when every row converted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond them: per-account read failures are reported rather than failing the whole call, and each account's native currency is converted to USD so figures are comparable. It does not state any rate-limit, latency, or result-size characteristics for a multi-account fan-out, which is the remaining gap.

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?

Front-loaded with what is compared and how results are normalized, then the sibling routing, then the failure semantics – a sensible ordering. The metric enumeration is slightly dense and partially duplicates the output schema, but it supports the 'can be ranked' claim, so it mostly earns its place.

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

Completeness5/5

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

For a read-only, multi-account aggregation tool with an output schema and full parameter documentation, the description covers scope, default behavior, normalization, and partial-failure handling. An agent has everything needed to decide to call it and how to interpret a partial result.

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 all four parameters are already documented, and the description mostly restates them ('same date range', 'defaults to every ad account'). It adds the useful framing that the date range is shared across accounts, but contributes no syntax or format detail beyond the schema.

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?

Names a specific verb (compare), resource (Meta ad accounts), the metrics compared, and the shared date-range constraint. It also states the default scope (every ad account the connection reaches) and that results are currency-normalized to USD for ranking, so the agent knows exactly what it gets back.

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

Usage Guidelines5/5

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

Explicitly routes the agent away from a sibling: 'Use this instead of calling meta_get_insights once per account.' It also explains why – partial failure is reported rather than aborting – which is the deciding condition for choosing this tool.

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