nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

langchain/Tools

Give an LLM the ability to actually do things instead of only talking about them.

18 QuestionsIntermediateHigh Priority ~12 min read

A tool gives a language model access to an external capability. That could be a database lookup, API call, calculator, search function, code execution environment, or any custom function your application provides.

The model decides when a tool is useful and provides the required arguments, while your application actually executes the tool. Good tool design matters because clear names, descriptions, input schemas, and safe behavior help the model choose and use tools correctly.

What you'll walk away knowing

What tools are in LangChain
How models decide when to call tools
How tool input schemas work
How to design tools that are reliable and safe for agents
1What is the difference between tool_choice: "auto", "required", and "none" when binding tools to an LLM?Intermediate2How do you implement tool call caching to avoid redundant API calls for identical inputs?Intermediate3How do you build a Toolkit (grouped set of related tools) using BaseToolkit?Intermediate4How do you wrap a REST API call with auth headers inside a Tool in TypeScript?Intermediate5How do you build stateful tools that read/write to a database across multiple agent turns?Advanced6What is the difference between the tool() helper, DynamicTool, and StructuredTool class?Intermediate7What is a Tool in LangChain and how does it differ from a plain function or API call?Intermediate8How do you stream tool call results back to the client in real time?Advanced9How do you create a human-in-the-loop tool that pauses the agent and waits for user approval before executing?Intermediate10How do you validate and sanitize tool output before it is passed back to the LLM?Intermediate11How do you prevent tool abuse or infinite loops where an agent keeps calling the same tool repeatedly?Intermediate12How do you implement dynamic tool loading — where the set of available tools changes based on user role or session state?Advanced13How do you handle async errors and retries inside a Tool without crashing the agent loop?Intermediate14How do you pass runtime context (userId, authToken, DB connection) into a Tool using RunnableConfig?Intermediate15How do you implement parallel tool calling — when the LLM decides to call multiple tools simultaneously?Advanced16What is the role of Zod schema in tool definitions and how does it map to OpenAI's function calling spec?Intermediate17How do you unit test and mock tools in isolation without invoking the LLM?Intermediate18What are the token cost implications of registering too many tools and how do you mitigate it?Intermediate19What is a ToolNode in LangGraph and how does it differ from calling a tool manually inside a graph node?Intermediate20How do you implement tool-level authorization — allowing certain tools only for certain users?Intermediate21How do you design a multi-agent system where one agent's tool is actually another agent (agent-as-tool pattern)?Advanced22How does LangGraph's ToolNode handle tool call errors and surface them back into the message state?Advanced23How do you trace and observe tool call latency in production using LangSmith?Advanced24How does an LLM decide which tool to call — what role does the tool description play?Intermediate
All Topics
1
Basics
Models
Messages
2
Agents
Tools
Middleware
Memory
3
MCP
Multi Agents
Human in the loop
4
RAG
Context Engineering
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.