Skip to main content
Glama

gws-mcp__drive_get_file

Read-only

Describes one file or folder in Google Drive without reading its content. Takes the file ID. Returns its name, MIME type, size in bytes when Drive reports one (folders have none), the IDs of the folders it is in, its owners' names and addresses, when it was created and last modified, its link, whether it is in Trash, whether it is shared, and the shared drive it belongs to when it is in one. A file the account cannot see answers as not found.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file_id": "<file_id>"
    },
    "name": "gws-mcp__drive_get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoOptional email address of the connected account to use (e.g. 'user@gmail.com'). If omitted, the default account is used.
file_idYesThe Google Drive file or folder ID to describe

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true, so the description carries the interesting behavior itself and does so thoroughly: the exact metadata fields returned, the folder-size edge case, an explicit account-invisibility/not-found outcome, and Trash and sharing state. That is unusually rich disclosure for a read tool and goes far beyond the annotation.

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?

Purpose and the 'no content read' constraint are front-loaded in the first sentence, followed by input and output expectations. The second sentence is a long enumeration of returned fields, but given there is no output schema, that enumeration earns its space rather than being padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by enumerating the return shape, and it also covers edge cases (folders lack size, inaccessible files read as not found) that an agent would otherwise have to discover by trial. Nothing needed to invoke a two-parameter read tool correctly is missing.

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% and both parameters are documented in the schema, so the description's 'Takes the file ID' adds nothing new and the optional account selector is never mentioned. It does not clarify that the ID may refer to either a file or a folder, which is the one genuinely useful semantic detail it could have added; baseline 3 applies.

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?

The description states a specific verb and resource ('Describes one file or folder in Google Drive') and immediately delimits scope with 'without reading its content', which cleanly separates it from the sibling drive_read_file and from drive_get_file_permissions. An agent can pick this tool for metadata without opening any 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?

The 'without reading its content' clause functions as an implicit when-to-use boundary, telling the agent to pick this for metadata and something else for file bodies, and the not-found behavior sets expectations for bad IDs. However, it never names drive_read_file or drive_search as the alternatives, nor does it say how to obtain a file_id, so the routing is inferred rather than stated.

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.