Skip to main content
Glama

AgentMail

by agentmail-to
ai-sdk.ts440 B
import { type Tool as AiSdkTool } from 'ai' import { MapToolkit } from './toolkit' import { type Tool } from './tools' export class AgentMailToolkit extends MapToolkit<AiSdkTool> { protected buildTool(tool: Tool): AiSdkTool { return { description: tool.description, parameters: tool.params_schema, execute: async (args) => (await this.safeCall(tool.method, args)).result, } } }

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