{"record":{"id":"5e177de3ce8763c6","repo":"BerriAI/litellm","slug":"no-override-found-for-tool-tool-name-with-the","errorCode":null,"errorMessage":"No override found for tool '{tool_name}' with the given scope","messagePattern":"No override found for tool '(.+?)' with the given scope","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/management_endpoints/tool_management_endpoints.py","lineNumber":747,"sourceCode":"            detail=\"Provide either team_id or key_hash, not both\",\n        )\n    try:\n        if key_hash is not None:\n            op_id = await _resolve_key_hash_to_object_permission_id(prisma_client, key_hash)\n        else:\n            op_id = await _resolve_team_id_to_object_permission_id(prisma_client, team_id or \"\")\n        if op_id is None:\n            raise HTTPException(\n                status_code=404,\n                detail=\"Key or team not found for the given identifier\",\n            )\n        deleted: Final = await remove_tool_from_object_permission_blocked(\n            prisma_client=prisma_client,\n            object_permission_id=op_id,\n            tool_name=tool_name,\n        )\n        if not deleted:\n            raise HTTPException(\n                status_code=404,\n                detail=f\"No override found for tool '{tool_name}' with the given scope\",\n            )\n        registry: Final = get_tool_policy_registry()\n        if registry.is_initialized():\n            await registry.sync_tool_policy_from_db(prisma_client)\n        return {\"deleted\": True, \"tool_name\": tool_name}\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.exception(\"Error deleting tool policy override: %s\", e)\n        raise HTTPException(status_code=500, detail=str(e))\n","sourceCodeStart":729,"sourceCodeEnd":760,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/tool_management_endpoints.py#L729-L760","documentation":"Error \"No override found for tool '{tool_name}' with the given scope\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/tool_management_endpoints.py:747 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify an override exists for the tool name and given team_id/key_hash scope before deleting."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}