{"record":{"id":"1f59c3eedda4e541","repo":"langchain-ai/langgraph","slug":"missing-tools-missing-tools-in-the-model-bind","errorCode":null,"errorMessage":"Missing tools '{missing_tools}' in the model.bind_tools()","messagePattern":"Missing tools '(.+?)' in the model\\.bind_tools\\(\\)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py","lineNumber":215,"sourceCode":"        )\n\n    tool_names = set(tool.name for tool in tools)\n    bound_tool_names = set()\n    for bound_tool in bound_tools:\n        # OpenAI-style tool\n        if bound_tool.get(\"type\") == \"function\":\n            bound_tool_name = bound_tool[\"function\"][\"name\"]\n        # Anthropic-style tool\n        elif bound_tool.get(\"name\"):\n            bound_tool_name = bound_tool[\"name\"]\n        else:\n            # unknown tool type so we'll ignore it\n            continue\n\n        bound_tool_names.add(bound_tool_name)\n\n    if missing_tools := tool_names - bound_tool_names:\n        raise ValueError(f\"Missing tools '{missing_tools}' in the model.bind_tools()\")\n\n    return False\n\n\ndef _get_model(model: LanguageModelLike) -> BaseChatModel:\n    \"\"\"Get the underlying model from a RunnableBinding or return the model itself.\"\"\"\n    if isinstance(model, RunnableSequence):\n        model = next(\n            (\n                step\n                for step in model.steps\n                if isinstance(step, (RunnableBinding, BaseChatModel))\n            ),\n            model,\n        )\n\n    if isinstance(model, RunnableBinding):\n        model = model.bound","sourceCodeStart":197,"sourceCodeEnd":233,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py#L197-L233","documentation":"Error \"Missing tools '{missing_tools}' in the model.bind_tools()\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py:215 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}