Intermittent MCP tool discovery failure in Agent Builder (HTTP 424) but direct @openai/agents calls succeed

Hi all, I’m seeing an intermittent issue where an Agent Builder workflow using an MCP tool sometimes fails to connect or list tools, but when I run a direct Node script using @openaiopenai/agents against the same MCP server and same headers, it works consistently.
What I’m building

Agent Builder workflow node (“Chat Limiter”) calls an MCP tool get_chat_counter(reportId, personId) and returns a number.

Symptoms in Agent Builder

Some runs fail with:
• Error retrieving tool list from MCP server: ‘get_chat_counter’. Http status code: 424 (Failed Dependency)
• When it fails, it looks like tool discovery fails and the tool call never happens.

Other runs succeed without any changes.

Why this is confusing

If I manually call the MCP server using N@openaide + @openai/agents, it consistently works, including tool calls.

MCP server details
• Python FastMCP server using streamable HTTP:
• mcp = FastMCP(“mcp”, streamable_http_path=“/mcp”)
• app = mcp.streamable_http_app()
• Protected by middleware requiring header mcp-api-key
• Running behind a reverse proxy (I see x-forwarded-* and x-amzn-trace-id in logs)

Node reproduction that always works
import { MCPServerStreamableHttp } from “@openai/agents”;

const url = “https://:81/mcp”;
const AUTH_TOKEN = “”;

const server = new MCPServerStreamableHttp({
url,
name: “inseer-mcp”,
requestInit: { headers: { “mcp-api-key”: AUTH_TOKEN } },
});

await server.connect();
const list = await server.listTools();
console.log(“MCP tools:”, list.tools?.map((t) => t.name)); // note: list.tools sometimes undefined, but tool calls work
const r = await server.callTool(“get_chat_counter”, { reportId: “”, personId: 0 });
console.log(r);
await server.close();

Key question

Why would Agent Builder intermittently fail at tool discovery (424) while direct Node usage succeeds consistently against the same endpoint and API key?

Any help will be greatly appreciated @OpenAI_Support

Hey @Irfan_Mohammed9, appreciate you flagging this. We’re going to take a closer look and dig into what might be causing it. If you’ve noticed any patterns or other error messages, feel free to share, that kind of detail can really help. We’ll report back once we know more.

1 Like

Hey @OpenAI_Support , quick update with an important change in behavior:

Starting Thursday, the Agent Builder workflow is no longer intermittently failing, it cannot connect at all even once. Tool discovery fails every time now.

To rule out any issues with the remote MCP server itself, I tested using MCP Inspector against the exact same endpoint and API key. MCP Inspector connects reliably and is able to:

List tools successfully

Execute tool calls without any issues

So the MCP server appears healthy, and the problem seems isolated specifically to Agent Builder’s MCP integration, not the backend.

Happy to share more logs or repro details if helpful.

Thanks again for looking into this.

Hey @Irfan_Mohammed9, Would you be able to open a support request with us at support@openai.com and provide us the HAR file from the session where you can see the error (example: unable to load tool). Once we have the details, we can debug the issue. Please make sure to include your forum username and link to the forum in the support request and also share with us the case id here. Thank you!

2 Likes