Tool
A software tool is a capability or utility that enables a person or system to perform a defined task or operation.
Grokking AI Applications
An external callable capability that an AI application or agent can invoke to perform an operation or access information.
- How it is used
- Extends LLM applications with callable operations for retrieving information and taking actions.
- How deep it goes
- Defines tool descriptions and traces selection, execution, and returned results through an agent loop, then demonstrates a calculator flow.
- Examples
- Uses a calculator agent and a thermostat-and-lighting sequence to illustrate tool calls and results.
- What you can do after
- Apply tools via Langflow by enabling Tool Mode and equipping an agent with a calculator.
Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
A tool is a reusable, self-contained unit that performs a focused task and can be composed with other tools.
- How it is used
- Deploys focused PowerShell commands as reusable building blocks for automation workflows and business processes.
- How deep it goes
- Explains responsibility, parameters, pipeline composition, object output, naming, testing, modules, and separation from controllers.
- Examples
- Uses password-expiration pipelines, user provisioning, service changes, machine information, and help-desk interfaces as practical examples.
- What you can do after
- Build it from scratch as a scoped PowerShell function or module that accepts flexible input, returns objects, and composes with controllers.
AI Agents in Action, Second Edition
- How it is used
- Uses tools to give assistants and agents capabilities for acting, retrieving context, and completing tasks.
- How deep it goes
- Explains tool registration, categories, chaining, and design guidelines, including failure handling and tool-set size.
- Examples
- Uses research-source lookup, order-status validation, and image generation to illustrate tool use.
- What you can do after
- Apply it via the OpenAI Agents SDK to register a function tool and handle its failures.
Read how AI Agents in Action, Second Edition explains tool →
Data Analysis with LLMs
A tool is a callable software function whose interface is described in natural language so that a language model can invoke it.
- How it is used
- Lets agents choose and invoke functions to answer questions requiring database access, web search, calculation, or multiple processing steps.
- How deep it goes
- Defines tool invocation, traces database-tool calls, and shows how to expose a typed Python function with LangChain’s @tool decorator.
- Examples
- Uses a game-sales database and web search for a mixed-source question, then adds a currency-converter function.
- What you can do after
- Apply it via LangChain to load standard tools, create a SQL agent, or add a custom @tool function.
Spring AI in Action
A tool is a callable capability that allows an AI model or application to obtain data or perform an action through external functionality.
- How it is used
- Connects an LLM to real-time application data and actions when prompts require information unavailable from model training or RAG.
- How deep it goes
- Explains definitions, Java implementations, registration scope, provider interaction, message turns, and MCP exposure.
- Examples
- Demonstrates current time by city, board-game complexity from a database, and MCP methods for counting and filtering games.
- What you can do after
- Build it from scratch with Spring AI by defining, registering, testing, and tracing tools used during model interactions.
The Art of AI Product Development
A tool is a software capability that an AI system can invoke to retrieve information, communicate, execute operations, or affect an external system.
- How it is used
- Enables language-model agents to retrieve information, use external capabilities, and act in multistep workflows.
- How deep it goes
- Explains tool categories, function calling, selection descriptions, integration risks, and a lean sizing rule without detailed implementation code.
- Examples
- Uses product research, review analysis, roadmap updates, database queries, and email to illustrate tool capabilities.
- What you can do after
- Evaluate tool integrations by weighing capability against complexity, reliability, safety, and the risks of write access.
Build AI-Enhanced Web Apps
A tool is an externally invocable software capability that an AI workflow can call to perform an operation or obtain information.
- How it is used
- Extends AI assistants with callable external operations and information sources.
- How deep it goes
- Explains registration, invocation, client-server transport, and error handling through JavaScript integrations.
- Examples
- Uses Wikipedia search and a joke-fetching API to demonstrate agent and MCP tools.
- What you can do after
- Apply it via LangChain.js or the Vercel AI SDK to integrate callable tools into an assistant.
LLMs in Production
A tool is an external software capability or service that a language model can invoke to perform operations or access information.
- How it is used
- Gives models external capabilities for current information, computation, and agent actions.
- How deep it goes
- Explains tagged calls and framework-managed execution, then demonstrates arithmetic and search tools and agent use.
- Examples
- Uses arithmetic functions, DuckDuckGo and YouTube searches, and a Python REPL agent to illustrate tools.
- What you can do after
- Apply tools via Guidance or LangChain to arithmetic, search, and agent tasks.
AI Agents and Applications
- How it is used
- Equips agents to retrieve information and perform actions as they adapt to a task.
- How deep it goes
- Works through tool registration and calling, from a single retriever to combined local and remote tools.
- Examples
- Uses a Wikivoyage destination search and an AccuWeather MCP tool in a travel assistant.
- What you can do after
- Builds a tool-calling protocol from scratch and applies tools through LangGraph.
Build Python Web Apps with Streamlit
A tool is a callable software interface that an application or language model can invoke with structured parameters to perform an operation or retrieve information.
- How it is used
- Deploys callable functions or APIs so an agent can retrieve information and perform real-world actions during a conversation.
- How deep it goes
- Defines interfaces, examples, registration, and graph routing, while leaving function implementation details outside the focus.
- Examples
- Demonstrates user lookup, order lookup, status retrieval, and cancellation using static customer and order data.
- What you can do after
- Build it from scratch as documented functions, register it with an agent, and route model requests through tool execution.
Read how Build Python Web Apps with Streamlit explains tool →
AI Agents in Action
A tool is an external or internal capability that an agent invokes to perform an operation or obtain information.
- How it is used
- Extends agents with capabilities for executing tasks, obtaining information, and checking generated output.
- How deep it goes
- Explains tool roles and walks through skill configuration and custom-action registration, including Python examples.
- Examples
- Uses image generation and inspection, plus a Python action that saves content to a file.
- What you can do after
- Apply it via AutoGen Studio to create and attach an image-inspection skill, or configure a Playground assistant with custom actions.
Hugging Face in Action
A tool is an executable capability that an agent or language-model application can invoke to perform a task or access external functionality.
- How it is used
- Extends agents and language-model applications with executable access to search, APIs, files, computation, and other external functionality.
- How deep it goes
- Defines interfaces, wrapping, descriptions, execution flow, MCP registration, and testing, but stops short of implementation internals.
- Examples
- Demonstrates SerpAPI search, weather retrieval, temperature conversion, PDF and text access, and election lookup.
- What you can do after
- Build it from scratch by registering MCP functions, or apply it through LangChain and LangGraph agent APIs.
AI Agents for Offensive Security
An external software capability that an agent can call to perform an action or obtain an effect outside the language model.
- How it is used
- Enables agents to turn reasoning into controlled external actions within goal-driven security workflows.
- How deep it goes
- Defines a Python tool contract and demonstrates two chained implementations, deferring frameworks, memory, and advanced orchestration.
- Examples
- Demonstrates URL extraction and URL summarization through two Tool subclasses linked by an artifact.
- What you can do after
- Build it from scratch via a named Python Tool interface with structured inputs, outputs, and artifact logging.
Context Engineering
A tool is a callable capability outside a language model that an AI system can use to obtain information or perform an operation.
- How it is used
- Enables agents to retrieve external information and take actions during the agent loop.
- How deep it goes
- Explains tool context flow and details MCP tool definitions, execution, and namespacing.
- Examples
- Illustrates filesystem listing, reading, and writing through MCP tools.
- What you can do after
- Evaluate tool-access approaches and identify controls for external actions.
Build a Multi-Agent System (from Scratch)
A tool is an externally executable capability that an LLM agent can invoke to perform an operation or obtain information.
- How it is used
- Enables agents to execute an LLM’s intended actions and return results for synthesis.
- How deep it goes
- Defines a BaseTool interface, call data structures, and synchronous, asynchronous, and Pydantic-backed function wrappers.
- Examples
- Uses web search, plotting, code execution, file reading, and Trello operations as tool examples.
- What you can do after
- Build tools from Python functions using synchronous, asynchronous, or Pydantic-backed framework interfaces.
Read how Build a Multi-Agent System (from Scratch) explains tool →
Digital Twins in Action
An agent tool is a callable function or external resource that an AI agent invokes to obtain information or affect an external system.
- How it is used
- Uses tools to supply a home digital twin agent with external readings for power optimization.
- How deep it goes
- Defines tools and demonstrates a decorated function, its documentation, and its place in the agent loop.
- Examples
- Uses solar inverter, weather forecast, and indoor-environment data tools as examples.
- What you can do after
- Apply tools via the Strands SDK to retrieve external data for an agent.
Building LLM Applications with DSPy
An invocable software capability that performs an operation on behalf of an application or agent.
- How it is used
- Enables agents to carry out external operations that answer user requests, extending language-model reasoning into action.
- How deep it goes
- Defines tools by their role in agent execution and names common operations, but gives no interface or implementation details.
- Examples
- Names API calls, software execution, database updates, emails, purchases, and appointment scheduling as agent actions.
- What you can do after
- Understand how to pair language-model planning with executable actions in an agent.
Read how Building LLM Applications with DSPy explains tool →
Also covered in
- How Large Language Models Work
- Developer Experience on KubernetesIn early access (MEAP)
- Learn AI-Assisted Python Programming, Second Edition
- Agent Design PatternsIn early access (MEAP)
- Designing AI SystemsIn early access (MEAP)
- Introduction to Generative AI, Second Edition
- Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
- Learn Generative AI with PyTorch
- Knowledge Graphs and LLMs in Action
- Design for Developers
- Software Testing with Generative AI
- Financial AI in Practice
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- contractA contract is an agreed specification of the conditions, expectations, rights, or obligations that govern behavior or interactions between parties or software components.
- promptA prompt is text or other input supplied to an AI model to provide instructions, context, or other information that guides its response or generated output.
- AI agentAn AI agent is a computational system that uses artificial intelligence to interpret information and select or perform actions toward goals while interacting with an environment.
Related concepts
- AI agentused by · An AI agent is a computational system that uses artificial intelligence to interpret information and select or perform actions toward goals while interacting with an environment.
- MCP resourcecontrasts with · An MCP resource is a URI-addressable source of data or content that a server exposes through the Model Context Protocol for clients to access.
- MCPconfigured by · The Model Context Protocol is an open standard that defines how AI applications connect with external tools, data sources, and other contextual resources.
- agent skillused by · An agent skill is a reusable package of instructions, capabilities, or resources that guides an AI agent in carrying out a task or workflow.
- functionkind of · A function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
- subagentused by · A subagent is an agent assigned by another agent to perform a delegated part of a larger task under its coordination or authority.
Questions about tool
What is tool?
A software tool is a capability or utility that enables a person or system to perform a defined task or operation.
Which Manning books explain tool?
Grokking AI Applications, Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools, AI Agents in Action, Second Edition, Data Analysis with LLMs, Spring AI in Action, The Art of AI Product Development, Build AI-Enhanced Web Apps, LLMs in Production and 9 more.
What should I know before learning tool?
Manning books that teach tool usually introduce language model, contract, prompt and AI agent first.
What is the difference between tool and MCP resource?
A software tool is a capability or utility that enables a person or system to perform a defined task or operation. An MCP resource is a URI-addressable source of data or content that a server exposes through the Model Context Protocol for clients to access.
What is tool a kind of?
Tool is a kind of function. A function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
















