Skip to main content
Glama

Restore Google Drive files

connections_storage_restore_google_drive_files

Take files or folders back out of the connected Google Drive's Trash, up to 100 per call. Pass the ids from the trash_google_drive_files answer. The answer lists every file on its own.

Input Schema

NameRequiredDescriptionDefault
personNoLinked person to run this call as (first name). Omit to run as the connection's holder.
dry_runNoPreview only.
projectNoWorkspace to run this call in (id or name).
file_idsYesThe Drive ids to restore (at most 100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview only; nothing is written."New value: +"Preview only."
  2. Changed2 schema fields changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"Preview only: return what this call would do, with nothing written."New value: +"Preview only; nothing is written."
    • addedInput schema / properties / person
      Added value: +{
      +  "description": "Linked person to run this call as (first name). Omit to run as the connection's holder.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Workspace to run this call in (id or name).",
      +  "type": "string"
      +}
  4. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the mutation-but-non-destructive profile is covered. The description adds the 100-file-per-call batch ceiling, but that same limit is repeated in the file_ids schema, and it says nothing about permission requirements, partial failures, or what happens to files beyond the cap.

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?

Three short sentences with the core action front-loaded and the prerequisite second. The trailing sentence 'The answer lists every file on its own' is slightly awkward and adds marginal parsing guidance rather than substantive information.

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 4-parameter, single-required-field mutation with full schema coverage and no output schema, the description covers purpose, prerequisite and batch limit adequately. It omits error/partial-success behavior and permissions, which would help but are not strictly required here.

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 coverage is 100%, so person, project, dry_run and file_ids are already documented. The description restates the id-passing and the 100 cap already present in the schema and adds no new meaning for person, project, or dry_run. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Take files or folders back out of the connected Google Drive's Trash') rather than restating the tool name, and distinguishes the operation from trashing by naming the inverse sibling workflow (trash_google_drive_files). An agent can tell this is the un-trash operation without opening the schema.

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 sequencing guidance — pass the ids returned by the trash_google_drive_files answer — so the agent knows this follows a trash-listing call. It does not explicitly state when NOT to use it (e.g. versus connections_storage_restore_from_trash), which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources