Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

chat_search_messages

Read-only

Search up to 1,000 recent messages in a Google Chat space for specified text to locate relevant conversations and details.

Instructions

Find messages in a space that contain some text (searches the most recent messages, up to 1000).

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": {
      "space": "<space>",
      "text": "<text>"
    },
    "name": "chat_search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
spaceYes
sinceHoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds one genuinely useful behavioral fact — the search is limited to roughly the 1000 most recent messages — but says nothing about ordering, match semantics, or result shape.

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 parenthetical carries the one non-obvious limit. It is terse to the point of omitting useful detail, but nothing in it is wasted.

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?

For a three-parameter read-only search with no output schema, the description covers the core purpose and the recency cap. Remaining gaps — sinceHours semantics and what a match looks like — are minor but real.

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 description coverage is 0%, so the description must compensate and it only partly does: it clarifies that 'text' is a substring-style content match and 'space' scopes the search. The third parameter, sinceHours, is never mentioned in either place.

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: 'Find messages in a space that contain some text'. The text-match scope implicitly distinguishes it from sibling chat_list_messages, which lists rather than searches, though the description never names that contrast.

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 only implied by 'contain some text' — the agent can infer this is a content search rather than a listing. There is no explicit when-to-use, when-not-to-use, or named alternative such as chat_list_messages.

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

Deploy Server

Other Tools