Skip to main content
Glama
google-chat-mcp-server

google-chat-mcp-server

by tg-tool

get_messages

Read messages from a Google Chat space without marking them as read. Use since/until to continue from a saved point or fetch older history, and thread to read a single conversation.

Instructions

1つのスペースのメッセージを読む。読み取り専用で、既読にもしない。

since を渡すかどうかで、返り値と続きの読み方が変わる。

  • since あり(記録の続き): since より後のメッセージを、古い順に最大 limit 件返す。 has_more が true なら、まだ新しい分がある → 返り値の next_since をそのまま since に渡して続きを読む。

  • since なし(最新を見る): 最新の limit 件を、古い順に並べて返す。 has_older が true なら、それより古い分がある → 返り値の older_until をそのまま until に渡して読む (next_since を since に渡しても古い分は読めない)。

  • 記録をとるときは、最後の呼び出しの next_since を記録に残し、次回はそれをそのまま since に渡す。 next_since は小数秒まで正確な値なので、加工せずに渡せば重複も取りこぼしも無く続きから読める。

  • 同じ時刻のメッセージは途中で分けないため、limit を少し超えて返ることがある。

  • 各メッセージ: id・time(日本時間)・sender(名前)・sender_type(HUMAN / BOT)・text・thread。 該当するときだけ is_reply(返信)・edited(編集済み)・attachments(Drive のファイルは drive_file_id)。

Args: space: スペースの名前(一部でよい)・URL・ID(spaces/…)のどれか。DM は相手の名前で指定できる。 since: この時刻より後だけ(例 "2026-11-01"、"2026-11-01T09:00"、または前回の next_since)。 until: この時刻より前だけ(古い分を読むときは older_until を渡す)。 limit: 最大件数(既定 100、上限 500)。 thread: このスレッドだけを読む(メッセージの thread の値)。 include_bots: 既定 true(ボット・アプリの発言も含める)。false にすると除く。記録では既定のままにする。

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": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
sinceNo
spaceYes
untilNo
threadNo
include_botsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations and no output schema, the description carries the full burden and does so: it declares read-only and non-marking-as-read behavior, documents the full return field list (id, time in JST, sender, sender_type, text, thread, is_reply, edited, attachments/drive_file_id), and explains that same-timestamp messages may exceed limit. This is well beyond what structured fields supply.

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?

The front-loaded purpose plus bulleted pagination branches make it scannable, and the Args block matches argument order. It is somewhat long, with the next_since/older_until instruction effectively restated in both the bullets and the '記録をとるときは' line.

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 6-parameter read tool with no annotations and no output schema, coverage of parameters, return fields, and pagination state is strong. Gaps remain around error/permission behavior and how the thread filter interacts with since/until pagination, which an agent might need to call it correctly.

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

Parameters5/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 for all six parameters, and it does: space accepts name/partial/URL/ID and DM-by-person-name, since accepts multiple date formats plus a prior next_since, limit states default 100 and an upper bound of 500 that the schema does not express, and include_bots notes default true with a caveat about keeping the default for logging. This adds meaning well past the bare property names.

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 opening sentence names a specific verb and resource ('1つのスペースのメッセージを読む') and constrains scope to a single space, with an added trait that separates it from get_unread ('既読にもしない'). It does not explicitly state when search_messages would be the better choice, so sibling differentiation 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The since/no-since split is spelled out with the exact follow-up call for each branch (next_since→since, older_until→until) and an explicit negative ('next_since を since に渡しても古い分は読めない'). What's missing is higher-level routing guidance versus keyword search or the unread tool.

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