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

google-chat-mcp-server

by tg-tool

get_unread

Retrieves unread Google Chat messages per space without marking them as read, helping you see what you have not opened yet; optionally filter by space.

Instructions

利用者がチャットの画面でまだ開いていない(未読の)メッセージを、スペースごとにまとめて返す。 読むだけで既読にはしない。利用者自身の発言は数えない。

  • space を指定するとそのスペースだけ。省略すると未読のあるスペースをすべて(最近動いた順)。

  • 注意: 未読は利用者が画面で開いた時点で消える(スマホで開いた分も)。記録の続きの起点には使わず、 記録は get_messages の next_since で続きから読む。未読は「まだ見ていない分の把握」に使う。

  • 人の最後の発言が 90日より前のスペースは調べない(ボットだけが投稿するスペースは space で指定する)。既読の記録が無いスペースは直近 90日分を未読とみなす (どちらも notes に書く)。

  • truncated が true なら limit で打ち切っている。

Args: space: スペースの名前・URL・ID。省略時は全スペース。 limit: 返すメッセージの合計の最大件数(既定 200)。 include_bots: 既定 true(ボット・アプリの発言も含める)。false にすると除く。

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

Input Schema

NameRequiredDescriptionDefault
limitNo
spaceNo
include_botsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that nothing is marked as read, that unread state evaporates once the user opens the screen (including on mobile), the 90-day lookback and no-read-record fallback, and that truncation is signalled via 'truncated'. It stops short of covering auth/permission requirements or failure modes, so it is not exhaustive.

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?

Purpose is front-loaded, then bullets for scope, caveats, and args — every line carries information, including the non-obvious 90-day rule. It is dense and slightly long, but no sentence is filler.

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 tool with no annotations and no output schema, the definition covers side effects, filtering rules, truncation signalling, and a pointer to the notes field in results. Only the exact response shape and any permission or rate-limit constraints are left unstated.

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%, yet all three parameters are explained with meaning and defaults: 'space' accepts name/URL/ID and defaults to all spaces, 'limit' is the total message count across spaces (default 200), and 'include_bots' defaults true and excludes bots/apps when false. This adds real semantics the bare schema does not convey.

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 line states a specific verb and resource — returning messages the user has not yet opened in the chat UI, grouped per space — and immediately adds two distinguishing scope facts (read-only, own messages excluded). This is clearly separable from get_messages, which is named later as the continuation-reading alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to use it (grasping what hasn't been seen yet) and when not to (not as a continuation cursor — use get_messages with next_since instead), naming the alternative. It also gives a concrete edge-case rule: bot-only spaces must be passed via 'space' or they are skipped by the 90-day human-activity filter.

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