Skip to main content
Glama
hashcott

Meta Ads MCP Server

by hashcott

Get Multiple Meta Ad Sets by IDs

meta_ads_get_adsets_by_ids
Read-onlyIdempotent

Batch lookup of Meta ad sets by their IDs. Retrieves specified fields such as status, budget, targeting, and optimization goal in one API call.

Instructions

Retrieve information for multiple Meta ad sets in a single API call (batch lookup).

Efficient when you need data for several ad sets at once.

Args:

  • adset_ids (string[]): List of ad set IDs to retrieve, e.g., ['23843211234567', '23843211234568']

  • fields (string[]): Fields per ad set. Common: id, name, account_id, campaign_id, status, effective_status, daily_budget, lifetime_budget, budget_remaining, bid_amount, bid_strategy, billing_event, optimization_goal, targeting, start_time, end_time, created_time, updated_time, pacing_type, destination_type

  • date_format (string): Date format: 'U' for Unix timestamp, 'Y-m-d H:i:s' for MySQL datetime

Returns: Object where keys are ad set IDs and values are the corresponding ad set details.

Examples:

  • Use when: "Get details for ad sets 23843211234567, 23843211234568, and 23843211234569"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adset_idsYesList of ad set IDs, e.g., ['23843211234567', '23843211234568']
fieldsNoList of specific fields to retrieve. If omitted, default fields are returned
date_formatNoFormat for date fields in response. 'U' = Unix timestamp (seconds), 'Y-m-d H:i:s' = MySQL datetime. Default: ISO 8601
Behavior4/5

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

Annotations already indicate readOnly, idempotent, nondestructive. The description adds that it returns an object keyed by ad set IDs, which is useful. No contradictions.

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?

Description is concise, front-loaded with primary purpose, and structured with Args and Returns sections. Every sentence provides value 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?

Given no output schema, the description explains the return format. It covers inputs and usage examples. It does not address error handling or edge cases, but for a simple read tool this is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameters with descriptions. The description adds concrete examples for adset_ids and fields list, plus explains date_format values. This adds significant clarity 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?

The description clearly states it retrieves multiple Meta ad sets in a single call (batch lookup). It uses specific verb and resource, and distinguishes from sibling tools like meta_ads_get_adset_by_id (single) and meta_ads_get_adsets_by_adaccount (account-filtered).

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?

The description says 'Efficient when you need data for several ad sets at once' and provides an example. It implicitly tells when to use it but does not explicitly exclude cases like needing a single ad set, though sibling tool names provide context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hashcott/meta-ads-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server