Skip to main content
Glama

gemini_functionCall

Facilitates function calling with Google Gemini models by accepting function declarations and returning text responses or function call requests based on the prompt. Does not execute functions directly.

Instructions

Generates content using a specified Google Gemini model, enabling the model to request execution of predefined functions. This tool accepts function declarations and returns either the standard text response OR the details of a function call requested by the model. NOTE: This tool only returns the request for a function call; it does not execute the function itself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
functionDeclarationsYesRequired. An array of function declarations (schemas) that the model can choose to call based on the prompt.
generationConfigNoOptional configuration for controlling the generation process.
modelNameNoOptional. The name of the Gemini model to use (e.g., 'gemini-1.5-flash'). If omitted, the server's default model (from GOOGLE_GEMINI_MODEL env var) will be used.
promptYesRequired. The text prompt to send to the Gemini model.
safetySettingsNo
toolConfigNoOptional configuration for tools, specifically function calling.

Latest Blog Posts

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