Skip to main content
Glama
Sprout Social MCP Server

Sprout Social MCP Server

by kodowjam

get_topic_messages

Retrieve posts, comments, and articles from a Sprout Listening Topic by date range, with sentiment, engagement metrics, network and text filters, returning newest first.

Instructions

Get messages (posts, comments, articles) from a Sprout Listening Topic over a date range, newest first, with sentiment and engagement.

Automatically fetches pages of 100 until max_results is reached. Responses are compact: sentiment is a top-level field and media URLs are dropped unless you request the visual_media field.

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). networks: Networks to include, e.g. ["LINKEDIN", "REDDIT", "YOUTUBE", "INSTAGRAM", "TIKTOK", "WWW", "BLUESKY", "FACEBOOK", "TUMBLR"]. Defaults to all of these. X/TWITTER is not available via the API and is dropped with a note. text_match: Text search. All terms are required; use OR for any, and quotes for phrases, e.g. '"Fireworks AI" OR fireworks.ai'. sentiment: Filter by sentiment: positive, negative, neutral, unclassified. public_only: If true, exclude posts from the account's own connected profiles so only earned/public conversation is returned. Default false. fields: Message fields to return. Defaults to guid, created_time, network, text, perma_link, from.name, from.screen_name, content_category, language, sentiment. metrics: Per-message metrics. Defaults to engagements, likes, replies, shares_count, impressions, from.followers_count. sort: Sort order. Defaults to ["created_time:desc"]. max_results: Maximum messages to return. Default 100, maximum 500. filters: Extra raw Sprout filter strings appended as-is, e.g. ["likes.gte(10)"]. timezone: IANA timezone for date filters. 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>"
    },
    "name": "get_topic_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
fieldsNo
filtersNo
metricsNo
end_dateYes
networksNo
timezoneNo
topic_idYes
sentimentNo
start_dateYes
text_matchNo
max_resultsNo
public_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses automatic pagination in pages of 100 until max_results, a hard cap of 500 with a default of 100, compacted responses where media URLs are dropped unless visual_media is requested, and that X/TWITTER is unavailable and silently dropped with a note. These are exactly the non-obvious behaviors an agent must know to call it correctly.

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 a scannable per-argument block, with defaults and limits stated inline rather than buried. It is long, but for a 13-parameter tool nearly every line earns its place; only minor shaving (e.g. repeating the full network list) would tighten it.

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

Completeness5/5

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

For a 13-parameter read tool with no annotations and no output schema, the description covers what an agent needs: how filtering, sorting, pagination, and projection work, and what the response looks like structurally. Nothing essential to invoking it correctly is missing.

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 compensate entirely, and it documents all 13 parameters with formats, defaults, and examples: YYYY-MM-DD dates with an inclusive end_date, the enumerate networks list, Lucene-style text_match syntax with OR and quoted phrases, the four sentiment enum values, the exact default field and metric lists, and the raw filters escape hatch. This is meaning well beyond what the bare schema conveys.

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?

States a specific verb and resource ('Get messages ... from a Sprout Listening Topic') plus the content types included (posts, comments, articles), ordering (newest first), and the extra data returned (sentiment, engagement). It also names its prerequisite source ('Topic ID from list_listening_topics'), so an agent can place it in a workflow without opening another schema.

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 clear conditions for its differentiated parameters — use public_only to get only earned/public conversation, use list_listening_topics to obtain topic_id, and use fields/metrics to shrink or expand the payload. It does not explicitly compare itself against siblings like get_post or get_topic_metrics, so there is a small inference gap for an agent deciding between per-message retrieval paths.

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