Skip to main content
Glama

Gemini MCP Tool

test-tool.example.ts992 B
/** * Example: Adding a new tool with the unified registry * To add this tool: * 1. Rename this file to remove .example (test-tool.ts) * 2. Import and register in src/tools/index.ts: * import { testTool } from './test-tool.js'; * toolRegistry.push(testTool); * * That's it! No more editing multiple files. */ import { z } from 'zod'; import { UnifiedTool } from './registry.js'; const testToolArgsSchema = z.object({ message: z.string().describe("Test message to echo"), // Required field (no .optional()) }); export const testTool: UnifiedTool = { name: "test-tool", description: "A test tool demonstrating the simplified registration", zodSchema: testToolArgsSchema, prompt: { description: "Test the new unified tool registration", arguments: [{ name: "message", description: "Message to test with", required: true }] }, category: 'utility', execute: async (args) => { return `Test tool received: ${args.message}`; } };

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