Skip to main content
Glama

list_spaces

Read-only

Retrieve Google Chat spaces, group chats, and direct messages you belong to, ordered by recent activity. Use the returned space names to read messages.

Instructions

List the Google Chat spaces, group chats and direct messages the user is in, most recently active first. Use the returned space name (spaces/XXXX) with read_messages.

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
typeNo
pageTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already declares the safe-read profile, so the description only needs to add context beyond that. It usefully discloses the result ordering and the shape of the returned identifier, but says nothing about pagination even though a pageToken parameter exists, nor about 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?

Two short sentences with no waste: the operation and ordering come first, the follow-up call second. Nothing needs trimming and nothing important is buried.

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?

For a simple read-only listing tool with no output schema, the description covers what is listed and the return identifier's use. It falls short on the pagination story and the optional type filter, which an agent needs to call it correctly on large workspaces.

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 0% for two parameters, so the description must carry the burden and largely does not. It never explains the 'type' enum filter (SPACE/GROUP_CHAT/DIRECT_MESSAGE) or how pageToken should be used to page through results, leaving both parameters undocumented anywhere.

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?

States a specific verb and resource ('List the Google Chat spaces, group chats and direct messages the user is in') plus a scope and ordering ('most recently active first'), so the agent knows exactly what comes back. It does not distinguish itself from the sibling search_spaces, which is the main thing left to inference.

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 second sentence gives forward guidance ('Use the returned space name (spaces/XXXX) with read_messages'), which tells the agent what to do next. It does not say when to prefer this over search_spaces or get_space, nor mention that it is the starting point when the user's space list is unknown.

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