Skip to main content
Glama

AgentMail

by agentmail-to
langchain.py646 B
from typing import Optional from langchain.tools import BaseTool, tool as langchain_tool from agentmail import AgentMail from .toolkit import Toolkit from .tools import Tool class AgentMailToolkit(Toolkit[BaseTool]): def __init__(self, client: Optional[AgentMail] = None): super().__init__(client) def _build_tool(self, tool: Tool): def runnable(**kwargs): return self.call_method(tool.method_name, kwargs) return langchain_tool( name_or_callable=tool.name, description=tool.description, args_schema=tool.params_schema, runnable=runnable, )

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