Skip to main content
Glama

Search messages

search_messages
Read-onlyIdempotent

Searches this user's Widely, SMS, and WhatsApp threads by keyword and date. Returns message text with sender, thread, and source (sms, whatsapp, email, app, or mcp). Support and assistant threads are excluded. Pass source to keep one of those.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLook back this many days (default 30).
limitNoMax rows to return.
queryNoKeyword to match in message text.
sourceNo
conversation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / source
      Added value: +{
      +  "enum": [
      +    "sms",
      +    "whatsapp",
      +    "email",
      +    "app",
      +    "mcp"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, so safety is covered. The description adds non-obvious behavior the annotations do not: default exclusion of support/assistant threads and the set of enumerable sources, plus what fields the result rows carry.

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?

Four short sentences, front-loaded with the search scope and result shape, followed by the exclusion caveat and the escape hatch. No repetition of annotation data and no filler.

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?

With no output schema, the description usefully enumerates returned fields (text, sender, thread, source), and it clarifies the filtering semantics for source. The one real hole is conversation_id, which no agent could interpret from either the schema or the description.

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 coverage is 60%: days, limit, and query are documented in the schema, and the description adds meaning for source by explaining it filters to one thread type. However, conversation_id has no description in either place, and the description never mentions days' 30-day default or the limit cap, so the moderation baseline of 3 applies.

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 a specific verb (searches) and precise resource scope (this user's Widely, SMS, and WhatsApp message threads) with the matching criteria (keyword and date). It also names the return shape and the sources, which clearly separates it from siblings like search_calls, search_contacts, and get_thread.

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?

Gives concrete usage context: support and assistant threads are excluded by default, and 'Pass source to keep one of those' tells the agent exactly when and how to reach them. It stops short of naming an alternative sibling tool for thread-level or call-level lookups, so it lacks explicit routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.