Skip to main content
Glama

read_messages

Read-only

Fetch messages from a Google Chat space oldest first, optionally limiting results and filtering to messages after a specified timestamp.

Instructions

Read messages in a space, oldest first in the output. Returns the most recent limit messages, optionally only those after since (RFC 3339, e.g. 2026-10-30T00:00:00+05:30).

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>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
sinceNo
spaceYesspaces/XXXX
pageTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, so the safety profile is covered. The description adds genuinely useful behavioral detail — output is oldest-first while selection is the most recent `limit` messages — but says nothing about pagination behavior despite a pageToken parameter, nor about defaults or permissions.

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?

Two tight sentences, front-loaded with the resource and followed by the selection/filter semantics; no filler. The "oldest first" versus "most recent limit" pairing is stated compactly but sits in mild tension that costs a little clarity.

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?

No output schema exists, so the description is the only source of return-shape information, and it covers ordering and count but not what a message record contains. A read-only 4-parameter tool with one undocumented parameter (pageToken) and no default for `limit` is adequately but not fully specified.

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

Parameters4/5

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

With only 25% schema description coverage, the description carries real weight: it defines `limit` as the most recent N messages and gives `since` a concrete RFC 3339 format with an example, which the schema lacks entirely. Only `pageToken` is left with no meaning anywhere, and the interaction between paging and the most-recent-N selection is unstated.

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 ("Read messages in a space") plus the ordering of results and the recency window, so an agent knows exactly what it gets. It does not contrast itself with siblings like get_message or get_thread, so it stops short of a 5.

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 description implies usage (fetch recent messages in a space, optionally from a starting point) and explains the `since` filter condition, but gives no when-to-use guidance versus alternatives such as get_message, get_thread, or a search tool, and no exclusions.

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