Skip to main content
Glama

example_tool

Process messages efficiently within the Model Context Protocol Server framework to extend Claude's capabilities and enhance user interactions in the desktop client.

Instructions

An example tool that processes messages

Input Schema

NameRequiredDescriptionDefault
messageYesMessage to process

Input Schema (JSON Schema)

{ "properties": { "message": { "description": "Message to process", "type": "string" } }, "required": [ "message" ], "type": "object" }

Implementation Reference

  • The main handler function that takes an ExampleInput and returns a processed version of the message.
    async execute(input: ExampleInput) { return `Processed: ${input.message}`; }
  • Input schema definition using Zod for the 'message' parameter.
    schema = { message: { type: z.string(), description: "Message to process", }, };
  • TypeScript interface defining the input shape for the tool.
    interface ExampleInput { message: string; }
  • The name property that registers/identifies this tool as 'example_tool'.
    name = "example_tool";

Other Tools

Related Tools

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/hyen43/mcpServer'

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