{"version":"2.1.329","anchor":"mcp-tool-errors-in-code-mode-expose-toolname","canonical_anchor":"mcp-tool-errors-in-code-mode-expose-toolname","heading":"Scripts in code mode can see which MCP tool failed","tier":"internal","area":"MCP","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329\/e\/mcp-tool-errors-in-code-mode-expose-toolname","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.329","markdown":"### Scripts in code mode can see which MCP tool failed\n\nIn code mode, errors from MCP tool calls now carry a `toolName` property naming the tool that failed\n\n**What**\n\nIn code mode, Claude writes a short script that calls MCP tools, which are extra tools provided by add-on servers. When one of those tool calls fails, the error the script receives now carries a `toolName` property naming the tool, when that name is known.\n\n**Why**\n\nA script that calls several tools can now tell which one failed.\n\n- Area: MCP\n- Names: `toolName`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}