Skip to main content
Glama

Gemini MCP Tool

simple-tools.ts978 B
import { z } from 'zod'; import { UnifiedTool } from './registry.js'; import { executeCommand } from '../utils/commandExecutor.js'; const pingArgsSchema = z.object({ prompt: z.string().default('').describe("Message to echo "), }); export const pingTool: UnifiedTool = { name: "ping", description: "Echo", zodSchema: pingArgsSchema, prompt: { description: "Echo test message with structured response.", }, category: 'simple', execute: async (args, onProgress) => { const message = args.prompt || args.message || "Pong!"; return executeCommand("echo", [message as string], onProgress); } }; const helpArgsSchema = z.object({}); export const helpTool: UnifiedTool = { name: "Help", description: "receive help information", zodSchema: helpArgsSchema, prompt: { description: "receive help information", }, category: 'simple', execute: async (args, onProgress) => { return executeCommand("gemini", ["-help"], onProgress); } };

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/jamubc/gemini-mcp-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server