# Managed Deep Agents - Tools
<!--
ref: @content/youtube/langchain/managed-deep-agents-tools
tags: [managed deep agents, custom tools, tool decorators, docstrings as schemas, built-in tools, agent tracing, Python agents]
version: 2
updated_at: 2026-11-24T07:10:25.572Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=piBwvWgHqkY)**

# Managed Deep Agents - Tools

*Synthesized from LangChain, 2026-08-19; speakers are not named in the source.*

The presenter is not named in the transcript. The video is a LangChain tutorial and follows on from a quickstart video in the same series.

## Core Thesis
Tools are how an agent acts on the outside world, and custom tools are simply Python functions. Adding one to a managed Deep Agent takes a decorator, a function signature and a docstring, because the agent reads those three things to decide when and how to call the tool.

## Key Insights
- **Built-in versus custom tools.** The quickstart gave the agent a built-in internet search tool supplied by the model provider. Custom tools cover databases or APIs the provider does not know about.
- **Anatomy of a tool.** The `@tool` decorator from LangChain's tools module turns a function into a tool. The function name becomes the tool name, the parameters are what the model fills in, and the docstring becomes the tool description.
- **Docstring parsing.** The presenter says `parse_docstring` set to true passes the docstring to the model with parameter types and descriptions, so the docstring is part of the tool's interface.
- **Worked example.** A mock `lookup_customer` function lives in a `tools/lookup.py` file. It is imported into the agent file and passed in. Asking the agent for customer 123 returned "customer 123 on the enterprise plan."
- **Built-in infrastructure tools.** The agent also lists file-workspace search, file read and write tools, a task tool for launching sub-agents, and a parallel-tools wrapper.
- **Tracing.** The first model call in the trace shows exactly which tools and descriptions the model received.
- **Launch command.** The presenter starts the agent with a dev command, which the transcript spells "MDA dev"; the spelling is uncertain.

## Actionable Takeaways
1. Write a docstring for every custom tool. The model uses it to decide when and how to call the tool.
2. Keep each tool in its own file, decorate it with `@tool`, and import it into the agent file.
3. Check the first model call in the trace to see what the model received, and fix any inaccurate tool descriptions if the model misuses a tool.

## Notable Quotes
> "Tools are essentially what enables an agent to do something." — the presenter (not named in the source)

> "It is also required by the LLM to know how to use the tool." — the presenter (not named in the source)

> "If the model is using the tool incorrectly, you may be describing it inaccurately." — the presenter (not named in the source)

---

*Related: `@content/youtube/langchain/build-a-social-media-agent-with-managed-deep-agents`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*