Skip to main content
Glama
Sprout Social MCP Server

Sprout Social MCP Server

by kodowjam

get_post_analytics

Retrieve per-post performance metrics for selected social profiles over a date range, including impressions, engagements, clicks, shares, likes, and comments across all pages.

Instructions

Get per-post performance metrics over a date range.

Returns individual post data (text, link, author) with lifetime metrics. Automatically fetches all pages (50 posts/page) and returns combined results.

Args: profile_ids: List of profile IDs to get post analytics for. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. metrics: List of lifetime-prefixed metric names. Defaults to: lifetime.impressions, lifetime.engagements, lifetime.post_link_clicks, lifetime.post_shares_count, lifetime.likes, lifetime.comments_count. Not all metrics are available on all networks (e.g. YouTube may lack impressions).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "profile_ids": "<profile_ids>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_post_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricsNo
end_dateYes
start_dateYes
profile_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two important behaviors: automatic pagination ('fetches all pages (50 posts/page) and returns combined results') and network-dependent metric availability (YouTube may lack impressions). It omits permission/auth requirements and rate-limit behavior, which are the remaining gaps.

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?

Front-loaded with purpose and return shape, then a compact Args block per parameter. The metric default list is long but earns its place as the only documentation of accepted values; little waste overall.

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?

With no output schema and no annotations, the description supplies both the result shape (post text, link, author plus lifetime metrics) and the aggregation behavior, which is what an agent needs to call it confidently. Only auth expectations and date-bound semantics are absent.

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 0%, so the description must compensate, and it does: it defines all four parameters, gives the YYYY-MM-DD date format, and spells out the metrics defaults with the exact lifetime-prefixed names plus the cross-network availability caveat. It does not say whether the date bounds are inclusive or how many profile IDs may be passed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Get per-post performance metrics over a date range', plus what per-post data is returned (text, link, author). This distinguishes it by scope from the sibling get_profile_analytics, though it never names the alternative explicitly.

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?

Usage context is implied by the per-post scope and the lifetime-metric wording, but there is no explicit when-to-use or when-not-to-use guidance and no routing to get_profile_analytics or get_post for other needs. An agent can infer the fit but must do the work.

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