Share via

Issue with Custom Open API Tool in Foundry

Nimesh 110 Reputation points
2026-05-14T05:14:45.0033333+00:00

User's image

Hi Everyone,

I am using Custom Open API tool which uses Azure AI Search endpoint. When I prompt the agent, I get this error intermittently. This tool endpoint is searching a KB index with lot of data.

The reason for using this tool instead of not attaching the KB directly via Foundry IQ is because I want to publish this agent to Teams group chat. If I use Foundry IQ, it will continuously prompt for approval when added to Teams chat. To avoid it, I have tried using custom MCP, but custom MCP doesn't retrieve all the data and gets chunked data only. So the answer is not accurate.

Is there a way to address this issue via Foundry Workflows or any other method?

User's image

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,530 Reputation points MVP
    2026-05-14T06:30:10.09+00:00

    This looks like a performance issue between the Foundry Agent, your custom OpenAPI tool, and Azure AI Search.

    here are suggestions

    • Test the API directly with Postman/cURL
    • Reduce Azure AI Search result size (top=3-5)
    • Return compact responses only
    • Check API timeout and latency
    • Ensure every API operation has a valid operationId

    https://learn.microsoft.com/en-us/azure/foundry-classic/agents/how-to/tools-classic/openapi-spec

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.