Skip to main content
The Responses API (/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 the tools 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 catch tool_calls, execute code locally, and return output back to the gateway. With Responses API and type: "mcp":
  1. Automated Gateway Execution: Neosantara connects to your remote MCP server directly.
  2. Zero Client Orchestration: Your application simply awaits the finished result.
  3. Async Synergy: Combines cleanly with background=True for long-running workflows.

Next Steps