LibreChat/packages
Serhii Zghama 7f0fde2d98
🪨 fix: Normalize Empty MCP Tool Descriptions to undefined for Bedrock Compat. (#13217)
* fix(agents): normalize empty MCP tool descriptions to undefined

MCP servers (e.g. Asana MCP) can return tools with an empty string
description. AWS Bedrock's converse API rejects toolSpec.description
with length < 1, so any empty-description MCP tool caused the entire
request to fail with a validation error.

Convert empty strings to undefined at the two sites in
loadToolDefinitions where MCP tool definitions are built. An undefined
description is omitted from JSON serialization, so Bedrock never sees
the empty value. OpenAI and Anthropic direct APIs are unaffected.

Fixes #13209

* test(agents): add coverage for empty MCP tool description normalization

Verify that loadToolDefinitions converts '' descriptions to undefined
for both the sys__all__sys pattern and directly named MCP tools.
2026-05-23 09:43:40 -04:00
..
api 🪨 fix: Normalize Empty MCP Tool Descriptions to undefined for Bedrock Compat. (#13217) 2026-05-23 09:43:40 -04:00
client v0.8.6-rc1 (#13094) 2026-05-12 21:40:23 -04:00
data-provider 🆔 feat: Built-in Build Metadata for Support Triage (#12756) 2026-05-23 09:41:13 -04:00
data-schemas 🪪 fix: Prevent MCP Server Name Collisions (#13256) 2026-05-22 20:46:14 -04:00