Skip to main content
Glama

Get Facebook Page Insights

meta_get_page_insights
Read-only

Retrieve Facebook Page analytics for chosen metrics such as impressions, engagement, reactions, and video views over a defined time period.

Instructions

Gets analytics/insights for a Facebook Page.

Requires: meta_list_pages called first.

Args:

  • page_id (string): Facebook Page ID

  • metrics (string[]): Metrics to retrieve. Full options: Impressions: page_impressions, page_impressions_unique, page_impressions_organic, page_impressions_organic_unique, page_impressions_paid, page_impressions_paid_unique, page_impressions_viral, page_impressions_viral_unique, page_impressions_nonviral, page_impressions_nonviral_unique Post Impressions: page_posts_impressions, page_posts_impressions_unique, page_posts_impressions_organic, page_posts_impressions_organic_unique, page_posts_impressions_paid, page_posts_impressions_paid_unique, page_posts_impressions_viral, page_posts_impressions_viral_unique Engagement: page_engaged_users, page_post_engagements, page_total_actions, page_negative_feedback Reactions: page_actions_post_reactions_total, page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total, page_actions_post_reactions_haha_total, page_actions_post_reactions_sorry_total, page_actions_post_reactions_anger_total Fans: page_fans, page_fan_adds, page_fan_adds_unique, page_fan_adds_by_paid_non_paid_unique, page_fan_removes, page_fan_removes_unique, page_daily_follows, page_daily_follows_unique, page_daily_unfollows_unique Views: page_views_total, page_tab_views_login_top, page_tab_views_login_top_unique, page_tab_views_logout_top Video: page_video_views, page_video_views_unique, page_video_views_paid, page_video_views_organic, page_video_views_autoplayed, page_video_views_click_to_play, page_video_complete_views_30s, page_video_complete_views_30s_unique, page_video_complete_views_30s_paid, page_video_complete_views_30s_organic, page_video_repeat_views, page_video_view_time, page_video_views_10s, page_video_views_10s_unique, page_video_views_10s_paid, page_video_views_10s_organic Content: page_media_view, page_lifetime_engaged_followers_unique

  • period (string): Aggregation period: 'day', 'week', 'days_28', 'month'

  • since (string, optional): Start date YYYY-MM-DD

  • until (string, optional): End date YYYY-MM-DD

Returns: Time-series data for each metric.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sinceNoStart date YYYY-MM-DD
untilNoEnd date YYYY-MM-DD
periodNoAggregation periodday
metricsNoMetric names — see description for full list of 70+ available metrics
page_idYes
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?

The annotations already mark this as read-only and non-destructive, and the description does not contradict them. It adds behavioral context beyond the annotations by stating that meta_list_pages must be called first and that the return value is 'time-series data for each metric.' This gives the agent a clearer picture of dependencies and response shape than the annotations alone would 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 opening sentence and prerequisite are front-loaded, and the Args section is logically organized by parameter. The long metric list is justified because the schema explicitly defers to the description for the complete list; it is a reference section rather than unnecessary repetition. Some minor redundancy exists with parameter names repeating the schema, but the added metric detail earns the length.

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 six-parameter tool with no output schema, the description covers the dependency, metric vocabulary, period values, date formats, and return shape at a functional level. It does not detail the exact structure of the time-series response, but no output schema exists and the schema handles response_format. Overall, an agent has enough context to call this tool correctly for page-level analytics.

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?

The schema covers response_format, period enums, defaults, and date formats, while the description adds substantial value by enumerating the full set of 70+ valid metric names and grouping them by category. It also clarifies that page_id is 'Facebook Page ID' and gives date formats for since/until. The only parameter not mentioned in the description text is response_format, but the schema adequately describes it.

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 that this tool 'Gets analytics/insights for a Facebook Page,' naming a specific verb, resource, and scope. This distinguishes it from sibling insights tools aimed at Instagram, posts, ads, campaigns, or ad accounts. The extensive metric list further clarifies exactly what kind of page-level analytics are returned.

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 gives a useful prerequisite: 'Requires: meta_list_pages called first.' However, it does not explicitly say when to prefer this tool over alternative insight tools, such as meta_get_post_insights or meta_get_instagram_account_insights. The intended usage is implied by the page-level resource and metric list, but exclusions and alternative routing are left to the agent to infer.

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