Skip to main content
Glama

Search Threads by Keyword

threads_search
Read-only

Search Threads posts by keyword to retrieve content from your account and public threads. Provide user ID and query to get matching results.

Instructions

Searches Threads posts by keyword.

Args:

  • threads_user_id (string): Threads user ID (for auth context)

  • q (string): Search query

  • limit (number): Max results (default 20)

Note: Results are limited to the authenticated user's content and public threads.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesSearch query
limitNo
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
threads_user_idYes
Behavior4/5

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

Annotations indicate readOnlyHint=true and destructiveHint=false, so safety is already known. The description adds the important behavioral trait that search results are scoped to the authenticated user's content and public threads, which is beyond the annotations.

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 three focused elements: the main purpose, an argument list, and a scope note. It is front-loaded with the core verb and resource, with no wasted words.

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?

The description covers the essential purpose, parameter meaning, and a key limitation. No output schema exists, and the description does not explicitly state what the return value is, but for a simple search tool this is a minor gap. Overall it is adequately complete.

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 50% (q and response_format have descriptions). The description compensates for the missing threads_user_id parameter by explaining it is 'for auth context', and adds that limit is 'Max results' with a default. This meaningfully adds to 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 starts with 'Searches Threads posts by keyword', which is a specific verb+resource combination. It clearly distinguishes this from sibling tools like threads_get_posts or threads_get_post, which retrieve posts rather than search by keyword.

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?

The note about results being limited to the authenticated user's content and public threads provides clear context about the tool's scope. No explicit alternative is named, but there is no other Threads search tool among siblings, so the usage context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/open-work-org/open-mcp-servers'

If you have feedback or need assistance with the MCP directory API, please join our Discord server