Skip to main content
Glama

MCP Gemini Server

by bsmi021

gemini_uploadFile

Upload files to the Gemini API by specifying a local path, returning metadata with unique name and URI. Requires Google AI Studio API keys; supports optional display name and MIME type.

Instructions

Uploads a file (specified by a local path) to be used with the Gemini API. NOTE: This API is not supported on Vertex AI clients. It only works with Google AI Studio API keys. Returns metadata about the uploaded file, including its unique name and URI.

Input Schema

NameRequiredDescriptionDefault
displayNameNoOptional. A human-readable name for the file in the API. Max 100 chars.
filePathYesRequired. The full local path to the file that needs to be uploaded.
mimeTypeNoOptional. The IANA MIME type of the file (e.g., 'text/plain', 'image/jpeg'). If omitted, the server will attempt to infer it from the file extension of filePath.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "displayName": { "description": "Optional. A human-readable name for the file in the API. Max 100 chars.", "maxLength": 100, "minLength": 1, "type": "string" }, "filePath": { "description": "Required. The full local path to the file that needs to be uploaded.", "minLength": 1, "type": "string" }, "mimeType": { "description": "Optional. The IANA MIME type of the file (e.g., 'text/plain', 'image/jpeg'). If omitted, the server will attempt to infer it from the file extension of filePath.", "minLength": 1, "type": "string" } }, "required": [ "filePath" ], "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