tools configuration surface. Define LangChain tools in your project, import them into agent.py or agent.ts, and pass them to define_deep_agent or defineDeepAgent.
Managed Deep Agents is in private beta, available on LangSmith Cloud in the US region only. Join the waitlist to request access.
Authored tools and connector tools
Managed Deep Agents can use two kinds of tools:
Use authored tools for business logic, private APIs, database access, and other code that belongs in your agent project. Use MCP connectors when the tool surface is exposed by a remote MCP server.
For more about LangChain tool definitions, see Tools.
Add a tool module
Put custom tool code undertools/ in your project and import it from the agent entry. For the full project layout, see the CLI project file reference.
Attach tools to the agent
Import the tools into the project-root agent entry and pass them in thetools list.
mda dev and mda deploy copy the project files into the compiled build. Your imports should work the same way they do in a normal local Python or TypeScript project.
Use secrets and context
Tools can read deployment secrets from environment variables. Put local values in.env for mda dev; mda deploy forwards non-reserved .env values as hosted deployment secrets.
When the project declares identity, tools and middleware receive a frozen runtime.identity envelope for the authenticated caller. Prefer that over client-supplied configurable keys for actor or tenant ids.
For other per-run values such as request metadata or feature flags, use the normal LangChain runtime context patterns for tools. See how to access context from within your tools.
Test and deploy
Test the project locally withmda dev, then deploy it with mda deploy. Open deployment traces in LangSmith to inspect model calls, tool calls, errors, and latency.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

