Skip to main content
Glama

Get Facebook Post Insights

meta_get_post_insights
Read-onlyIdempotent

Get lifetime performance metrics for a Facebook Page post—impressions, engagement, reactions, clicks, and video views—by providing the post ID and selecting the metrics to analyze.

Instructions

Gets performance metrics for a specific Facebook Page post.

Requires: meta_list_pages called first.

Args:

  • post_id (string): Post ID (e.g., "page_id_post_id")

  • page_id (string): Page ID (for authentication)

  • metrics (string[]): Metrics to retrieve. Options: Performance: post_impressions, post_impressions_unique, post_impressions_paid, post_impressions_paid_unique, post_impressions_fan, post_impressions_fan_unique, post_impressions_organic, post_impressions_organic_unique, post_impressions_viral, post_impressions_viral_unique Engagement: post_clicks, post_clicks_by_type, post_engaged_users, post_negative_feedback, post_negative_feedback_by_type, post_engaged_fan Reactions: post_reactions_by_type_total, post_reactions_like_total, post_reactions_love_total, post_reactions_wow_total, post_reactions_haha_total, post_reactions_sorry_total, post_reactions_anger_total Media: post_media_view, post_total_media_view_unique Video: post_video_avg_time_watched, post_video_complete_views_organic, post_video_complete_views_paid, post_video_views_organic, post_video_views_paid, post_video_view_time Activity: post_activity_by_action_type, post_activity_by_action_type_unique

All post metrics use 'lifetime' period (cumulative from post creation).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricsNoMetric names — see description for full list
page_idYesPage ID (for auth)
post_idYesPost ID
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. The description adds valuable behavioral context beyond that: 'All post metrics use ''lifetime'' period (cumulative from post creation)' and the required auth flow via page_id. It also enumerates allowed metrics. This exceeds what annotations alone provide.

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 long due to the exhaustive metric list, which is necessary and well-organized by category. It is front-loaded with purpose and prerequisite, and uses clear 'Args:' formatting with bold category labels. Some redundancy exists (e.g., repeating 'post_' prefix), but the structure is effective for an agent scanning options.

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?

The description covers the key operational details: required prior call, parameter format, metric options, and metric period. It does not mention error handling, rate limits, or output format, but the read-only annotations and the schema's response_format parameter mitigate completeness gaps. For a tool with no output schema, this is reasonably complete.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds substantial meaning: it explains the format of post_id (e.g., 'page_id_post_id'), breaks down metrics into categories with full option lists, and clarifies that metrics use lifetime period. The schema's metrics description merely refers back to the description, so this is essential. response_format is not addressed in the description, but it's minimally documented in 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's function: 'Gets performance metrics for a specific Facebook Page post.' This is a specific verb-resource pair that distinguishes it from page-level insights (meta_get_page_insights) or post retrieval (meta_get_post). The detailed metric list reinforces specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a required prerequisite: 'Requires: meta_list_pages called first.' This is useful routing guidance. However, it does not explicitly contrast with sibling tools like meta_get_page_insights or meta_get_post, nor state when to avoid this tool. It gives one clear usage condition but lacks full alternatives.

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/open-work-org/open-mcp-servers'

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