langchain-ai/langgraph · error · ValueError
Missing tools ' ' in the model.bind_tools()
Error message
Missing tools '{missing_tools}' in the model.bind_tools() What it means
Raised by create_react_agent validation when some tools passed via the tools argument are absent from the model's bind_tools() list. The model must know every tool the agent can execute so it can emit valid tool calls.
Solutions
- Bind all tools on the model: model.bind_tools(tools)
- Remove the extra tools from the tools argument
- Use create_react_agent(model, tools) without manual bind_tools so binding is automatic
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:215 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/1f59c3eedda4e541.
Report an issue: GitHub.
Appendix: source
Thrown at libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:215
)
tool_names = set(tool.name for tool in tools)
bound_tool_names = set()
for bound_tool in bound_tools:
# OpenAI-style tool
if bound_tool.get("type") == "function":
bound_tool_name = bound_tool["function"]["name"]
# Anthropic-style tool
elif bound_tool.get("name"):
bound_tool_name = bound_tool["name"]
else:
# unknown tool type so we'll ignore it
continue
bound_tool_names.add(bound_tool_name)
if missing_tools := tool_names - bound_tool_names:
raise ValueError(f"Missing tools '{missing_tools}' in the model.bind_tools()")
return False
def _get_model(model: LanguageModelLike) -> BaseChatModel:
"""Get the underlying model from a RunnableBinding or return the model itself."""
if isinstance(model, RunnableSequence):
model = next(
(
step
for step in model.steps
if isinstance(step, (RunnableBinding, BaseChatModel))
),
model,
)
if isinstance(model, RunnableBinding):
model = model.boundView on GitHub (pinned to 38031739e5)