Skip to main content
Glama

matrix_search_messages

Search full-text across joined Matrix rooms, or target one room via room_id. Encrypted rooms aren't searchable server-side.

Instructions

Server-side full-text search across joined rooms (or one room if room_id is set). Encrypted rooms are not searchable server-side.

Input Schema

NameRequiredDescriptionDefault
limitNo
tenantNo
room_idNo
search_termYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses one real behavioral constraint — encrypted rooms are not searchable server-side — but says nothing about auth scope, pagination/limit behavior, or result ordering.

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 tight sentences with zero filler; the primary scope statement comes first and the caveat second. Every clause earns its place.

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 need not be described, and the search scope plus encryption limitation are covered. The undefined tenant parameter is the main remaining gap for a non-mutating search tool.

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% across four parameters, so the description must compensate and largely does not. It explains the effect of room_id and implies search_term, but limit and tenant are left entirely undocumented.

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?

States a specific verb and resource ('full-text search across joined rooms') plus a scoping modifier for room_id. It implicitly separates itself from sibling reads like matrix_get_recent_messages, though it never names an alternative explicitly.

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?

The parenthetical explains the room_id branch (one room vs all joined rooms), which implies when to narrow the query. There is no explicit when-to-use/when-not guidance and no named alternative to fall back on for listing recent messages.

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