Skip to main content

With the SDK tools

createTool takes each tool’s JSON Schema as is, with no conversion to Zod. model uses Mastra’s provider/model format, which reads the provider key from your environment (ANTHROPIC_API_KEY).

With the MCP client

Tools arrive prefixed with the server name (doconda_create_document, …).