MCP Gemini Server

by bsmi021
Verified

gemini_sendFunctionResult

Transmits the results of executed functions to an ongoing Gemini chat session using its sessionId, enabling the model to generate a response based on the provided function outcomes.

Instructions

Sends the result(s) of function execution(s) back to an existing Gemini chat session, identified by its sessionId. Returns the model's subsequent response.

Input Schema

NameRequiredDescriptionDefault
functionResponsesYesRequired. An array containing the results of the function calls executed by the client. Each item must include the function 'name' and its 'response' object.
generationConfigNoOptional. Per-request generation configuration settings to override session defaults for this turn.
safetySettingsNoOptional. Per-request safety settings to override session defaults for this turn.
sessionIdYesRequired. The unique identifier of the chat session.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "functionResponses": { "description": "Required. An array containing the results of the function calls executed by the client. Each item must include the function 'name' and its 'response' object.", "items": { "additionalProperties": false, "description": "Represents the result of a single function execution to be sent back to the model.", "properties": { "name": { "description": "Required. The name of the function that was called by the model.", "minLength": 1, "type": "string" }, "response": { "additionalProperties": {}, "description": "Required. The JSON object result returned by the function execution.", "type": "object" } }, "required": [ "name", "response" ], "type": "object" }, "minItems": 1, "type": "array" }, "generationConfig": { "additionalProperties": false, "description": "Optional. Per-request generation configuration settings to override session defaults for this turn.", "properties": { "maxOutputTokens": { "description": "Maximum number of tokens to generate in the response.", "minimum": 1, "type": "integer" }, "stopSequences": { "description": "Sequences where the API will stop generating further tokens.", "items": { "type": "string" }, "type": "array" }, "temperature": { "description": "Controls randomness. Lower values (~0.2) make output more deterministic, higher values (~0.8) make it more creative. Default varies by model.", "maximum": 1, "minimum": 0, "type": "number" }, "topK": { "description": "Top-k sampling parameter. The model considers the k most probable tokens. Default varies by model.", "minimum": 1, "type": "integer" }, "topP": { "description": "Nucleus sampling parameter. The model considers only tokens with probability mass summing to this value. Default varies by model.", "maximum": 1, "minimum": 0, "type": "number" } }, "type": "object" }, "safetySettings": { "description": "Optional. Per-request safety settings to override session defaults for this turn.", "items": { "additionalProperties": false, "description": "Setting for controlling content safety for a specific harm category.", "properties": { "category": { "description": "Category of harmful content to apply safety settings for.", "enum": [ "HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_DANGEROUS_CONTENT" ], "type": "string" }, "threshold": { "description": "Threshold for blocking harmful content. Higher thresholds block more content.", "enum": [ "HARM_BLOCK_THRESHOLD_UNSPECIFIED", "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE" ], "type": "string" } }, "required": [ "category", "threshold" ], "type": "object" }, "type": "array" }, "sessionId": { "description": "Required. The unique identifier of the chat session.", "format": "uuid", "type": "string" } }, "required": [ "sessionId", "functionResponses" ], "type": "object" }
ID: fakxcprcnk