Skip to main content
Glama
threads-socialcrawl-mcp

threads-socialcrawl-mcp

threads_search_topic

Read-only

Search Threads posts by their assigned topic tag, not hashtags. Filter by date or engagement, control search depth and credit budget, and export matching posts to CSV.

Instructions

Search Threads posts by TOPIC TAG: the category Threads itself assigns to a post (post.ext.topic_tag; not a hashtag in the text). Each topic name is the search term and results are filtered to posts carrying that tag. Use threads_discover_tags to find real topic names. Returns slim posts, a summary (pages, matches, credits, why it stopped), top authors and next_cursor.

Args:
    topic_tag: One or more Threads topic tags, comma separated, e.g. "Business, Entrepreneurship, Marketing" (case-insensitive). Every topic is searched and merged without duplicates.
    topic_match: "exact" (default) = the post's tag must equal one of the topics; "contains" = it may merely contain it ("business" also matches "Small Business").

    mode: How hard to look. "quick" (default) = one page, at most 30 credits; "deep" = scroll until about 30 matches (up to 20 pages, at most 200 credits); "bulk" = scroll as far as the budget allows (up to 50 pages, at most 500 credits), for exports. State the mode you chose and why.
    target_matches: Stop once this many matching posts are collected (0 = the mode's default).
    min_engagement: Drop posts whose likes + comments are below this (views are not used).
    start_date: Optional ISO date (YYYY-MM-DD) lower bound.
    end_date: Optional ISO date (YYYY-MM-DD) upper bound.
    cursor: next_cursor from a previous call, to continue where it stopped.
    max_credits: Replace the mode's credit budget (0 = the mode's budget). The search stops before a page that would exceed it.
    save_csv: File name (no folders), e.g. "moto_posts". Saves ALL matches to <data dir>/exports/<name>.csv (the reply says the exact path) and authors to <name>_authors.csv; the reply then carries only a 10-post preview.
    dry_run: True = do not search, only return the credit estimate and the account balance for these exact arguments (free).
    confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

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_tag": "<topic_tag>"
    },
    "name": "threads_search_topic"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoquick
cursorNo
dry_runNo
end_dateNo
save_csvNo
confirmedNo
topic_tagYes
start_dateNo
max_creditsNo
topic_matchNoexact
min_engagementNo
target_matchesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, non-destructive, so the safety profile is covered; the description adds the credit economy (30/200/500 budgets per mode), the hard stop before an over-budget page, that dry_run is free, that confirmed=False runs nothing, and that save_csv switches the reply to a 10-post preview with files under <data dir>/exports/. Slight gap: it does not mention that save_csv writes to disk, which is the one wrinkle against a pure read-only framing.

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 the distinguishing fact, then an Args block mapping one-to-one onto parameters. Dense but nearly every clause carries information; the only fat is mild repetition in the confirmed/dry_run explanation, which is defensible given the cost implications.

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 12-parameter, credit-consuming, paginated search with an output schema, everything an agent needs is present: term format, match mode, effort budget, stop conditions, pagination, export behavior, and the confirmation gate. Return shape is summarized in one clause rather than over-explained, which is correct given the output schema exists.

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 coverage is 0% across 12 parameters, so the description carries the full burden, and it does: per-parameter meaning, defaults, semantics of 0 ('mode's default/budget'), exact vs contains matching with a concrete example, engagement defined as likes+comments excluding views, CSV naming rules, and cursor continuation. This is the description doing exactly the work the bare schema cannot.

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 the verb and resource precisely ('Search Threads posts by TOPIC TAG') and immediately distinguishes the resource from the nearest confusion point: 'post.ext.topic_tag; not a hashtag in the text'. That single clause separates it from threads_search_hashtag without opening either schema.

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

Usage Guidelines5/5

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

Routes the agent to threads_discover_tags to obtain valid topic names, explains when each mode applies ('quick' default, 'deep' for ~30 matches, 'bulk' for exports), and spells out the confirmation protocol (dry_run then confirmed only after the user agrees). Explicit when-to-use and safety-gate guidance throughout.

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