Skip to main content
Glama

Meta get best campaigns

meta_get_best_campaigns
Read-only

Top Meta campaigns by spend. 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_best_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraNo
limitNo
date_toNo
user_idNo
client_idNo
date_fromNo
user_emailNo
ad_account_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/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 covered. The description does add real context beyond them – the result is ranked by spend and client_id falls back to the active brand – but it does not say how many campaigns 'top' means, how ties or limits are handled, or whether date range affects the ranking.

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?

Two sentences, front-loaded with the tool's purpose, and no filler. The only softness is the phrase 'any other field the app accepts,' which is vague but still informative about the escape hatch.

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 an 8-parameter tool with zero schema descriptions, this is thin. An output schema exists so return values need not be described, but the description omits date-range and limit defaults, ranking direction and size, and does not explain why ad_account_id is required when client_id nominally selects the brand.

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 8 parameters, so the description must carry the burden. It explains only two: client_id (brand selection, defaults to active) and extra (pass-through for app fields). The required ad_account_id, its relationship to client_id, plus limit, date_from, date_to, user_id and user_email are left completely 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 lead sentence names a specific resource (Meta campaigns) and a ranking criterion (top by spend), which gives an agent a concrete reason to pick this over a plain campaign listing. It does not, however, differentiate itself from close siblings such as meta_get_campaign_stats or meta_ads_get_campaigns, so the agent must infer the difference from names alone.

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 when-to-use or when-not-to-use guidance. The description never names an alternative or states the condition under which 'top campaigns by spend' is preferable to a full campaign list or a stats call, leaving usage entirely implied.

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.