Skip to main content
Glama
dhawalshah

meta-ads-mcp

get_page_posts

Retrieve published Facebook Page posts with configurable fields, date filters, and pagination for ad performance analysis and reporting.

Instructions

Get published posts from a Facebook Page. Requires pages_read_engagement permission. Args: page_id: The ID of the Facebook Page. fields: Fields to return. Available: id, message, story, created_time, full_picture, permalink_url, shares, reactions, comments, insights{name,values}, attachments. Defaults to [id, message, created_time, permalink_url, shares]. limit: Maximum number of posts to return. after: Cursor for forward pagination. before: Cursor for backward pagination. since: Filter posts after this date (UNIX timestamp or YYYY-MM-DD). until: Filter posts before this date (UNIX timestamp or YYYY-MM-DD). Returns: A dictionary containing the list of posts and pagination info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
sinceNo
untilNo
beforeNo
fieldsNo
page_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must disclose behavior. It does mention the required permission (pages_read_engagement) and pagination semantics (after, before, since, until), but does not cover rate limits, error handling, or what happens on invalid page_id. It also states the return shape as a dictionary, but not deeply. This is adequate but not comprehensive.

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: purpose and permission are front-loaded, followed by a clear Args list and a brief Returns note. It is a bit long but every sentence earns its place given the number of parameters. No fluff.

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 7-parameter read tool with an output schema (not shown but referenced), the description covers all inputs, the permission requirement, and a high-level return summary. It lacks details on error behavior or rate limits, but these are often secondary for a read operation. Overall, it gives an agent enough to call it correctly.

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 description coverage is 0%, so the description must fully explain each parameter. It does so thoroughly: page_id, fields with a detailed list and defaults, limit, pagination cursors, and date filters with format hints. This significantly adds meaning beyond the bare schema, which only has types and null defaults.

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 states a specific verb ('Get') and resource ('published posts from a Facebook Page'), clearly distinguishing it from siblings like get_page_insights and get_promotable_posts. It leaves no ambiguity about what the tool does.

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 guidance on when to use this tool versus alternatives. It does not mention exclusions or conditions that would route an agent to a different tool (e.g., get_promotable_posts for boosted content). The usage context is only implied by the tool's name and description.

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