OpenAI Agents SDK and MCP tools for developers

developer2026-12-04

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

Price per call, developer tools Horizontal bar chart of the price per call and the cache-hit price, in US dollars, for 8 developer tools. The same values are in the table below the chart. Price per call Cache-hit price $0.0 $0.5 $1.0 Usage Time SeriesUsage Time Series $0.0 $0.0 Per-Tool Usage BreakdownPer-Tool Usage Breakdown $0.0 $0.0 Usage SummaryUsage Summary $0.0 $0.0 Call ToolCall Tool $0.0 $0.0 List Tool CategoriesList Tool Categories $0.0 $0.0 Describe ToolDescribe Tool $0.0 $0.0 Discover ToolsDiscover Tools $0.0 $0.0 Global VIN DecodeGlobal VIN Decode $0.0 $0.0 US dollars per call
Price per call for developer tools, cheapest first.

Data source: live tool catalog snapshot, fetched 2026-12-04.

Chart data as a table
ToolPrice per callCache-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
ToolProviderPrice/callCache-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

How a tool call worksAn AI agent sends a tool call to the APIbase gateway. The gateway checks payment, calls the provider API, and returns the JSON result to the agent.Your agentAPIbase gatewayProvider API1. tool call2. paid call3. JSON result flows back to the agent
Diagram: the path of one tool call.

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.

  1. STEP 1/2 Connect your MCP client
  2. STEP 2/2 Browse the full catalog

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