Skip to main content
Glama

AgentMail

by agentmail-to
index.ts588 B
import { z } from 'zod' import { ListToolkit } from './toolkit' import { type Tool as BaseTool } from './tools' type Tool = { name: string description: string params_schema: z.AnyZodObject fn: (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, fn: (args: z.infer<typeof tool.params_schema>) => this.call(tool.method, args), } } }

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