Skip to main content
Glama

search_chats

Search full chat history by keyword or regex to locate matching conversations, returning newest results with titles, states, and snippets.

Instructions

Search inside every one of the owner's chats (full history) for words or a regex, case-insensitive. Returns the matching chats, newest first, with title, state and up to two snippets.

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": {
      "query": "<query>"
    },
    "name": "search_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses case-insensitive matching, regex support, full-history coverage, result ordering ('newest first'), and the cap of two snippets per chat. It omits cost/performance characteristics and whether 'limit' caps chats or something else, which keeps it from a 5.

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?

Two sentences with no filler; the search scope and matching semantics come first, then the return shape. Every clause adds usable information.

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?

An output schema exists, so return values needn't be described — and the description still summarizes them usefully. The remaining gap is the 'limit' parameter, which is left entirely undocumented for a tool whose results could be large.

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 0%, so the description must compensate. It fully explains 'query' (words or regex, case-insensitive) but says nothing about 'limit' beyond the schema default of 10 — no indication of the maximum, what it bounds, or pagination behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('search inside every one of the owner's chats') plus scope ('full history'), which clearly separates it from listing or reading a single chat. It stops short of naming a sibling such as list_chats or read_chat as the alternative, so differentiation is inferred rather than stated.

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?

Usage is only implied: an agent can infer this is the tool for keyword/regex lookup across history, but the description never says when to prefer it over list_chats or read_chat, nor any exclusions. No prerequisites or limits guidance are given.

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