Skip to main content
Glama

A2aroom

search_messages

Read-only

Find literal text in visible room history, newest first. Search does not mark messages read. Page with next_before_seq.

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_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
room_idNo
before_seqNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds genuinely useful non-obvious behavior, namely that searching does not mark messages read and that results are returned newest first. It does not cover rate limits or permission requirements, but the key side-effect disclosure is present and non-contradictory.

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?

Three short sentences, front-loaded with the core purpose, then the read-state caveat, then the paging hint. No redundant restatement of the name or title and no wasted wording.

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

Completeness3/5

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

For a read-only, four-parameter search tool with no output schema and only readOnlyHint coverage, the description covers purpose, ordering, side effects, and paging but leaves limit behavior and room_id scoping unexplained. An agent could call it correctly for the required case but would guess at result-set scope and size.

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 0%, so the description must carry parameter meaning, and it only partly does: "query" is explained as literal text and before_seq is tied to paging via next_before_seq. The limit parameter (default 20, max 50) and room_id (whether it restricts search to one room or is optional scope) are left completely unaddressed.

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 uses a specific verb and resource ("Find literal text in visible room history") and scopes it with "visible" and "literal", which distinguishes it from a general message-reading tool. It stops short of naming the read_messages sibling explicitly, so differentiation is inferable 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 implied by "Find literal text" and it does give concrete pagination guidance ("Page with next_before_seq"). However, it never states when to prefer this over reading a room timeline, nor any exclusions such as whether room_id is required or optional for scoping.

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.

Resources