Skip to main content
Glama
hashcott

Meta Ads MCP Server

by hashcott

Get Meta Account Pages

meta_ads_get_account_pages
Read-onlyIdempotent

Retrieve Facebook Pages accessible by the user's access token to obtain candidate page IDs for creating ad creatives.

Instructions

List Facebook Pages reachable from the access token's user. These are the candidate page_id values for create_ad_creative.

Args:

  • act_id (string, optional): Reserved for parity with the Python reference; Meta returns pages bound to the user/token, not the ad account, so this is currently unused.

Returns: { data: [{ id, name, username, category, fan_count, link, verification_status, picture }] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
act_idNo
Behavior4/5

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

Annotations already indicate readOnly, destructive=false, idempotent, and openWorldHint. The description adds important behavioral detail: the tool returns pages bound to the user/token, not the ad account, explaining why act_id is unused. This goes beyond annotations.

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?

The description is well-structured with a brief purpose statement, parameter details, and return format. All sentences add value, though it could be slightly more concise.

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 simple read-only list tool, the description covers purpose, the one parameter's role, and the return format. With no output schema, this is reasonably complete. Slightly more context about alternative tools would enhance it.

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?

The input schema has 0% description coverage, but the description thoroughly explains the act_id parameter: it is reserved for parity with the Python reference and currently unused because Meta returns pages by user/token. This adds significant meaning 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 the tool lists Facebook pages reachable from the access token's user, and explicitly frames these as candidate page_id values for create_ad_creative. This verb+resource+usage combination distinguishes its purpose well.

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 provides clear context: it is used to get pages for ad creative creation. However, it does not explicitly state when not to use it or compare it to sibling tools like meta_ads_search_pages_by_name, which slightly limits guidance.

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