Skip to main content
Glama
get-mcp-ads

Meta Ads by Get MCP Ads

meta get campaign structure

meta_get_campaign_structure
Read-onlyIdempotent

Retrieve the hierarchical campaign structure for a Meta Ads account, showing campaigns, ad sets, and ads. Optionally filter to a specific campaign to understand its organization.

Instructions

Get hierarchical campaign structure: campaigns -> ad sets -> ads. Useful for understanding account organization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaignIdNoGet structure for a specific campaign only
adAccountIdYesAd account ID (e.g., act_123456789)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesOriginal tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds value by disclosing the structural containment behavior of the response (campaigns contain ad sets contain ads) beyond what the annotations express.

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

Conciseness5/5

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

Two short sentences with no filler. The core purpose and hierarchy are front-loaded, and the usage context is provided in the second sentence without redundancy.

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?

For a read-only, two-parameter tool with a full output schema, the description is sufficient. All required parameters are documented, annotations cover side effects, and the hierarchy explanation sets clear expectations. No critical behavioral information appears missing.

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% and both parameters (adAccountId, campaignId) are well documented in the schema. The description adds no additional parameter-level semantics beyond the schema, so the baseline score 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 identifies a specific verb ('Get'), a specific resource ('hierarchical campaign structure'), and defines the hierarchy as 'campaigns -> ad sets -> ads'. This clearly separates it from flat sibling tools like meta_get_campaigns, meta_get_adsets, and meta_get_ads.

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?

'Useful for understanding account organization' provides clear context for when to use this tool. However, it does not explicitly name alternative tools or state when not to use it, so it stops short of full exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.