Skip to main content
Glama

list_spaces

List Google Chat spaces (rooms and direct messages) the authenticated user has joined. Use this to discover space IDs needed for sending messages or reading messages.

Instructions

List Google Chat spaces (rooms and direct messages) the authenticated user is a member of.

Use this to discover the space_id (in spaces/<id> format) needed for get_messages, send_message, and related Chat tools. The user only sees spaces they have joined — this will not surface public spaces in the workspace they haven't joined.

Requires OAuth scope: https://www.googleapis.com/auth/chat.spaces.readonly (read-only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
page_sizeNoMaximum number of spaces to return in one call. Defaults to 100; Google's hard cap is 1000. No pagination token is exposed by this tool — request a larger page_size if a user is in more than 100 spaces.
space_typeNoFilter by space type. One of: - `"all"` (default): both rooms and direct messages - `"room"`: multi-member named spaces (`SPACE`) - `"dm"`: 1:1 or group direct messages (`DIRECT_MESSAGE`) Any other value is treated as `"all"`.all

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Discloses read-only nature via OAuth scope, notes no pagination token is exposed, and explains scope of results (only joined spaces). No annotations exist, so description carries full burden and meets it well.

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?

Five sentences, each adding unique value. Front-loaded with purpose. No redundancy or unnecessary verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, usage, limitations, auth, and parameter details. Given the presence of an output schema (context signal), describing return values is unnecessary. Complete for a listing tool.

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?

Adds meaningful context beyond the schema: explains page_size default and Google hard cap, details space_type filter options, and notes pagination limitation. Schema coverage is 100% but description enhances understanding.

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?

Clearly states 'List Google Chat spaces' with specific verb and resource. Distinguishes from sibling tools by explaining its role in discovering space_id for get_messages, send_message, etc.

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 tells when to use ('discover the space_id needed for get_messages, send_message') and what it cannot do ('will not surface public spaces the user hasn't joined').

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server