Every knowledge_base_retrieve call fails with tool_user_error in Foundry playground; direct index and model calls work

Ivan Rus 0 Reputation points
2026-11-21T10:35:56.9933333+00:00

Since 21 November 2026, our Foundry agents consistently fail whenever they invoke the connected knowledge base through MCP.

We reproduced the issue across multiple agents directly in the Foundry playground, independently of our application.

Environment

  • Region: Sweden Central

Knowledge base backed by Azure AI Search indexes Knowledge base query-planning model: GPT-4.1, Global Standard Retrieval reasoning effort: Low Example affected agent model: gpt-6-luna-2026-09-22 Failing tool: knowledge_base_retrieve Reported error: tool_user_error

Observed behaviour

The key distinction is whether the agent actually invokes the knowledge base:

Without a knowledge base tool call: the agent can respond successfully. With a knowledge base tool call: every observed invocation fails with tool_user_error, and no final answer is generated. Repeated attempts also fail. The same behaviour occurs across multiple agents.

A successful response to a general prompt therefore does not demonstrate that knowledge base retrieval works. We verify the actual tool invocation in the trace.

Checks already performed

Check Result
Direct queries against the underlying search index Successful
-------- --------
Direct queries against the underlying search index Successful
Direct GPT-4.1 deployment call in the model playground Successful
Agent responses without knowledge base retrieval Successful
Actual knowledge base tool calls across multiple agents Consistently fail
Foundry and Search resource availability Both reported as Available
Active subscription health events None reported

The Foundry and Search resources are in the same region.

These results isolate the observed failure to the knowledge base execution path. They do not establish whether the underlying cause is retrieval, service-to-service model access, MCP integration, or another dependency.

Trace observations

In one captured example:

Timestamp: 2026-11-21 at 09:19:54 UTC Total duration: approximately 0.97 seconds The agent invocation is marked as failed with tool_user_error. The child knowledge base tool span appears green in the trace UI. The exported agent span contains no detailed underlying error message or HTTP status code. No final answer is generated.

Azure automated troubleshooting suggested possible connection, authorization, or response-size issues, but did not identify a specific cause.

Questions

Is there a known incident or recent service-side change affecting Foundry knowledge base MCP calls, particularly in Sweden Central? Where can we obtain the underlying error behind tool_user_error, including errors returned by the knowledge base or its query-planning model? If the issue is service-side, will an existing configuration recover automatically after a fix, or is any customer action required? Is there a supported temporary workaround that preserves access to the existing knowledge sources?

We would appreciate guidance on identifying the actual failure before making speculative changes to a previously working configuration.Since 21 November 2026, our Foundry agents consistently fail whenever they invoke the connected knowledge base through MCP.

We reproduced the issue across multiple agents directly in the Foundry playground, independently of our application.

Environment

Region: Sweden Central

Knowledge base backed by Azure AI Search indexes

Knowledge base query-planning model: GPT-4.1, Global Standard

Retrieval reasoning effort: Low

Example affected agent model: gpt-6-luna-2026-09-22

Failing tool: knowledge_base_retrieve

Reported error: tool_user_error

Observed behaviour

The key distinction is whether the agent actually invokes the knowledge base:

Without a knowledge base tool call: the agent can respond successfully.

With a knowledge base tool call: every observed invocation fails with tool_user_error, and no final answer is generated.

Repeated attempts also fail.

The same behaviour occurs across multiple agents.

A successful response to a general prompt therefore does not demonstrate that knowledge base retrieval works. We verify the actual tool invocation in the trace.

Checks already performed

Check Result
Direct queries against the underlying search index Successful
Direct GPT-4.1 deployment call in the model playground Successful
Agent responses without knowledge base retrieval Successful
Actual knowledge base tool calls across multiple agents Consistently fail
Foundry and Search resource availability Both reported as Available
Active subscription health events None reported

The Foundry and Search resources are in the same region.

These results isolate the observed failure to the knowledge base execution path. They do not establish whether the underlying cause is retrieval, service-to-service model access, MCP integration, or another dependency.

Trace observations

In one captured example:

Timestamp: 2026-11-21 at 09:19:54 UTC

Total duration: approximately 0.97 seconds

The agent invocation is marked as failed with tool_user_error.

The child knowledge base tool span appears green in the trace UI.

The exported agent span contains no detailed underlying error message or HTTP status code.

No final answer is generated.

Azure automated troubleshooting suggested possible connection, authorization, or response-size issues, but did not identify a specific cause.

Questions

Is there a known incident or recent service-side change affecting Foundry knowledge base MCP calls, particularly in Sweden Central?

Where can we obtain the underlying error behind tool_user_error, including errors returned by the knowledge base or its query-planning model?

If the issue is service-side, will an existing configuration recover automatically after a fix, or is any customer action required?

Is there a supported temporary workaround that preserves access to the existing knowledge sources?

We would appreciate guidance on identifying the actual failure before making speculative changes to a previously working configuration.

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model

0 comments No comments

1 answer

Sort by: Oldest
  1. Ivan Rus 0 Reputation points
    2026-11-21T16:53:15.5866667+00:00

    Resolved: the monthly free Knowledge Retrieval quota for reasoning effort “low” was exhausted.

    A direct REST call using the same API version as the MCP connection (2026-08-01-preview) exposed HTTP 402 with the quota-exceeded message. Foundry agents only surfaced the generic tool_user_error.

    Switching Azure AI Search → Settings → Premium features → Knowledge retrieval to Standard resolved the issue.

    No changes to models, indexes, API keys, or IAM permissions were needed.

    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.