Skip to main content
Glama

Adbloop Meta Ads

get_campaign_structure

Read-only

Full tree of one campaign: its ad sets and every ad inside each. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
campaign_idYes
meta_account_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so 'Read-only.' merely repeats structured data and earns no credit. The useful addition is disclosing the return shape (ad sets plus every nested ad), which is behavioral information not in any schema. Still missing: whether large trees are paginated or truncated, and any account-scoping behavior.

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 short sentences, front-loaded with the scope, with zero filler. The 'Read-only.' fragment adds no information beyond the annotations and could have been spent on parameter or scoping detail instead.

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

Completeness3/5

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

There is no output schema, and the description does cover the return structure in one line, which is the main thing an agent needs. However, with 0% schema coverage on two parameters and no pagination, size, or error context for a potentially large nested response, the definition is thinner than the tool's complexity warrants.

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% for two parameters, so the description carries the full burden and says nothing about either one. An agent gets no explanation of whether meta_account_id is needed when the campaign_id is already supplied, nor of any format constraints on campaign_id. This is a clear compensation gap.

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?

Names a specific resource and shape: 'Full tree of one campaign: its ad sets and every ad inside each.' That clearly separates it from flat listers like list_campaigns/list_ads/list_adsets, even though no sibling is named explicitly. The verb is implied ('get') rather than stated, but the scope is unambiguous.

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 explicit when-to-use or when-not-to-use guidance, and no alternative is named (e.g., use list_adsets when you only need ad sets without ads). The hierarchy phrase hints at the use case, but an agent must infer selection criteria entirely.

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