Skip to main content
Glama

listSharedWithMe

Lists files and folders others shared with you in Google Drive, excluding your own items. Filter by name or type and sort results to find shared content.

Instructions

Lists files and folders that have been shared with the user ("Shared with me"). Returns items shared by others that are not in the user's own Drive. Use folder IDs with listFolderContents to navigate into shared folders.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "listSharedWithMe"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSearch query to filter shared items by name (uses "contains" matching).
orderByNoHow to sort results. Defaults to most recently shared first.sharedWithMeTime
mimeTypeNoFilter by MIME type. Use "application/vnd.google-apps.folder" for folders only, "application/vnd.google-apps.document" for Docs, "application/vnd.google-apps.spreadsheet" for Sheets, etc.
pageTokenNoToken for fetching the next page of results.
maxResultsNoMaximum number of items to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose scope semantics (only items shared by others, excluding own Drive), but says nothing about read-only safety, pagination behavior, or result limits beyond what the schema's pageToken/maxResults already imply.

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 short sentences, front-loaded with the core purpose, followed by scope clarification and one actionable follow-on. Nothing is redundant or padded.

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 read-only list tool with five optional, fully documented parameters and no output schema, the description covers purpose, scope, and follow-on navigation adequately. Only minor gaps remain, such as confirmation that results are paged and that maxResults caps at 100, which the schema already states.

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 100% with all five parameters documented in-schema, so the baseline is 3. The description adds no filtering or sorting detail beyond what the schema already explains, contributing only the folder-ID navigation hint.

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 and resource (lists files/folders 'Shared with me') and scopes it further by clarifying it returns items shared by others, not items in the user's own Drive. That contrast implicitly separates it from a general own-drive listing tool, though it never names that sibling.

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?

Gives an explicit next-step rule: use folder IDs with listFolderContents to navigate into shared folders, which is exactly the follow-on an agent would otherwise have to guess. It lacks any explicit when-not guidance (e.g., use listDriveFiles instead for own files).

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