Skip to main content
Glama

Get file info

get_file_info
Read-only

Retrieves metadata for a Google Drive file attached in Classroom—including name, type, size, owner, and link—from a file ID or Drive/Docs URL.

Instructions

Metadata for a Drive file attached in Classroom (name, type, size, owner, link).

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": "<file>"
    },
    "name": "get_file_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesDrive file id or any drive.google.com / docs.google.com link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the returned metadata fields, but says nothing about permission requirements, what happens if the file is not attached to a Classroom item, or failure modes for inaccessible links.

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 the key information (what it returns) first and zero filler. It is efficient, though as a bare noun phrase it reads more like a label than a full definition.

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 tool with no output schema, listing the returned fields substitutes adequately for a return-value section. Minor gaps remain around permissions and error behavior, but nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already explains that the parameter accepts a Drive file id or any drive.google.com/docs.google.com link. The description adds a genuine scope constraint beyond the schema: the file is one 'attached in Classroom', which narrows which links are valid inputs.

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 resource and verb-equivalent ('Metadata for a Drive file') and enumerates the returned fields (name, type, size, owner, link), which distinguishes it from content-reading siblings. It stops short of naming any sibling explicitly, so differentiation is inferred rather than stated.

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 when-to-use, when-not-to-use, or alternative guidance. With siblings like read_file_content, download_file, and list_class_drive_folder in the same space, the definition gives the agent nothing explicit about which one to pick for a given need.

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