Skip to main content
Glama
simple-tools.ts593 B
import { z } from 'zod'; import { UnifiedTool } from './registry.js'; /** * Simple ping tool for testing MCP connection */ export const pingTool: UnifiedTool = { name: 'ping', description: 'Echo a message back - useful for testing MCP connection', zodSchema: z.object({ prompt: z.string().default('').describe("Message to echo back"), }), category: 'simple', execute: async (args) => { const message = args.prompt || 'pong'; return `Echo: ${message}`; }, }; /** * Get all simple tools */ export function getSimpleTools(): UnifiedTool[] { return [pingTool]; }

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/RhizomaticRobin/cerebras-code-fullstack-mcp'

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