Skip to main content
Glama

drive.teamdrives.update

Update a Team Drive's metadata and settings—such as name, color, restrictions, and background—by sending a JSON TeamDrive object. Deprecated; use the drives update endpoint instead.

Instructions

Deprecated: Use drives.update instead [HTTP PATCH] — updates the resource; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON TeamDrive object accepting backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, id, kind, name and 3 more fields; pass it via params or whole via body_file Siblings over the same resource: create, delete, get, list.

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 TeamDrive object.
teamDriveIdYes[URL path segment] The ID of the Team Drive
request_bodyNoRequest body of type TeamDrive: pass it via `params` (merged into the built body) or whole via `body_file`.
useDomainAdminAccessNo[query parameter] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Tfalse

Output Schema

NameRequiredDescriptionDefault
idNo
kindNo
nameNo
themeIdNo
colorRgbNo
orgUnitIdNo
createdTimeNo
capabilitiesNo
restrictionsNo
backgroundImageFileNo
backgroundImageLinkNo

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 TeamDrive object."
    • addedInput schema / properties / request_body
      Added value: +{
      +  "description": "Request body of type TeamDrive: pass it via `params` (merged into the built body) or whole via `body_file`.",
      +  "properties": {
      +    "backgroundImageFile": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "width": {
      +          "type": "number"
      +        },
      +        "xCoordinate": {
      +          "type": "number"
      +        },
      +        "yCoordinate": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "backgroundImageLink": {
      +      "type": "string"
      +    },
      +    "capabilities": {
      +      "properties": {
      +        "canAddChildren": {
      +          "type": "boolean"
      +        },
      +        "canChangeCopyRequiresWriterPermissionRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeDomainUsersOnlyRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeDownloadRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeSharingFoldersRequiresOrganizerPermissionRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeTeamDriveBackground": {
      +          "type": "boolean"
      +        },
      +        "canChangeTeamMembersOnlyRestriction": {
      +          "type": "boolean"
      +        },
      +        "canComment": {
      +          "type": "boolean"
      +        },
      +        "canCopy": {
      +          "type": "boolean"
      +        },
      +        "canDeleteChildren": {
      +          "type": "boolean"
      +        },
      +        "canDeleteTeamDrive": {
      +          "type": "boolean"
      +        },
      +        "canDownload": {
      +          "type": "boolean"
      +        },
      +        "canEdit": {
      +          "type": "boolean"
      +        },
      +        "canListChildren": {
      +          "type": "boolean"
      +        },
      +        "canManageMembers": {
      +          "type": "boolean"
      +        },
      +        "canReadRevisions": {
      +          "type": "boolean"
      +        },
      +        "canRemoveChildren": {
      +          "type": "boolean"
      +        },
      +        "canRename": {
      +          "type": "boolean"
      +        },
      +        "canRenameTeamDrive": {
      +          "type": "boolean"
      +        },
      +        "canResetTeamDriveRestrictions": {
      +          "type": "boolean"
      +        },
      +        "canShare": {
      +          "type": "boolean"
      +        },
      +        "canTrashChildren": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "colorRgb": {
      +      "type": "string"
      +    },
      +    "createdTime": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "orgUnitId": {
      +      "type": "string"
      +    },
      +    "restrictions": {
      +      "properties": {
      +        "adminManagedRestrictions": {
      +          "type": "boolean"
      +        },
      +        "copyRequiresWriterPermission": {
      +          "type": "boolean"
      +        },
      +        "domainUsersOnly": {
      +          "type": "boolean"
      +        },
      +        "downloadRestriction": {
      +          "properties": {
      +            "restrictedForReaders": {
      +              "type": "boolean"
      +            },
      +            "restrictedForWriters": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "sharingFoldersRequiresOrganizerPermission": {
      +          "type": "boolean"
      +        },
      +        "teamMembersOnly": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "themeId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / teamDriveId / description
      Previous value: -"The ID of the Team Drive"New value: +"[URL path segment] The ID of the Team Drive"
    • addedInput schema / properties / useDomainAdminAccess / default
      Added value: +"false"
    • changedInput schema / properties / useDomainAdminAccess / description
      Previous value: -"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the T"New value: +"[query parameter] Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the T"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "backgroundImageFile": {
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "width": {
      +          "type": "number"
      +        },
      +        "xCoordinate": {
      +          "type": "number"
      +        },
      +        "yCoordinate": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "backgroundImageLink": {
      +      "type": "string"
      +    },
      +    "capabilities": {
      +      "properties": {
      +        "canAddChildren": {
      +          "type": "boolean"
      +        },
      +        "canChangeCopyRequiresWriterPermissionRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeDomainUsersOnlyRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeDownloadRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeSharingFoldersRequiresOrganizerPermissionRestriction": {
      +          "type": "boolean"
      +        },
      +        "canChangeTeamDriveBackground": {
      +          "type": "boolean"
      +        },
      +        "canChangeTeamMembersOnlyRestriction": {
      +          "type": "boolean"
      +        },
      +        "canComment": {
      +          "type": "boolean"
      +        },
      +        "canCopy": {
      +          "type": "boolean"
      +        },
      +        "canDeleteChildren": {
      +          "type": "boolean"
      +        },
      +        "canDeleteTeamDrive": {
      +          "type": "boolean"
      +        },
      +        "canDownload": {
      +          "type": "boolean"
      +        },
      +        "canEdit": {
      +          "type": "boolean"
      +        },
      +        "canListChildren": {
      +          "type": "boolean"
      +        },
      +        "canManageMembers": {
      +          "type": "boolean"
      +        },
      +        "canReadRevisions": {
      +          "type": "boolean"
      +        },
      +        "canRemoveChildren": {
      +          "type": "boolean"
      +        },
      +        "canRename": {
      +          "type": "boolean"
      +        },
      +        "canRenameTeamDrive": {
      +          "type": "boolean"
      +        },
      +        "canResetTeamDriveRestrictions": {
      +          "type": "boolean"
      +        },
      +        "canShare": {
      +          "type": "boolean"
      +        },
      +        "canTrashChildren": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "colorRgb": {
      +      "type": "string"
      +    },
      +    "createdTime": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "orgUnitId": {
      +      "type": "string"
      +    },
      +    "restrictions": {
      +      "properties": {
      +        "adminManagedRestrictions": {
      +          "type": "boolean"
      +        },
      +        "copyRequiresWriterPermission": {
      +          "type": "boolean"
      +        },
      +        "domainUsersOnly": {
      +          "type": "boolean"
      +        },
      +        "downloadRestriction": {
      +          "properties": {
      +            "restrictedForReaders": {
      +              "type": "boolean"
      +            },
      +            "restrictedForWriters": {
      +              "type": "boolean"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "sharingFoldersRequiresOrganizerPermission": {
      +          "type": "boolean"
      +        },
      +        "teamMembersOnly": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "themeId": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description must carry the whole burden — and it does disclose the deprecation status, the HTTP method (PATCH, implying partial update), that read-only safety profiles will refuse the call, and that the API response resource is returned as JSON. What's missing is permission/authorization requirements and what happens to fields not supplied on a partial update.

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?

Deprecation is front-loaded in the first three words, and every subsequent clause (method, safety refusal, return shape, body fields, siblings) adds distinct information. Dense em-dash packing, but no sentence is wasted.

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 deprecated 7-parameter mutation with an output schema present, the definition covers the essentials: deprecation redirect, safety-profile refusal, body source options, and sibling operations. Return-value explanation is unnecessary given the output schema, so the remaining gap is only authorization/permission context.

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 teamDriveId, params, body_file, dry_run, query and useDomainAdminAccess. The description adds only that the body is a TeamDrive object passed via `params` or `body_file` and enumerates its top-level fields, largely duplicating the schema's request_body definition. Baseline 3 is appropriate.

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 the verb and resource ('updates the resource' via HTTP PATCH on TeamDrive) and immediately signals deprecation in favour of `drives.update`. The phrase 'updates the resource' is somewhat circular, relying on the name for the resource identity, but the sibling list (create, delete, get, list) and the PATCH/TeamDrive framing make its scope unambiguous.

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?

Explicitly routes the agent away from this tool: 'Deprecated: Use `drives.update` instead', and adds a hard operational constraint ('refused under --readonly safety profiles'). It enumerates sibling operations over the same resource, though it doesn't state whether any scenario still justifies calling this deprecated endpoint.

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