Skip to main content
Glama

Search Messages

search_messages

Search a project's message subjects and bodies using full-text queries to quickly locate relevant coordination history. Returns matching messages with configurable limits.

Instructions

Full-text search over subject and body for a project.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return.
queryYesFTS5 query string.
formatNo
agent_nameNo
project_keyYesProject identifier.
registration_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / limit / description
      Added value: +"Max results to return."
    • addedInput schema / properties / project_key / description
      Added value: +"Project identifier."
    • addedInput schema / properties / query / description
      Added value: +"FTS5 query string."
  2. First observedv0.3.4

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that only subject and body are searched, which is real behavioral information beyond the schema, but it says nothing about permission requirements, result ordering, behavior on malformed FTS5 syntax, or what a result entry looks like.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; the core purpose lands immediately. It is terse to the point of under-specification, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with no annotations and no output schema, one sentence is not enough. Three undocumented parameters plus the missing behavioral and result context leave material gaps an agent would need in order to invoke it confidently.

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

Parameters2/5

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

Schema description coverage is only 50%: limit, query, and project_key are documented in the schema, while format, agent_name, and registration_token are undocumented everywhere. The description adds no meaning to any parameter — it does not clarify the FTS5 query syntax, result semantics, or what the undocumented parameters control.

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 names a specific verb ('Full-text search') and a specific resource and scope ('subject and body for a project'), so an agent knows exactly what the tool does. It does not differentiate itself from retrieval-oriented siblings like fetch_inbox or fetch_topic, leaving the agent to infer that this is the keyword-search path rather than the browse path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use, when-not-to-use, or named alternative. The phrase 'full-text search' faintly implies keyword lookup rather than listing, but no exclusions or routing conditions are stated.

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