AI SDK xAI 5.0.49 Fixes Missing Parameters in MCP and Search Tool Calls

AI SDK's @ai-sdk/xai 5.0.49 fixes cleared parameters in MCP and xSearch tool calls.
The AI SDK's xAI adapter package @ai-sdk/xai has released patch 5.0.49, auto-published by GitHub Actions with 7 commits. It fixes lost tool-call parameters: MCP calls previously replaced parameters with an empty object in the input field, and xSearch had the same issue. After the fix, both faithfully reflect model-sent parameters, restoring logs, auditing, tracing, and replay. The article notes that though a small patch, tool-call parameters are core to Agent apps, and losing them raises troubleshooting costs; MCP/xSearch users should upgrade and verify the input field, while others face low urgency though staying in sync still helps.

The AI SDK's xAI adapter package @ai-sdk/xai has released version 5.0.49. This is a patch-level update, automatically published by GitHub Actions, containing 7 commits. Its core purpose is to fix the issue of parameters being lost in tool calls—particularly for MCP and xSearch tools.
Two Key Fixes: Parameters Are No Longer Cleared
MCP Tool Calls Preserve Original Parameters
The first issue was with MCP (Model Context Protocol) tool calls. Previously, when the model initiated an MCP tool call, the passed parameters were not correctly preserved in the call's input field but were instead replaced with an empty object. This caused downstream applications to receive call records lacking the actual operation parameters, creating obstacles for debugging and auditing.
5.0.49 writes the MCP call parameters back into the input field. For developers building Agents or tool-calling chains with the AI SDK, this means the context of tool calls becomes complete, and logs and replays can restore the actual input content.
MCP (Model Context Protocol) is a standardized protocol proposed and open-sourced by Anthropic, designed to let large language models connect to external tools, data sources, and services in a unified way. It abstracts capabilities such as "tools," "resources," and "prompt templates" into interfaces that can be discovered and invoked, with clients (such as the adapter layer in the AI SDK) communicating with MCP servers via JSON-RPC. In tool-calling scenarios, the call request returned by the model contains the tool name and a parameter object, and the protocol requires this parameter object to be passed through the entire call chain intact.
As an upper-layer wrapper, the AI SDK registers MCP server tools in the standard tool-calling format, so the framework layer's correctness in handling the input field directly affects all Agents built on MCP. Although cleared parameters do not block the call itself, they break the integrity of call records and also disable downstream logic that relies on parameters for routing, caching, or permission decisions.
xSearch Search Parameters Also Fixed
The second fix targets the xSearch tool. Similar to the MCP issue, search-type tool calls previously did not preserve search parameters in input but returned an empty object. The value of search tools depends heavily on query conditions, and lost parameters render call records meaningless.
This fix restores completeness on the input side of search calls. Both changes point to the same pattern: the input field of a tool call should faithfully reflect the parameters sent by the model, rather than being cleared by the framework layer.
Why a Patch Version Is Worth Attention
Judging by the version number, 5.0.49 is a patch update with a limited scope of changes. But lost tool-call parameters are a functional defect that affects observability and debuggability. In Agent applications, tool calls are often the core path, and call parameters are the first-hand material for troubleshooting. When parameters are cleared, developers can only see "what tool was called" but not "with what parameters," significantly raising the cost of pinpointing issues.
This type of fix also reflects the AI SDK's ongoing refinement of the tool-calling protocol. MCP and xSearch represent the general tool protocol and the search scenario respectively, and the consistent fix for parameter preservation in both shows that the maintainers are unifying the input-handling logic for tool calls.
Under the Semantic Versioning (SemVer) system, the patch number (third digit) is typically used only for backward-compatible bug fixes and does not introduce new APIs or breaking changes. But "patch-level" only describes the compatibility of the change—it does not equate to low impact: a fix that changes just a few lines, if it touches core data structures like tool-call parameters, can have a greater real-world impact than some features added in minor versions.
To judge whether a release needs to be upgraded to promptly, two dimensions can be considered: first, whether the change falls on code paths you actually use; second, whether the defect affects observability, data correctness, or security. This fix falls into the latter category—lost parameters do not crash the program, but they distort logs, traces, and replay data. Such "silent errors" are often harder to troubleshoot than explicit errors, so for projects relying on MCP or xSearch, patch versions are equally worth prioritizing.
Upgrade Recommendations
If you are using @ai-sdk/xai and rely on MCP or xSearch tools, it is recommended to upgrade to 5.0.49. After upgrading, you can check whether the input field of tool calls now contains complete parameters, and verify whether existing logging, tracing, or replay workflows have returned to normal.
This release was completed automatically by github-actions, with commits verified by GitHub signatures, following the routine patch maintenance cadence. For developers not yet using the above tools, the urgency to upgrade is low, but keeping versions in sync still helps avoid compatibility issues between subsequent versions.
One-line Summary
AI SDK's @ai-sdk/xai 5.0.49 fixes the issue of tool-call parameters being cleared for MCP and xSearch.
Paragraph Summary
The AI SDK's xAI adapter package @ai-sdk/xai has released patch version 5.0.49, automatically published by GitHub Actions and containing 7 commits. This update focuses on fixing the defect of lost parameters in tool calls: previously, MCP tool-call parameters were not preserved in the input field and were replaced with an empty object, and the xSearch search tool call had the same problem. After the fix, the input field of both call types faithfully reflects the parameters sent by the model, restoring the completeness of logs, auditing, tracing, and replay. The article notes that although the patch version is small, tool-call parameters are a core path in Agent applications, and lost parameters significantly raise the cost of troubleshooting; developers using MCP or xSearch are advised to upgrade and verify the input field, while developers not using these tools have low urgency but keeping versions in sync still has value.
Related articles

Nothing CMF Buds 2A Drops to $17.89 on Black Friday: A New Low for ANC Earbuds
Nothing CMF Buds 2A wireless earbuds Black Friday deal: just $17.89 on Amazon, about $11 off retail and a record low. ANC earbuds at an entry-level price.

When AI Creation Gets Accused of "Spitting": Hacker News Heats Up Over the Glaude Controversy
A Hacker News post, "Spitting in the Face of Glaude," sparks debate on AI creation transparency and attribution ethics. This analysis examines the blurred creator identity behind the controversy and offers practical advice for AI content production.

Akai Embraces Custom Firmware: MPC Sample 1.4 Lets Users AI-Program Their Sampler
Akai embraces the modding community with MPC Sample 1.4 firmware, supporting vibe-coded custom firmware and effects. We analyze the impact of this open strategy on music hardware and AI-assisted programming.