Skip to main content
Glama
taylorwilsdon

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Check Drive File Public Access

check_drive_file_public_access
Read-onlyIdempotent

Search for a file in Google Drive by name and check if it has public link sharing enabled, revealing potential security risks.

Instructions

Searches for a file by name and checks if it has public link sharing enabled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
drive_idNoID of the shared drive to scope the search to. When set, the underlying files.list call uses corpora='drive' and the given driveId, which is required to reliably find files that live only in that shared drive. When None, behaviour is unchanged (default API corpora applies).
file_nameYesThe name of the file to check.
user_google_emailYesThe user's Google email address. Required.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the non-mutating nature is clear. The description adds the specific check behavior but does not disclose how it handles multiple files with the same name, whether it returns partial matches, or what 'public link sharing' precisely entails (e.g., 'Anyone with link'). This is some added context but not rich behavioral detail.

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?

The description is a single concise sentence, front-loading the key action and result. No filler or redundant content. It is appropriately sized for a simple lookup tool.

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?

The tool has an output schema (not shown) and high schema/annotation coverage, so describing return values is not obligatory. The description covers the primary scenario, but leaves minor ambiguities around search behavior (e.g., exact match, case sensitivity, multiple matches). Given the low complexity, this is nearly complete.

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%: each parameter has a description. The tool description does not add meaning beyond the schema; it simply echoes 'file name'. The drive_id parameter is well-documented in the schema, but the description doesn't clarify how it affects search results. Baseline 3 is appropriate.

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 clearly states the tool's function: it searches for a file by name and checks if public link sharing is enabled. This uses a specific verb ('searches', 'checks') and resource ('Drive file'), and is distinct from sibling tools like get_drive_file_permissions or get_drive_shareable_link.

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?

The description implies usage: use when you need to verify public link sharing on a named file. However, it does not provide explicit when-to-use vs alternatives, such as noting that get_drive_file_permissions provides broader permission details or that get_drive_shareable_link returns a link. No exclusions are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taylorwilsdon/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server