Skip to main content
Glama
Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

List Spaces

list_spaces
Read-onlyIdempotent

List Google Chat spaces, including rooms and direct messages, or retrieve members of a specific space to manage access and participation.

Instructions

Lists Google Chat spaces (rooms and direct messages) accessible to the user, or the members of one space.

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": {
      "user_google_email": "<user_google_email>"
    },
    "name": "list_spaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
space_idNoSpace (spaces/X or a bare ID X) whose members to list instead of spaces, up to page_size: people, apps and groups with role and invite state.
page_sizeNo
space_typeNoall
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.2
    • addedInput schema / properties / space_id
      Added value: +{
      +  "default": null,
      +  "description": "Space (spaces/X or a bare ID X) whose members to list instead\nof spaces, up to page_size: people, apps and groups with role and\ninvite state.",
      +  "type": "string"
      +}
  2. Changed8 schema fields changedv1.0.1
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / page_size / title
      Removed value: -"Page Size"
    • removedInput schema / properties / service
      Removed value: -{
      -  "title": "service",
      -  "type": "string"
      -}
    • removedInput schema / properties / space_type / title
      Removed value: -"Space Type"
    • removedInput schema / properties / user_google_email / title
      Removed value: -"User Google Email"
    • changedInput schema / required
      Previous value: -[
      -  "service",
      -  "user_google_email"
      -]New value: +[
      +  "user_google_email"
      +]
    • removedInput schema / title
      Removed value: -"list_spacesArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object",
      +  "x-fastmcp-wrap-result": true
      +}
  3. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety and idempotency are covered. The description usefully adds the bimodal scope and the user-access boundary, but says nothing about how the two modes interact with paging or what happens when space_id targets a space the user cannot access.

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?

A single front-loaded sentence with no filler; the primary behavior comes first and the member-listing variant follows. Slightly awkward line break/parenthetical, but nothing wasteful.

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

Completeness3/5

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

An output schema exists, so return-shape explanation is unnecessary, and annotations cover the safety profile. However, for a 4-parameter tool with 25% schema coverage, the description leaves the paging limit and space_type filter entirely undefined, which is a meaningful gap for an agent constructing a call.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% — space_id is documented in the schema, but page_size, space_type, and user_google_email have no descriptions at all. The description does not compensate: it never explains the default page size, what values space_type accepts (the unclear "all" default), or that user_google_email identifies whose spaces are returned.

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 description names a specific verb and resource ("Lists Google Chat spaces") and clarifies scope as "rooms and direct messages accessible to the user," plus a second mode for "members of one space." That is clear and self-contained, but it does not contrast with any sibling (e.g., other list_* tools span unrelated products), so differentiation is left to the name.

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

Usage Guidelines3/5

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

The dual behavior is only implied: an agent must infer that supplying space_id switches the tool from listing spaces to listing that space's members. There is no explicit when-to-use statement, no prerequisites, and no mention of alternatives, so guidance is implied rather than stated.

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

Deploy Server

Other Tools