BerriAI/litellm · error · HTTPException
No override found for tool '{tool_name}' with the given scop
Error message
No override found for tool '{tool_name}' with the given scope What it means
Error "No override found for tool '{tool_name}' with the given scope" thrown in BerriAI/litellm.
Source
Thrown at litellm/proxy/management_endpoints/tool_management_endpoints.py:747
detail="Provide either team_id or key_hash, not both",
)
try:
if key_hash is not None:
op_id = await _resolve_key_hash_to_object_permission_id(prisma_client, key_hash)
else:
op_id = await _resolve_team_id_to_object_permission_id(prisma_client, team_id or "")
if op_id is None:
raise HTTPException(
status_code=404,
detail="Key or team not found for the given identifier",
)
deleted: Final = await remove_tool_from_object_permission_blocked(
prisma_client=prisma_client,
object_permission_id=op_id,
tool_name=tool_name,
)
if not deleted:
raise HTTPException(
status_code=404,
detail=f"No override found for tool '{tool_name}' with the given scope",
)
registry: Final = get_tool_policy_registry()
if registry.is_initialized():
await registry.sync_tool_policy_from_db(prisma_client)
return {"deleted": True, "tool_name": tool_name}
except HTTPException:
raise
except Exception as e:
verbose_proxy_logger.exception("Error deleting tool policy override: %s", e)
raise HTTPException(status_code=500, detail=str(e))
View on GitHub (pinned to 77b7c6c40c)
Solutions
- Verify an override exists for the tool name and given team_id/key_hash scope before deleting.
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/tool_management_endpoints.py:747 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/5e177de3ce8763c6.
Report an issue: GitHub.