Skip to main content
Glama
Sprout Social MCP Server

Sprout Social MCP Server

by kodowjam

get_topic_metrics

Retrieve aggregate metrics for a Sprout Listening Topic over a date range, with optional breakdowns by sentiment, network, day, or location, returned in a single response.

Instructions

Get aggregate metrics for a Sprout Listening Topic over a date range, optionally broken down by dimensions. Returns everything in one response.

Examples: Volume by day: metrics=["messages_count"], dimensions=["created_time.by(day)"] Sentiment split: metrics=["messages_count"], dimensions=["sentiment"] Volume by network: metrics=["messages_count", "engagements"], dimensions=["network"]

Args: topic_id: Topic ID from list_listening_topics. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format (inclusive). metrics: Metrics to aggregate: messages_count, engagements, likes, replies, shares_count, quote_count, reshare_count, repost_count, impressions, authors_count, from.followers_count, positive_sentiments_count, neutral_sentiments_count, negative_sentiments_count. dimensions: Optional breakdowns: created_time.by(day), created_time.by(month), visual_media.media_type, distribution_type, network, sentiment, language, explicit_label, location.city, location.province, location.country. networks: Networks to include. Defaults to all listening networks. X/TWITTER is not available via the API and is dropped with a note. text_match: Text search; supports OR and quoted phrases. sentiment: Filter by sentiment: positive, negative, neutral, unclassified. public_only: If true, exclude the account's own connected profiles. Default false. filters: Extra raw Sprout filter strings appended as-is. timezone: IANA timezone for date filters and day/month buckets. Defaults to SPROUT_DEFAULT_TIMEZONE (America/Los_Angeles).

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": {
      "topic_id": "<topic_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>",
      "metrics": "<metrics>"
    },
    "name": "get_topic_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
filtersNo
metricsYes
end_dateYes
networksNo
timezoneNo
topic_idYes
sentimentNo
dimensionsNo
start_dateYes
text_matchNo
public_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does a solid job: it discloses that X/TWITTER is silently dropped with a note, that public_only excludes the account's own connected profiles, that end_date is inclusive, that filters are appended raw, and that timezone defaults to an env var. Auth requirements and rate limits are not covered.

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 summary sentence followed by compact examples and an Args list; the length is justified by 11 parameters. Minor redundancy between the opening 'optionally broken down by dimensions' and the later dimension examples, but nothing wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a metrics tool with no output schema and no annotations, the description never explains the response shape — whether results come back as rows keyed by dimension, per-metric columns, or how an empty breakdown is represented. Everything about invocation is covered, but the return contract is left implicit.

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%, yet the Args block defines all 11 parameters, enumerates the permitted metric names and dimension expressions, lists the sentiment values, and explains defaults for networks, public_only, and timezone. This is exactly the compensation the schema lacks.

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, resource, and scope: aggregate metrics for a Sprout Listening Topic over a date range with optional dimension breakdowns. It implicitly contrasts with the message-level sibling via 'aggregate' and 'Returns everything in one response', but never names get_topic_messages as the raw-record alternative.

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?

Gives concrete usage examples (volume by day, sentiment split, volume by network) that show how to compose metrics and dimensions, and names list_listening_topics as the source of topic_id. No explicit when-not-to-use guidance against the sibling message/analytics tools.

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