/v1/responses) supports two categories of tools: standard client-side function declarations and server-side tools orchestrated directly by the gateway via the Model Context Protocol (MCP) using the official OpenAI SDK.
Remote MCP Server Integration
By adding MCP server endpoints to thetools array, Neosantara operates as an MCP client and executes tools directly at the gateway level without requiring client-side execution loops.
Client-Side Function Declarations
When you want the model to generate structured arguments for functions executed on your own infrastructure, declare standard JSON function tools.Why Use Server MCP in Responses API?
In standard Chat Completions, when an AI model requests a tool call, your client application must catchtool_calls, execute code locally, and return output back to the gateway.
With Responses API and type: "mcp":
- Automated Gateway Execution: Neosantara connects to your remote MCP server directly.
- Zero Client Orchestration: Your application simply awaits the finished result.
- Async Synergy: Combines cleanly with
background=Truefor long-running workflows.