Skip to main content
Glama

MCP Gemini Server

by bsmi021

gemini_listFiles

List previously uploaded files with pagination support on the MCP Gemini Server. Retrieve file metadata and a token for the next page using optional page size and token parameters.

Instructions

Lists files previously uploaded to the Gemini API. Supports pagination to handle large numbers of files. NOTE: This API is not supported on Vertex AI clients. It only works with Google AI Studio API keys. Returns a list of file metadata objects and potentially a token for the next page.

Input Schema

NameRequiredDescriptionDefault
pageSizeNoOptional. The maximum number of files to return per page. Defaults to 100 if not specified by the API, max 1000.
pageTokenNoOptional. A token received from a previous listFiles call to retrieve the next page of results.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "pageSize": { "description": "Optional. The maximum number of files to return per page. Defaults to 100 if not specified by the API, max 1000.", "exclusiveMinimum": 0, "maximum": 1000, "type": "integer" }, "pageToken": { "description": "Optional. A token received from a previous listFiles call to retrieve the next page of results.", "minLength": 1, "type": "string" } }, "type": "object" }

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/bsmi021/mcp-gemini-server'

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