Skip to main content
Glama

chat.spaces.setup

Creates a Google Chat space and adds specified users as members; the calling user is added automatically. Use it to set up a new room with initial memberships.

Instructions

Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members. To specify the human members to add, add memberships with the appropriate membership.member.name. To add a human user, use users/{user}, where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id for the person from the People API, or the id fo [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON SetUpSpaceRequest object accepting memberships, requestId, space; pass it via params or whole via body_file Siblings over the same resource: completeImport, create, delete, findDirectMessage, findGroupChats, get, list, patch, search.

Input Schema

NameRequiredDescriptionDefault
queryNoExtra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe.
paramsNoParameter map merged into the request; typed parameters win.
dry_runNoReturn the request that would be sent, without sending it.
body_fileNoRead the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON SetUpSpaceRequest object.
request_bodyNoRequest body of type SetUpSpaceRequest: pass it via `params` (merged into the built body) or whole via `body_file`.

Output Schema

NameRequiredDescriptionDefault
nameNo
typeNo
customerNo
spaceUriNo
threadedNo
spaceTypeNo
createTimeNo
importModeNo
displayNameNo
spaceDetailsNo
accessSettingsNo
adminInstalledNo
lastActiveTimeNo
membershipCountNo
singleUserBotDmNo
spaceHistoryStateNo
permissionSettingsNo
externalUserAllowedNo
spaceThreadingStateNo
importModeExpireTimeNo
predefinedPermissionSettingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / body_file / description
      Previous value: -"Read the request body from this file ('-' for stdin) instead of building one from the parameters."New value: +"Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON SetUpSpaceRequest object."
    • addedInput schema / properties / request_body
      Added value: +{
      +  "description": "Request body of type SetUpSpaceRequest: pass it via `params` (merged into the built body) or whole via `body_file`.",
      +  "properties": {
      +    "memberships": {
      +      "items": {
      +        "properties": {
      +          "affiliation": {
      +            "enum": [
      +              "AFFILIATION_UNSPECIFIED",
      +              "INTERNAL",
      +              "EXTERNAL",
      +              "MANAGED_EXTERNAL"
      +            ],
      +            "type": "string"
      +          },
      +          "createTime": {
      +            "type": "string"
      +          },
      +          "deleteTime": {
      +            "type": "string"
      +          },
      +          "groupMember": {
      +            "properties": {
      +              "name": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "member": {
      +            "properties": {
      +              "avatarUrl": {
      +                "type": "string"
      +              },
      +              "displayName": {
      +                "type": "string"
      +              },
      +              "domainId": {
      +                "type": "string"
      +              },
      +              "email": {
      +                "type": "string"
      +              },
      +              "isAnonymous": {
      +                "type": "boolean"
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "type": {
      +                "enum": [
      +                  "TYPE_UNSPECIFIED",
      +                  "HUMAN",
      +                  "BOT"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "role": {
      +            "enum": [
      +              "MEMBERSHIP_ROLE_UNSPECIFIED",
      +              "ROLE_MEMBER",
      +              "ROLE_MANAGER",
      +              "ROLE_ASSISTANT_MANAGER"
      +            ],
      +            "type": "string"
      +          },
      +          "state": {
      +            "enum": [
      +              "MEMBERSHIP_STATE_UNSPECIFIED",
      +              "JOINED",
      +              "INVITED",
      +              "NOT_A_MEMBER"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "requestId": {
      +      "type": "string"
      +    },
      +    "space": {
      +      "properties": {
      +        "accessSettings": {
      +          "properties": {
      +            "accessPermissionSettings": {
      +              "properties": {
      +                "discoverSpaceSetting": {
      +                  "type": "object"
      +                },
      +                "joinSpaceSetting": {
      +                  "type": "object"
      +                },
      +                "viewSpaceMembershipSetting": {
      +                  "type": "object"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "accessState": {
      +              "enum": [
      +                "ACCESS_STATE_UNSPECIFIED",
      +                "PRIVATE",
      +                "DISCOVERABLE"
      +              ],
      +              "type": "string"
      +            },
      +            "audience": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "adminInstalled": {
      +          "type": "boolean"
      +        },
      +        "createTime": {
      +          "type": "string"
      +        },
      +        "customer": {
      +          "type": "string"
      +        },
      +        "displayName": {
      +          "type": "string"
      +        },
      +        "externalUserAllowed": {
      +          "type": "boolean"
      +        },
      +        "importMode": {
      +          "type": "boolean"
      +        },
      +        "importModeExpireTime": {
      +          "type": "string"
      +        },
      +        "lastActiveTime": {
      +          "type": "string"
      +        },
      +        "membershipCount": {
      +          "properties": {
      +            "joinedDirectHumanUserCount": {
      +              "type": "integer"
      +            },
      +            "joinedGroupCount": {
      +              "type": "integer"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "permissionSettings": {
      +          "properties": {
      +            "manageApps": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "manageMembersAndGroups": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "manageWebhooks": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "modifySpaceDetails": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "postMessages": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "replyMessages": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "toggleHistory": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "useAtMentionAll": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "viewSpaceMembership": {
      +              "properties": {
      +                "assistantManagersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "managersAllowed": {
      +                  "type": "boolean"
      +                },
      +                "membersAllowed": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "predefinedPermissionSettings": {
      +          "enum": [
      +            "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED",
      +            "COLLABORATION_SPACE",
      +            "ANNOUNCEMENT_SPACE"
      +          ],
      +          "type": "string"
      +        },
      +        "singleUserBotDm": {
      +          "type": "boolean"
      +        },
      +        "spaceDetails": {
      +          "properties": {
      +            "description": {
      +              "type": "string"
      +            },
      +            "guidelines": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "spaceHistoryState": {
      +          "enum": [
      +            "HISTORY_STATE_UNSPECIFIED",
      +            "HISTORY_OFF",
      +            "HISTORY_ON"
      +          ],
      +          "type": "string"
      +        },
      +        "spaceThreadingState": {
      +          "enum": [
      +            "SPACE_THREADING_STATE_UNSPECIFIED",
      +            "THREADED_MESSAGES",
      +            "GROUPED_MESSAGES",
      +            "UNTHREADED_MESSAGES"
      +          ],
      +          "type": "string"
      +        },
      +        "spaceType": {
      +          "enum": [
      +            "SPACE_TYPE_UNSPECIFIED",
      +            "SPACE",
      +            "GROUP_CHAT",
      +            "DIRECT_MESSAGE"
      +          ],
      +          "type": "string"
      +        },
      +        "spaceUri": {
      +          "type": "string"
      +        },
      +        "threaded": {
      +          "type": "boolean"
      +        },
      +        "type": {
      +          "enum": [
      +            "TYPE_UNSPECIFIED",
      +            "ROOM",
      +            "DM"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "accessSettings": {
      +      "properties": {
      +        "accessPermissionSettings": {
      +          "properties": {
      +            "discoverSpaceSetting": {
      +              "properties": {
      +                "principals": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "joinSpaceSetting": {
      +              "properties": {
      +                "principals": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "viewSpaceMembershipSetting": {
      +              "properties": {
      +                "principals": {
      +                  "items": {
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "accessState": {
      +          "enum": [
      +            "ACCESS_STATE_UNSPECIFIED",
      +            "PRIVATE",
      +            "DISCOVERABLE"
      +          ],
      +          "type": "string"
      +        },
      +        "audience": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "adminInstalled": {
      +      "type": "boolean"
      +    },
      +    "createTime": {
      +      "type": "string"
      +    },
      +    "customer": {
      +      "type": "string"
      +    },
      +    "displayName": {
      +      "type": "string"
      +    },
      +    "externalUserAllowed": {
      +      "type": "boolean"
      +    },
      +    "importMode": {
      +      "type": "boolean"
      +    },
      +    "importModeExpireTime": {
      +      "type": "string"
      +    },
      +    "lastActiveTime": {
      +      "type": "string"
      +    },
      +    "membershipCount": {
      +      "properties": {
      +        "joinedDirectHumanUserCount": {
      +          "type": "integer"
      +        },
      +        "joinedGroupCount": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "permissionSettings": {
      +      "properties": {
      +        "manageApps": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "manageMembersAndGroups": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "manageWebhooks": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "modifySpaceDetails": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "postMessages": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "replyMessages": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "toggleHistory": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "useAtMentionAll": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "viewSpaceMembership": {
      +          "properties": {
      +            "assistantManagersAllowed": {
      +              "type": "boolean"
      +            },
      +            "managersAllowed": {
      +              "type": "boolean"
      +            },
      +            "membersAllowed": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "predefinedPermissionSettings": {
      +      "enum": [
      +        "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED",
      +        "COLLABORATION_SPACE",
      +        "ANNOUNCEMENT_SPACE"
      +      ],
      +      "type": "string"
      +    },
      +    "singleUserBotDm": {
      +      "type": "boolean"
      +    },
      +    "spaceDetails": {
      +      "properties": {
      +        "description": {
      +          "type": "string"
      +        },
      +        "guidelines": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "spaceHistoryState": {
      +      "enum": [
      +        "HISTORY_STATE_UNSPECIFIED",
      +        "HISTORY_OFF",
      +        "HISTORY_ON"
      +      ],
      +      "type": "string"
      +    },
      +    "spaceThreadingState": {
      +      "enum": [
      +        "SPACE_THREADING_STATE_UNSPECIFIED",
      +        "THREADED_MESSAGES",
      +        "GROUPED_MESSAGES",
      +        "UNTHREADED_MESSAGES"
      +      ],
      +      "type": "string"
      +    },
      +    "spaceType": {
      +      "enum": [
      +        "SPACE_TYPE_UNSPECIFIED",
      +        "SPACE",
      +        "GROUP_CHAT",
      +        "DIRECT_MESSAGE"
      +      ],
      +      "type": "string"
      +    },
      +    "spaceUri": {
      +      "type": "string"
      +    },
      +    "threaded": {
      +      "type": "boolean"
      +    },
      +    "type": {
      +      "enum": [
      +        "TYPE_UNSPECIFIED",
      +        "ROOM",
      +        "DM"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does disclose that this is an HTTP POST that creates or triggers a change and is refused under --readonly safety profiles. It also notes automatic caller membership and explains response/body handling, though it omits auth scopes and some side-effect details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the text is cluttered by a truncated documentation sentence and a generic appended block covering HTTP method, return format, body handling, and sibling names. Much of the appended material repeats schema information and does not help selection.

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 complex tool with full schema coverage and an output schema, the description covers the key call shape: a space plus memberships, with requestId, passed via params or body_file. It lacks explicit sibling-selection guidance, but the essential operational context is present.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful semantics for memberships, including the users/{user} format and email/People API id usage, and warns not to include the calling user. It also clarifies that the SetUpSpaceRequest body can be passed via params or body_file.

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 first sentence names the exact action and resource: creates a space and adds specified users. That scope implicitly separates it from a plain space creation tool, but the description never explicitly contrasts it with chat.spaces.create, so it falls short of a 5.

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?

It gives useful setup-specific guidance: the caller is auto-added and should not be included as a membership, and human members must use the users/{user} form. However, it gives no explicit when-to-use or when-not-to-use guidance relative to siblings such as create, completeImport, or findGroupChats.

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