Skip to main content
Glama

search_threads

Search your AI coding-agent conversation history across multiple tools. Retrieve past decisions and solutions using keyword or hybrid semantic search.

Instructions

Search the user's indexed AI coding-agent conversation threads across every tool they use (Claude Code, Codex, Cursor, Gemini, Qwen, Goose, OpenCode, Continue, Cline, Roo Code, Kilo Code, and in-app chats). Keyword full-text by default; set hybrid=true to also use on-device semantic similarity. Returns matching threads with snippets and a threadId to fetch. Use this to recall past decisions, prior solutions, or earlier discussion before redoing work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results to return (default 20).
queryYesThe search query.
hybridNoFuse keyword + on-device semantic search (higher recall; loads the embedding model).
sourcesNoOptional source filter: any of claude_code, codex, cursor, gemini, qwen, goose, opencode, continue, cline, roo, kilo, in_app. Empty = all sources.
include_subagentsNoInclude Claude Code subagent transcripts (hidden by default).
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the search scope, default vs hybrid behavior, and mentions that hybrid loads the embedding model. It doesn't cover rate limits or authentication, but for a read-only search tool, it provides sufficient behavioral context.

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 a single concise paragraph of four sentences, front-loaded with the main purpose. Every sentence adds value—scope, default/option, output, and usage intent. No fluff or repetition.

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?

Given 5 parameters, no output schema, and 15 siblings, the description covers the tool's purpose, filtering options (sources, hybrid), and intended use. It could mention the return structure more explicitly, but the essentials are present.

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 100%, so baseline is 3. The description adds value by explaining hybrid's purpose (on-device semantic similarity, higher recall) and that it loads the embedding model, which aids parameter understanding beyond schema descriptions.

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 clearly states the tool searches AI coding-agent conversation threads across many specific tools, with keyword full-text by default and optional semantic search. It distinguishes from siblings like recent_threads and get_thread by focusing on search and recall of past decisions.

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 description provides clear usage context: 'Use this to recall past decisions, prior solutions, or earlier discussion before redoing work.' It doesn't explicitly exclude alternatives, but the context and sibling names imply when other tools are appropriate.

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/BetaBots-LLC/callimachus'

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