Skip to main content
Glama

list_shared_with_me

Read-only

Lists files explicitly shared with the authenticated user, including shared drive items, with optional MIME type filtering and a configurable result limit.

Instructions

List files explicitly shared with the authenticated user, including shared drive files shared with them directly.

Args: mime_type: Optional MIME type filter, e.g. 'application/vnd.google-apps.spreadsheet'. max_results: Maximum number of files to return (default 50, max 200).

Returns: List of shared files with id, name, mime_type, modified_time, owners, and web_link, ordered by modification time descending. Note: With service account auth, returns files shared with the service account email, not files shared with a personal user.

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": "list_shared_with_me"
  }
}

Input Schema

NameRequiredDescriptionDefault
mime_typeNo
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description goes further by disclosing result ordering (modified time descending), the fields returned, and a genuinely important behavioral caveat that under service-account auth it returns files shared with the service account email rather than a personal user. That auth nuance is context an agent could not derive from structured fields.

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?

The front-loaded summary sentence is the highest-value content and comes first, with Args/Returns sections following in a predictable structure. The Returns block is somewhat redundant given an output schema exists, but it is brief and does not bloat the 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 two-parameter read tool this covers scope, both parameters with constraints, ordering, returned fields, and an auth-mode caveat. The only soft gap is that the description does not address pagination behavior when results exceed max_results, which matters for a 200-item cap.

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 description coverage is 0%, so the description carries the full burden and largely does: mime_type is explained as an optional filter with a concrete example value, and max_results is documented with both its default (50) and a maximum (200) that the schema does not encode. It loses a point only because the mime_type format is conveyed by example rather than by a stated syntax.

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?

The description opens with a specific verb and resource ('List files') and, more importantly, a precise scope: files 'explicitly shared with the authenticated user, including shared drive files shared with them directly.' That scope is what separates it conceptually from a general file listing, so an agent can reason about selection. It stops short of a 5 because it never names which sibling (e.g., list_files or list_recent_files) covers the broader case.

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 phrase 'explicitly shared with' — an agent can infer this is the right tool when it wants incoming shares rather than owned files, but there is no explicit when-to-use/when-not-to-use statement and no named alternative. The service-account note is an auth caveat, not selection guidance.

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