Skip to main content
Glama

List spaces

list_spaces
Read-onlyIdempotent

Discover Google Chat spaces you belong to, filter by type, and paginate results to get space IDs for subsequent actions.

Instructions

Lists the spaces the authenticated user is a member of: name (spaces/), displayName (empty for direct messages), spaceType (SPACE = named room, GROUP_CHAT, DIRECT_MESSAGE), spaceThreadingState and timestamps. This is the discovery entry point — space names from here feed every other tool. space_type narrows the listing server-side; there is no text search here — match displayName client-side, or use search_spaces (Workspace admin only). Paginate with page_token from nextPageToken; results are unordered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_sizeNoMax spaces per page (1..1000; default 100).
page_tokenNonextPageToken from the previous page.
space_typeNoOnly spaces of this type: space (named room), group_chat, or direct_message.
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive behavior. The description adds valuable context beyond annotations: results are limited to spaces the authenticated user belongs to, results are unordered, pagination uses nextPageToken, and space_type filters server-side. This is strong complementary behavioral detail.

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?

Three dense but efficient sentences. The core purpose and returned fields are front-loaded, followed by usage guidance and pagination details. Every sentence earns its place with no filler or repetition of schema content.

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?

For a read-only list tool with rich annotations and a fully documented schema, the description covers required output fields, pagination, ordering, server-side filtering, and the tool's role in the broader workflow. Nothing essential for an agent to select and invoke it correctly is missing.

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?

Input schema covers all three parameters at 100%, so the baseline is 3. The description adds meaningful extra semantics by explaining that space_type narrows results server-side and that page_token comes from nextPageToken, which helps an agent use the parameters correctly beyond the schema text.

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?

States a specific verb ('Lists'), resource ('spaces the authenticated user is a member of'), and the key returned fields. Clearly differentiates itself from search_spaces by noting this is the discovery entry point and that no text search is available here.

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 positions the tool as the discovery entry point whose results feed other tools. Provides concrete routing guidance: use space_type for server-side narrowing, match displayName client-side, and use search_spaces for admin-only text search. Also explains pagination behavior.

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/A1-x-Tech/mcp-google-chat'

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