Skip to main content
Glama

AgentMail

by agentmail-to
__init__.py718 B
from typing import Optional, Type, Callable from pydantic import BaseModel from agentmail import AgentMail from .toolkit import Toolkit from .tools import Tool as BaseTool class Tool(BaseModel): name: str description: str params_schema: Type[BaseModel] fn: Callable class AgentMailToolkit(Toolkit[Tool]): def __init__(self, client: Optional[AgentMail] = None): super().__init__(client) def _build_tool(self, tool: BaseTool): def fn(**kwargs): return self.call_method(tool.method_name, kwargs) return Tool( name=tool.name, description=tool.description, params_schema=tool.params_schema, fn=fn, )

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