Skip to main content
Glama
ai-sdk.ts489 B
import { type Tool as AiSdkTool } from 'ai' import { MapToolkit } from './toolkit.js' import { type Tool } from './tools.js' import { safeFunc } from './util.js' export class AgentMailToolkit extends MapToolkit<AiSdkTool> { protected buildTool(tool: Tool): AiSdkTool { return { description: tool.description, inputSchema: tool.paramsSchema, execute: async (args) => (await safeFunc(tool.func, this.client, args)).result, } } }

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