Skip to main content
Glama
index.ts600 B
import { z } from 'zod' import { ListToolkit } from './toolkit.js' import { type Tool as BaseTool } from './tools.js' type Tool = { name: string description: string params_schema: z.ZodObject<any> func: (args: any) => Promise<any> } export class AgentMailToolkit extends ListToolkit<Tool> { protected buildTool(tool: BaseTool) { return { name: tool.name, description: tool.description, params_schema: tool.params_schema, func: (args: z.infer<typeof tool.params_schema>) => tool.func(this.client, args), } } }

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/agentmail-to/agentmail-toolkit'

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