attach_tool
Add tools to agents in the Letta system by ID or name, automatically registering MCP tools when needed for enhanced functionality.
Instructions
Attach one or more tools (by ID or name) to an agent. If a name corresponds to an MCP tool not yet in Letta, it will be registered first. Find tools with list_mcp_tools_by_server or create custom ones with upload_tool. Use list_agent_tools to verify attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The ID of the agent to attach the tool(s) to. | |
| tool_id | No | The ID of a single tool to attach (deprecated, use tool_ids or tool_names instead). | |
| tool_ids | No | Optional array of existing Letta tool IDs to attach. | |
| tool_names | No | Optional array of tool names to attach. These can be existing Letta tools or MCP tools (which will be registered if found). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| success | Yes | ||
| attached_tools | No | List of tool IDs that were successfully attached |