Skip to main content
Glama

AgentMail

by agentmail-to
langchain.ts535 B
import { type StructuredTool, tool as langchainTool } from '@langchain/core/tools' import { ListToolkit } from './toolkit' import { type Tool } from './tools' export class AgentMailToolkit extends ListToolkit<StructuredTool> { protected buildTool(tool: Tool): StructuredTool { return langchainTool(async (args) => JSON.stringify((await this.safeCall(tool.method, args)).result, null, 2), { name: tool.name, description: tool.description, schema: tool.params_schema, }) } }

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