Skip to main content
Glama

threads_search_posts

Search public Threads posts by keyword or topic tag, then filter results by media type, author, or date range to find relevant discussions.

Instructions

Search for public Threads posts by keyword or topic tag via the /keyword_search endpoint. Results can be filtered by media type and author.

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": {
      "q": "<q>"
    },
    "name": "threads_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch keyword or topic tag to query
limitNoNumber of results (default 25, max 100)
sinceNoStart date (Unix timestamp, must be >= 1688540400)
untilNoEnd date (Unix timestamp)
media_typeNoFilter results by media type
search_modeNoTreat q as a keyword or a topic tag (default: KEYWORD)
search_typeNoReturn most popular or most recent results (default: TOP)
author_usernameNoFilter results to an exact author username (no @)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv2.2.2
    • removedInput schema / properties / after
      Removed value: -{
      -  "description": "Pagination cursor",
      -  "type": "string"
      -}
    • changedInput schema / properties / author_username / description
      Previous value: -"Filter results by author username"New value: +"Filter results to an exact author username (no @)"
    • changedInput schema / properties / limit / description
      Previous value: -"Number of results"New value: +"Number of results (default 25, max 100)"
    • changedInput schema / properties / media_type / enum
      Previous value: -[
      -  "TEXT",
      -  "IMAGE",
      -  "VIDEO",
      -  "CAROUSEL"
      -]New value: +[
      +  "TEXT",
      +  "IMAGE",
      +  "VIDEO"
      +]
    • changedInput schema / properties / q / description
      Previous value: -"Search keyword or query"New value: +"Search keyword or topic tag to query"
    • addedInput schema / properties / search_mode
      Added value: +{
      +  "description": "Treat q as a keyword or a topic tag (default: KEYWORD)",
      +  "enum": [
      +    "KEYWORD",
      +    "TAG"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / search_type / description
      Previous value: -"Search by keyword or topic tag (default: keyword)"New value: +"Return most popular or most recent results (default: TOP)"
    • changedInput schema / properties / search_type / enum
      Previous value: -[
      -  "keyword",
      -  "tag"
      -]New value: +[
      +  "TOP",
      +  "RECENT"
      +]
    • changedInput schema / properties / since / description
      Previous value: -"Start date (Unix timestamp)"New value: +"Start date (Unix timestamp, must be >= 1688540400)"
  2. First observedv2.0.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries more burden. It discloses that only public posts are searched and mentions filterable result dimensions, but it does not cover authentication requirements, rate limits, pagination behavior, or the output shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two focused sentences with no wasted language. The main action and scope are front-loaded, followed by the filtering capability.

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?

The tool has eight parameters, full schema coverage, no annotations, and no output schema. The description covers the core purpose but is thin on operational context such as result structure, pagination, and permissions, which are relevant given the missing output schema and annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all parameters are already documented in the input schema. The description adds only a high-level mention of keyword/topic tag and media/author filtering, without adding syntax or constraints beyond the schema.

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 states a specific verb and resource: 'Search for public Threads posts.' It also clarifies the search basis (keyword or topic tag) and the endpoint, distinguishing it from retrieval tools like threads_get_posts or threads_get_user_threads.

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 implies usage for searching public posts and notes that results can be filtered by media type and author. However, it does not explicitly state when to use this tool instead of sibling tools such as threads_get_posts, threads_get_profile_posts, or ig_search_hashtag.

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