list_templates
Retrieve available email templates for sending transactional emails through the GetMailer MCP Server.
Instructions
List available email templates
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:387-392 (handler)The handler for the 'list_templates' tool. It makes an API request to '/api/templates' using the apiRequest helper and returns the JSON-formatted result as text content.case 'list_templates': { const result = await apiRequest('/api/templates'); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; }
- src/index.ts:150-157 (registration)Registration of the 'list_templates' tool in the ListToolsRequestSchema handler response. Defines the tool name, description, and empty input schema (no parameters required).{ name: 'list_templates', description: 'List available email templates', inputSchema: { type: 'object' as const, properties: {}, }, },
- src/index.ts:153-156 (schema)Input schema for the 'list_templates' tool, which is an empty object (no input parameters required).inputSchema: { type: 'object' as const, properties: {}, },