{"version":"2.1.328","anchor":"mcp-hooks-gain-an-onfailure-option","canonical_anchor":"mcp-hooks-gain-an-onfailure-option","heading":"MCP tool hooks can block the action when the hook itself fails","tier":"use","area":"Hooks","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/mcp-hooks-gain-an-onfailure-option","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### MCP tool hooks can block the action when the hook itself fails\n\nHooks that call an MCP tool take a new `onFailure` setting: `continue` lets the action go ahead, `block` stops it when the call fails\n\n**What**\n\nA hook is a check you set up that runs at a set moment, for example before Claude uses a tool. Some hooks call an MCP tool, a tool provided by an add-on server. Those hooks now take an `onFailure` setting. It decides what happens when the hook's call fails, for example because its MCP server is not connected or not signed in:\n\n- `continue` is the default and lets the action go ahead.\n\n- `block` stops the guarded action every time the call fails.\n\nAny other value is treated as `block`.\n\n**Why**\n\nYou can now make a safety hook strict. With `block`, an action the hook guards cannot slip through just because the server behind the hook was unavailable.\n\n- Area: Hooks\n- Names: `onFailure`, `mcp_tool`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}