{"version":"2.1.324","anchor":"tool-search-not-allowed-api-error-classified","canonical_anchor":"tool-search-not-allowed-api-error-classified","heading":"Claude Code recognises the error saying tool search is not allowed","tier":"internal","area":"API Errors","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/tool-search-not-allowed-api-error-classified","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Claude Code recognises the error saying tool search is not allowed\n\nA 400 error with the code tool_search_not_allowed is now recognised as its own case, after a check for the model_unsupported code\n\n**Unclear.** It is not settled what Claude Code does differently when this error arrives.\n\n**What**\n\nClaude Code now recognises a 400 error from the API with the code `tool_search_not_allowed`. A 400 error is a refusal of a request as invalid. A 400 error with the code `model_unsupported` is checked first.\n\n**Why**\n\nTool search lets Claude look up tools when it needs them. Telling this refusal apart from others lets Claude Code handle the fallback more precisely when tool search is not available.\n\n- Area: API Errors\n- Names: `tool_search_not_allowed`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}