Skip to main content
Glama

getFileInfo

Retrieve metadata for any Google Drive file—including name, type, owner, sharing status, and modification history—by providing its file ID.

Instructions

Gets metadata about any Drive file (document, spreadsheet, PDF, etc.) including its name, type, owner, sharing status, and modification history.

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": {
      "fileId": "<fileId>"
    },
    "name": "getFileInfo"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe ID of the file to get information about.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose what the call returns (name, type, owner, sharing status, modification history), but says nothing about permission requirements, behavior on inaccessible or trashed files, or error conditions.

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?

A single front-loaded sentence with no filler, and the parenthetical examples are genuinely informative for scope. Minor redundancy between 'any Drive file' and the type list, but nothing that should be cut.

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 one-parameter read-only metadata tool with no output schema, the description compensates by enumerating the returned fields. Only the absence of permission or failure-mode context keeps it short of full completeness.

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?

One parameter with 100% schema description coverage, so the schema already explains fileId. The description adds no format guidance (e.g., whether a URL or shortcut ID is acceptable), so baseline 3 applies.

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 a specific verb ('Gets') and resource ('metadata about any Drive file') and enumerates the returned fields (name, type, owner, sharing status, modification history). The word 'any' distinguishes it from the specialized siblings like getFolderInfo and getSpreadsheetInfo, though it never names them.

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

Usage Guidelines3/5

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

Usage is only implied by the scope word 'any Drive file (document, spreadsheet, PDF, etc.)', which suggests this is the generic metadata lookup rather than the type-specific siblings. There is no explicit when-to-use, when-not-to-use, or named alternative such as getFilePath or readDriveFile.

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