Skip to main content
Glama

gemini_sendMessage

Send a text message to an active Gemini chat session via sessionId. Receive the model's response, which may include generated text or a function call request, enabling dynamic interaction with the AI model.

Instructions

Sends a message to an existing Gemini chat session, identified by its sessionId. Returns the model's response, which might include text or a function call request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
generationConfigNoOptional. Per-request generation configuration settings to override session defaults for this turn.
messageYesRequired. The text message content to send to the model. (Note: Currently only supports text input; complex Part types like images are not yet supported by this tool parameter).
safetySettingsNoOptional. Per-request safety settings to override session defaults for this turn.
sessionIdYesRequired. The unique identifier of the chat session to send the message to.
toolConfigNoOptional. Per-request tool configuration, e.g., to force function calling mode.
toolsNoOptional. Per-request tools definition (e.g., function declarations) to override session defaults for this turn.

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