Skip to main content
Glama

MCP Gemini Server

by bsmi021
ToolSchemas.ts1.26 kB
/** * Tool Schemas - Gemini API Specific Tool Types * * This file contains the schema definitions for tools compatible with the Gemini API. */ import { z } from "zod"; import { FunctionParameterTypeSchema, FunctionParameterSchema, FunctionParameterPropertiesSchema, FunctionDeclarationSchema, ToolConfigSchema, } from "./CommonSchemas.js"; /** * Complete schema for a tool with function declarations */ export const ToolSchema = z .object({ functionDeclarations: z .array(FunctionDeclarationSchema) .optional() .describe("List of function declarations for this tool."), // Can add other tool types like Retrieval, GoogleSearchRetrieval if needed }) .describe("Represents a tool definition containing function declarations."); /** * Schema for a tool response */ export const ToolResponseSchema = z .object({ name: z.string().describe("The name of the tool that was called"), response: z.any().describe("The response returned by the tool"), }) .describe("Response from a tool execution"); // Export for direct use in tool implementations export { FunctionParameterTypeSchema, FunctionParameterSchema, FunctionParameterPropertiesSchema, FunctionDeclarationSchema, ToolConfigSchema, };

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