fund.echo
Test the Fund MCP Server connection by sending a message and receiving an immediate response, verifying server functionality for financial fund queries.
Instructions
Echo back a message. Example interface for scaffold.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Text to echo back |
Implementation Reference
- tool-handlers/index.ts:99-104 (handler)The handler logic for the 'fund.echo' tool within the main handleToolRequest function. It validates the input using echoSchema and returns the echoed message.if (name === "fund.echo") { const parsed = echoSchema.parse(args); return { content: [{ type: "text", text: parsed.message }], }; }
- tool-handlers/index.ts:3-5 (schema)Zod schema definition used for input validation of the 'fund.echo' tool.const echoSchema = z.object({ message: z.string(), });
- tool-registry/index.ts:2-12 (registration)Tool registration in getAllTools array, including name, description, and input schema for 'fund.echo'.{ name: 'fund.echo', description: 'Echo back a message. Example interface for scaffold.', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Text to echo back' } }, required: ['message'] } },
- tool-registry/index.ts:5-11 (schema)Input schema defined in the tool registration for 'fund.echo'.inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Text to echo back' } }, required: ['message'] }