Skip to main content
Glama

Share a Drive file with someone

share_gdrive_item

Give a named person access to a file or folder by their email address, and get back the link to pass on. Only named people — there is no "anyone with the link" option, so someone without a Google account cannot be given access. The person is NOT emailed: send them the link yourself with send_gmail_message if they should know. Ask the user to confirm before sharing anything.

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": {
      "mailbox": "<mailbox>",
      "itemId": "<itemId>",
      "email": "<email>"
    },
    "name": "share_gdrive_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoDefaults to reader
emailYesEmail address of the person to give access to
itemIdYes
mailboxYesEmail address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options.
expiresInDaysNoAccess is removed automatically after this many days, up to 365

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, openWorld=true, destructive=false. The description adds real behavioral context beyond that: the recipient is NOT emailed, link-only sharing is unsupported, and user confirmation is required first. It doesn't cover revocation semantics or how existing permissions interact, but the safety-relevant caveats are well surfaced.

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 front-loaded sentences with no waste: the core action first, then the constraint, then the non-email caveat and confirmation instruction. Emphasis (bold) is used sparingly on the most easily-missed fact.

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?

No output schema exists, and the description adequately notes that a link is returned. For a permission-granting mutation tool, the main agent-relevant caveats (no public links, no auto-email, confirm first) are all present; minor gaps remain around expiration and role choice.

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 80%, so the schema already documents mailbox, email, role (enum with default), and expiresInDays. The description adds only that access is granted by email address; it says nothing about role choices or the expiry parameter, 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 (give access), resource (file or folder), and mechanism (by email address), plus the return value (the link). It is clearly distinguishable from siblings like unshare_gdrive_item, list_gdrive_permissions, and share_onedrive_item.

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

Usage Guidelines5/5

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

Explicitly constrains usage: only named people, no 'anyone with the link' option, recipients without a Google account cannot be granted access. It routes the agent to send_gmail_message for notification and instructs confirming with the user before sharing — clear when/when-not guidance and a named alternative.

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