Skip to main content
Glama

chat.spaces.completeImport

Finalizes a Google Chat space import and makes the space visible to users. Complete the import process once data migration is done so members can access the space.

Instructions

Completes the import process for the specified space and makes it visible to users. Requires user authentication and domain-wide delegation with the authorization scope: - https://www.googleapis.com/auth/chat.import For more information, see Authorize Google Chat apps to import data [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 CompleteImportSpaceRequest object; pass it via params or whole via body_file Siblings over the same resource: create, delete, findDirectMessage, findGroupChats, get, list, patch, search, setup.

Input Schema

NameRequiredDescriptionDefault
nameYes[URL path segment] Required. Resource name of the import mode space. Format: `spaces/{space}`
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 CompleteImportSpaceRequest object.
request_bodyNoRequest body of type CompleteImportSpaceRequest: pass it via `params` (merged into the built body) or whole via `body_file`.

Output Schema

NameRequiredDescriptionDefault
spaceNo

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 CompleteImportSpaceRequest object."
    • addedInput schema / properties / request_body
      Added value: +{
      +  "description": "Request body of type CompleteImportSpaceRequest: pass it via `params` (merged into the built body) or whole via `body_file`.",
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Required. Resource name of the import mode space. Format: `spaces/{space}`"New value: +"[URL path segment] Required. Resource name of the import mode space. Format: `spaces/{space}`"
    • addedInput schema / properties / name / pattern
      Added value: +"^spaces/[^/]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "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"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the load well: it discloses that this is a POST that triggers a change, that it is refused under --readonly safety profiles, and the exact auth/DWD/scope requirements. It does not mention that completion is effectively irreversible (import mode contents become live and cannot be un-imported), which is the most important behavioral caveat for this operation.

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?

The purpose is front-loaded in the first clause, followed by requirements, HTTP/side-effect notes, and return behavior. It is dense but each block is functional; the trailing sibling enumeration and inline link markup add bulk without much decision value.

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?

Output schema exists, so return values need no explanation, and the description covers auth, side effects, body mechanics and sibling disambiguation for a complex 6-parameter, nested-body call. The main gap is the irreversibility of completing an import and any preconditions on space state.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents name, params, body_file, request_body, query and dry_run. The description only restates that the body is a CompleteImportSpaceRequest passed via `params` or `body_file`, adding little beyond the schema's own wording.

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?

Names a specific verb and resource ('Completes the import process for the specified space') and adds the observable outcome ('makes it visible to users'). The sibling list makes clear this is the terminal step of import, not a general space mutation like patch or delete.

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

Usage Guidelines4/5

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

Gives clear context: the space must be an import-mode space, and it requires user authentication plus domain-wide delegation with the chat.import scope. It does not state explicit exclusions (e.g. what happens if the space was never set up for import), so it falls short of a full when/when-not statement.

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