Skip to main content
Glama
codingthailand

xmcp Application

greet.ts588 B
import { z } from "zod"; import { type ToolMetadata, type InferSchema } from "xmcp"; // Define the schema for tool parameters export const schema = { name: z.string().describe("The name of the user to greet"), }; // Define tool metadata export const metadata: ToolMetadata = { name: "greet", description: "Greet the user", annotations: { title: "Greet the user", readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }; // Tool implementation export default function greet({ name }: InferSchema<typeof schema>) { return `Hello, ${name}!!`; }

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/codingthailand/mcp-server-app'

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