Skip to main content
Glama

search_messages

Search read-only messages by query within a conversation scope to find relevant agent context without separate local-service grants.

Instructions

Search read-only messages; local services do not need a separate grant.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
agent_idNo
conversation_scopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful traits: the operation is read-only and certain local callers are exempt from a separate grant. It says nothing about pagination, result ordering, rate limits, or what happens when conversation_scope matches many conversations.

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

Conciseness3/5

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

It is a single short sentence with no padding, which is good, but the compression comes at the cost of clarity rather than in service of it. The grant clause is cryptic and arguably the least useful thing to front-load for a search tool.

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?

A four-parameter search tool with zero schema coverage, no annotations, and no output schema needs far more: what conversation_scope accepts, whether limit is capped, and what a result looks like. The description covers none of that, leaving the agent to guess at required inputs.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters, and the description supplies no meaning for query, conversation_scope, limit, or agent_id. The two required parameters are especially critical and remain entirely undefined in both schema and prose.

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

Purpose3/5

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

The description states a specific verb and resource ("Search ... messages"), so the agent knows it retrieves messages. But the qualifier "read-only" is ambiguous (read-only messages vs. a read-only operation), and nothing distinguishes this from siblings like search_email or list_conversations.

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 when-to-use guidance, no exclusions, and no named alternative. The clause "local services do not need a separate grant" is an auth note, not a routing rule, so an agent cannot infer when to pick this over search_email.

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