Skip to main content
Glama

Uploads List Files

uploads_list_files
Read-onlyIdempotent

Lists paginated Workspace file uploads staged on the MCP server, newest first, returning upload IDs for Drive, Gmail, or Gemini tools. Browse staged files without querying Google Drive.

Instructions

List the user's Workspace Files uploads from uploads_file_manager, newest first, a page at a time; they are staged on the MCP server, not in Google Drive (for Drive use drive_list_files). Pass an upload_id as uploaded_file to drive_upload_file, the attachments of gmail_send_email, gmail_reply and gmail_save_draft, or the Gemini media tools. Returns files (upload_id, display_name, type, size, uploaded_at, expires_at, remaining_quota_bytes, ...), count, next_cursor, which is null once a page comes back short, and the same cursor as next_page_token with has_more and fetched_at.

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

Input Schema

NameRequiredDescriptionDefault
limitNoUploads per page, 1 to 100 (default 50).
cursorNoThe next_cursor from the previous uploads_list_files response; omit for the first page.

Output Schema

NameRequiredDescriptionDefault
countYesNumber of files returned in this page.
filesYesUploaded file summaries in this page.
has_moreNoWhether next_cursor is set.
fetched_atNoRFC3339 time when this response was fetched.
next_cursorNoCursor for the next page, or null at the end.
next_page_tokenNoThe same value as next_cursor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the safe read profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely new behavior: uploads are staged on the MCP server rather than Drive, they carry expires_at and a remaining_quota_bytes budget, and next_cursor goes null once a page comes back short. That last detail is the key pagination-termination rule an agent needs and it is not in the annotations.

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 first sentence is well front-loaded with purpose, scope, and the sibling hand-off. The trailing enumeration of return fields is long and partly redundant given an output schema exists, though the parenthetical field list and the aliasing note (next_cursor vs next_page_token, has_more) do carry signal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers everything an agent needs for a two-parameter paginated list: where the data lives, ordering, page termination, how to continue, and what the upload_id can be consumed by. With an output schema present the return-value recap is surplus but does not create ambiguity.

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% and both parameters are already documented in the schema, including the 1-100 range for limit and the instruction to reuse next_cursor. The description only echoes the paging model ("a page at a time") without adding format, default, or edge-case meaning beyond the schema, 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 and resource ("List the user's Workspace Files uploads from uploads_file_manager") plus ordering (newest first) and page semantics. It explicitly distinguishes the resource from Google Drive files and names drive_list_files as the alternative, so an agent can tell the two list tools apart without opening either schema.

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?

Gives an explicit when-to-use condition (MCP-server-staged uploads) and a when-not-to-use with the named alternative ("for Drive use drive_list_files"). It also explains what the returned upload_id is for, routing the agent to drive_upload_file, gmail_send_email/gmail_reply/gmail_save_draft, and the Gemini media tools.

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