Skip to main content
Glama

drive get file

drive_get_file
Read-onlyIdempotent

Retrieve metadata for a Google Drive file or folder using its file ID to inspect properties like name, type, and size before taking further action.

Instructions

Get metadata for one file or folder.

Input Schema

NameRequiredDescriptionDefault
file_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered structurally. The description's only added behavioral nuance is that the target may be a folder as well as a file; it says nothing about permissions, shared-drive visibility, or error conditions for a missing ID.

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?

A single front-loaded sentence with no filler; the scope constraint ('one file or folder') arrives immediately and every word carries weight.

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

Completeness3/5

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

An output schema exists, so return fields need not be described, and rich annotations cover the safety profile. Still, for a lookup tool the description leaves gaps around ID sourcing and permission/error behavior that would help an agent invoke it confidently.

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 0% for the single file_id parameter, so the schema adds no meaning of its own. The description partially compensates by indicating that the ID may reference a folder as well as a file, which is real information not in the schema, but it gives no format or sourcing guidance for the ID.

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 description uses a specific verb (get) and resource (metadata for one file or folder), scoping it to a single known item. That implicitly separates it from drive_search_files (discovery) and drive_read_file_text (content), though neither sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no named alternative such as drive_read_file_text for file contents. The agent must infer from the verb that this is for lookups by a known file_id rather than searching or reading content.

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