OpenAI Agents SDK and MCP tools for developers
On this page
The OpenAI Agents SDK connects to MCP servers through its MCP integration, so an agent can call external tools without custom wrapper code. APIbase exposes a large and growing catalog of MCP tools that an OpenAI agent can call through one gateway endpoint. Developers pick the tools they need, then the agent discovers and invokes them at runtime.
What the OpenAI Agents SDK does with MCP
The OpenAI Agents SDK lets a developer define an agent with instructions, a model, and a set of tools. The SDK includes MCP support, so the agent can attach an MCP server as a tool source. The agent lists the server's tools, sends the model their schemas, and runs the calls the model requests.
An MCP server exposes tools over a transport such as stdio or streamable HTTP. The SDK handles the handshake and the tool call round trip. The developer writes the agent logic and leaves the protocol details to the SDK.
Connecting an OpenAI agent to APIbase
Point the agent at the APIbase MCP gateway endpoint over HTTP. The agent then sees the gateway tools as one server, and it does not need a separate connection for each upstream API. Keep the credential in an environment variable, not in source code.
- Create an agent with the SDK and give it the gateway as an MCP server.
- Ask the agent to list available tools before it plans a task.
- Pass only the tool names the task needs to keep the model context small.
Choosing tools for a developer workflow
Match each tool to one step of the task. A research agent needs search and retrieval tools. A payments agent needs tools that handle quotes and settlement. An agent with too many tools picks the wrong one more often. Scope each agent to a small set.
Test each tool call with a fixed input before the agent uses it in a loop. Log the arguments and the result so that a bad call is easy to trace.
Pricing and payment for tool calls
Individual tools carry their own price. Check the price on each tool's page before a loop calls it many times. Pricing for the tools in the catalog ranges from None to None per call.
Limits to plan for
MCP tool calls add latency compared with an in-process function. A chain of ten calls can take noticeably longer than one call. Budget for that delay in any user-facing flow.
The SDK does not decide which tool is correct. The model chooses, so write clear tool descriptions and check the chosen calls in tests.
Live pricing — developer
Data source: live tool catalog snapshot, fetched 2026-12-04.
Chart data as a table
| Tool | Price per call | Cache-hit price |
|---|---|---|
| Usage Time Series | $0.0 | $0.0 |
| Per-Tool Usage Breakdown | $0.0 | $0.0 |
| Usage Summary | $0.0 | $0.0 |
| Call Tool | $0.0 | $0.0 |
| List Tool Categories | $0.0 | $0.0 |
| Describe Tool | $0.0 | $0.0 |
| Discover Tools | $0.0 | $0.0 |
| Global VIN Decode | $0.0 | $0.0 |
| Tool | Provider | Price/call | Cache-hit |
|---|---|---|---|
| Usage Time Series | $None | $None | |
| Per-Tool Usage Breakdown | $None | $None | |
| Usage Summary | $None | $None | |
| Call Tool | $None | $None | |
| List Tool Categories | $None | $None | |
| Describe Tool | $None | $None | |
| Discover Tools | $None | $None | |
| Global VIN Decode | $None | $None |
Connect via MCP
Data source: gateway design, no measured values.
$ curl -X POST https://apibase.pro/api/v1/tools/account.timeseries/call \
-H "Content-Type: application/json" -d '{"params": {}}'FAQ
Does the OpenAI Agents SDK support MCP?
The OpenAI Agents SDK includes MCP support. An agent can attach an MCP server and call its tools through the model.
How does an OpenAI agent connect to APIbase?
Point the agent at the APIbase MCP gateway endpoint over HTTP and provide the credential through an environment variable.
How many tools should one agent get?
Give each agent a small set that matches its task. A focused set reduces wrong tool choices and keeps the model context short.
What does a tool call cost?
Each tool sets its own price. Per-call prices in the catalog range from None to None.
Recommended next step
- STEP 1/2 Connect your MCP client
- STEP 2/2 Browse the full catalog
Related guides
Written with AI assistance from APIbase's published documentation and public data; checked automatically against them. Corrections: https://apibase.pro/
Published: 2026-12-04Source: live apibase.pro catalog snapshot