Skip to main content
Glama

example_tool

Process messages to extend Claude's capabilities through custom tools in the Model Context Protocol Server.

Instructions

An example tool that processes messages

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesMessage to process

Implementation Reference

  • The main handler function for the example_tool. It takes an input with a message field and returns the message prefixed with 'Processed: '.
    async execute(input: ExampleInput) { return `Processed: ${input.message}`; }
  • Input schema definition using Zod for validation. Defines 'message' as a required string field.
    schema = { message: { type: z.string(), description: "Message to process", }, };

Other 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