Function Calling
OpenAI-compatible tools including dns_query (domain, optional dns). Use the same tools as MCP in chat completions.
The same tools as MCP are exposed in OpenAI-compatible format. Send the tools list to an LLM so it can return tool_calls; your gateway then executes them (e.g. via POST /api/mcp).
Endpoints
GET
/api/function-calling/dns/toolsReturns only tools for dns.
POST
/api/function-calling/chat?includes=dnsBody: { messages, model? }. Filters allowed tools by includes=dns, then executes tool_calls via MCP tools and returns the final reply.
Playground
Send requests and view responses.
RequestGET /api/function-calling/dns/tools
Response
Click "Fetch tools" to load the OpenAI-compatible tools list.