Skip to main content
Glama
__init__.py714 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] func: Callable class AgentMailToolkit(Toolkit[Tool]): def __init__(self, client: Optional[AgentMail] = None): super().__init__(client) def _build_tool(self, tool: BaseTool): def func(**kwargs): return tool.func(self.client, kwargs) return Tool( name=tool.name, description=tool.description, params_schema=tool.params_schema, func=func, )

Latest Blog Posts

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