-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
Tool schema validation errors starting January 7, 2026
Description
Starting from January 7, 2026, several tools from this MCP server are failing with schema validation errors when used with Anthropic's Claude API (via Azure). The errors specifically mention invalid $ref references in the JSON schema.
Error Examples
Tool: send-mail
Invalid $ref in schema: '#/properties/body/properties/Message/properties/bccRecipients/items'
does not exist. Ensure all $ref targets are defined in the schema's definitions or $defs.
Tool: update-calendar-event
Invalid $ref in schema: '#/properties/body/properties/attendees/items/properties/proposedNewTime/properties/end'
does not exist. Ensure all $ref targets are defined in the schema's definitions or $defs.
Exception Example
Anthropic.Exceptions.AnthropicBadRequestException: Status Code: BadRequest
{"type":"error","error":{"type":"invalid_request_error","message":"tools.3.custom.input_schema: Invalid $ref in schema: '#/properties/body/properties/attendees/items/properties/proposedNewTime/properties/end' does not exist. Ensure all $ref targets are defined in the schema's definitions or $defs.. Learn more about tool use at https://docs.claude.com/en/docs/tool-use."},"request_id":"req_011CWtKtLQAGPXHYXjkrwzQy"}
at Anthropic.AnthropicClient.Execute[T](HttpRequest`1 request, CancellationToken cancellationToken) in /home/runner/work/anthropic-sdk-csharp/anthropic-sdk-csharp/src/Anthropic/AnthropicClient.cs:line 137
at Anthropic.Services.MessageService.Create(MessageCreateParams parameters, CancellationToken cancellationToken) in /home/runner/work/anthropic-sdk-csharp/anthropic-sdk-csharp/src/Anthropic/Services/MessageService.cs:line 49
at Microsoft.Extensions.AI.AnthropicClientExtensions.AnthropicChatClient.GetResponseAsync(IEnumerable`1 messages, ChatOptions options, CancellationToken cancellationToken) in /home/runner/work/anthropic-sdk-csharp/anthropic-sdk-csharp/src/Anthropic/AnthropicClientExtensions.cs:line 156
at Microsoft.Extensions.AI.LoggingChatClient.GetResponseAsync(IEnumerable`1 messages, ChatOptions options, CancellationToken cancellationToken)
Environment
- MCP Server: Tested with both older and latest versions
- LLM Provider: Anthropic Claude (via Azure)
- Date issue started: January 7, 2026
- Previous behavior: All tools worked correctly until January 6, 2026
Observations
- The issue appears to affect multiple MS365 tools (at least
send-mailandupdate-calendar-eventconfirmed) - Other MCP servers (like DBHub) continue to work without issues
- The tools' schemas haven't changed, suggesting a change in the LLM provider's validation
Questions
- Are you experiencing similar validation errors with your deployments?
- Have you tested these tools with other LLM providers (OpenAI, etc.) recently?
- Are there plans to update the tool schemas to address stricter validation requirements?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels