LangSmith Tool Gateway entered public beta on November 19, 2026, offering a managed layer that handles credentials, identity and access for every tool call an AI agent makes. For teams that let agents write to databases, open tickets or change configurations, it adds a single place to decide who can do what, and a record of what happened. This guide walks through the setup, the approval and deny policies, and the difference between traces and audit logs.
Step 1: Add Your Tool Servers
Start in LangSmith's Tools area. You can add a server in one of two ways: register the URL of an MCP server, or enable a built-in server. Model Context Protocol, or MCP, is the standard that lets agents discover and call tools, so most teams will register servers they already use.
Next, connect an account for each tool. Depending on the service, you either sign in or save an API key. Credentials are stored and managed by the gateway rather than scattered across agent code, which is the first security benefit. A team can rotate or revoke a key in one place instead of hunting through repositories.
Step 2: Build a Kit and Point Your Client at It
A kit is a bundle of the tools your agent needs. Build one kit per agent or per workflow, so that each agent sees only the tools it should use. When the kit is ready, the gateway gives you one MCP URL for it.
Point your MCP client at that kit URL. The gateway says it works with any MCP-compatible client and names LangChain, Deep Agents, Claude Code and Cursor among the supported options. Because every client connects through the same URL, you do not have to reconfigure each tool individually.
Keeping kits narrow is good practice. An agent that can read a single database table is easier to govern than one that can reach everything the company owns. Think of the kit as the permission boundary for the agent, not just a convenience.
Step 3: Add Approval Policies for Sensitive Actions
Approval policies pause a sensitive tool call and ask a user to confirm it in their MCP client before it runs. The example in LangChain's launch post is requiring human review before an agent writes to a data warehouse. Reads can often run freely, while writes, deletions and payments can wait for a person.
A practical rule is to require approval for anything that changes state outside the agent's own sandbox. Start with a short list of high-risk tools, watch how often approvals are requested, and widen or narrow the list based on what you see. Approval fatigue is real, so an overly broad policy can teach people to click through prompts without reading them.
Step 4: Set Deny Policies for Access Control
Deny policies block tool use for a specific user, a service key, or a combination of both. They can also apply to everyone except a list of exceptions. Admins can set them at the organization or workspace level, which is useful when a particular team should not use a given integration at all.
Deny policies are the blunt instrument, so use them for clear boundaries rather than everyday control. The launch material indicates that access to deny policies is not fully self-service during the beta, so teams that need them should speak with LangChain before planning a rollout.
Step 5: Read Traces and Audit Logs Correctly
Every tool call creates a trace. Traces record the tool's name, the server, the tool kit if one was used, whose credential was used, the outcome, any policy that blocked the call, and how long it took. The possible outcomes include success, tool error, needs credential, failed and blocked by policy. Traces appear in the agent's project, and a workspace-wide view is available for gateway runs.
One detail is important for privacy. According to LangChain's documentation, traces never contain the tool's arguments or results. You can see that a call happened, who made it and whether it worked, without storing the sensitive content passed to the tool. That is useful for compliance, but it also means debugging a failed call may require checking the tool's own logs.
Audit logs are a different record. They are organization-level, showing who acted, when, which operation ran, and whether it succeeded. They also cover changes to servers, tool kits, profiles, identity provider links and policies. The documentation says audit logs require an Enterprise plan, and viewing them requires the Organization Admin or Organization Operator role.
Common Mistakes to Avoid
- Treating traces as audit logs: traces show what an agent did in a run, while audit logs show organization-level changes and access. Compliance teams will need the second.
- Skipping approvals for writes: a read-only agent is easy to govern, but any write access should have a human checkpoint at the start.
- Building one giant kit: a broad kit defeats the purpose of access boundaries and makes approvals harder to reason about.
- Assuming beta features are final: LangChain describes Tool Gateway as in beta, so plan terms and features may change.
Why It Matters
Agents become useful when they can act, and risky when they act without oversight. A gateway that centralizes credentials, approvals and logs addresses the most common weaknesses in agent deployments: keys scattered across code, tools reachable by mistake, and no record of who did what. It is not a complete security program, but it gives teams a consistent place to enforce rules.
Start small. Connect one non-critical tool, add an approval policy for its write actions, and confirm that the trace and audit records show what you expect. Once that works, expand to more agents. The teams that get agent governance right early will spend less time fixing incidents later.
