{"version":"2.1.331","anchor":"mcp-call-gains-soft-error-result","canonical_anchor":"mcp-call-gains-soft-error-result","heading":"Programs calling MCP tools through Claude Code can get errors back as results","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/mcp-call-gains-soft-error-result","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Programs calling MCP tools through Claude Code can get errors back as results\n\nAn `mcp_call` request can now set `soft_error_result` to get a failing tool's own error result back, marked `isError: true`\n\n**What**\n\nPrograms that control Claude Code from outside, such as those built with the SDK (a library for building on top of Claude Code), can ask it to call an MCP tool with an `mcp_call` request. That request now accepts a `soft_error_result` option.\n\nWhen it is set and the tool call fails, the reply carries the tool's own error result instead of only its text. The reply is marked as a success, with `isError: true` inside. The option only works for the same kind of caller that can use `result_not_for_model`. A program can check whether Claude Code supports it by looking for `mcp_call_soft_error_result_v1`.\n\n**Why**\n\nA program can now treat a tool error as an ordinary result it can read and act on, rather than as a failed request.\n\n- Flag `tengu_ptc_enabled`: Not enough to say (read for one account on one subscription tier against v2.1.331; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: SDK\n- Names: `mcp_call`, `soft_error_result`\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}