Features
Tool use (registry)
Una sola fuente de verdad para tools — disponible vía OpenAI function calling y MCP.
OpenAIMCP
Documentación completa disponible cuando termine Fase 3–4.
Pattern
JavaScript
// lib/tools/examples/sendEmail.js
import { registerTool } from "@/lib/tools"
registerTool({
name: "sendEmail",
description: "Envía un email transaccional.",
parameters: {
type: "object",
properties: {
to: { type: "string" },
subject: { type: "string" },
body: { type: "string" },
},
required: ["to", "subject", "body"],
},
async execute({ to, subject, body }) {
// ...
},
})Una sola registración → disponible para tool use de OpenAI y para el servidor MCP.