Skip to main content
Glama

get_file_metadata

Read-only

Fetch one Drive file's metadata by id (from search_drive_files, its id field): name, mimeType, modified/created time, webViewLink, owners, size, description, parent folder ids, trashed. Same scope as search — works on every Drive-capable account. Pass account when more than one is connected.

Input Schema

NameRequiredDescriptionDefault
accountNoAccount label the file belongs to (see list_accounts). Required when several Drive-capable accounts are connected.
file_idYesDrive file id (from search_drive_files, its `id` field).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds real value beyond that: it tells the agent the tool works on every Drive-capable account and shares the same scope as search, plus it enumerates the returned fields since there is no output schema.

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?

Three compact sentences, front-loaded with the verb and resource, then the id source, then the account caveat. No filler and every clause carries information.

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 listing the returned metadata fields, and it covers scope and the multi-account caveat. An agent has everything needed to call this correctly.

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 itself. The description restates the id source and the account condition, which is helpful alignment but adds no semantics beyond the schema, so the 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?

States a specific verb (Fetch) and resource (one Drive file's metadata) and enumerates exactly what is returned: name, mimeType, modified/created time, webViewLink, owners, size, description, parent folder ids, trashed. This clearly distinguishes it from search_drive_files, read_file_content, and get_file_permissions.

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?

Explains the provenance of the required id (from search_drive_files) and the conditionality of the account param (pass when more than one is connected), which is clear operational context. It does not explicitly route the agent away from alternatives like read_file_content or get_file_permissions, so it falls short of a full 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