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

google-chat-mcp-server

by tg-tool

list_spaces

Lists your Google Chat spaces, group chats and DMs in order of recent activity. Filter by type, activity date or name, or return only unread spaces to find conversations needing a reply.

Instructions

参加している Google Chat のスペース(スペース・グループチャット・DM)を、最近動いた順に一覧する。読み取り専用。

DM とグループチャットは相手の名前で表示する(例「DM: 山田 太郎」「グループ: 佐藤、鈴木」)。 last_active は人の最後の発言の時刻で、ボット・アプリの投稿では更新されない。 返り値の space(spaces/…)か名前を、ほかのツールの space 引数に渡す。

Args: space_type: "SPACE"・"GROUP_CHAT"・"DIRECT_MESSAGE" のどれかで絞る。 active_since: この時刻以降に動いたものだけ(例 "2026-11-01"、"2026-11-01T09:00"。時差なしは日本時間)。 name_contains: 名前の一部で絞る(全角半角・大文字小文字を区別しない)。 unread_only: True なら、利用者がチャットの画面でまだ開いていない発言があるスペースだけを、 last_read(既読の時刻)付きで返す。スペースごとに問い合わせるので少し時間がかかる。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_spaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
space_typeNo
unread_onlyNo
active_sinceNo
name_containsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares 読み取り専用, defines last_active as the last human message (bot/app posts do not update it), specifies DM/group display naming, and warns that unread_only is slow because it queries each space individually. It omits permissions/auth requirements and any cap on how many spaces are returned.

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?

Purpose is front-loaded in the first line, followed by behavioral notes and then a compact parameter list. Nothing is redundant — the Args block is necessary precisely because the schema has no descriptions — and each line adds information the agent cannot get elsewhere.

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 read-only listing tool with no annotations and no output schema, it covers purpose, filtering, timezone handling, result naming, and the shape of key return fields (space, last_active, last_read). It does not mention pagination, ordering ties, or scale limits, which is the remaining gap.

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 coverage is 0%, so every parameter must be explained here, and all four are: space_type enumerates the three accepted values, active_since gives example formats and states the JST default, name_contains specifies case and full-width/half-width insensitivity, and unread_only explains both the filter and the extra last_read field plus its latency cost.

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

Purpose5/5

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

The first sentence names a specific verb and resource — listing Google Chat spaces, explicitly covering スペース・グループチャット・DM — and states the ordering (最近動いた順). It is immediately distinguishable from siblings like get_messages, get_unread and search_messages, which operate on messages rather than space enumeration.

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?

It gives clear context for when to use it by telling the agent to pass the returned space value into other tools' space argument, which frames this as the discovery step. It lacks an explicit when-not or a named alternative, and does not say anything about result limits or paging, so it stops short of the 5 bar.

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