Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LETTA_BASE_URLYesYour Letta API URL
LETTA_PASSWORDYesYour Letta API password

Tools

Functions exposed to the LLM to take actions

NameDescription
list_agents

List all available agents in the Letta system. Use with create_agent to add new ones, get_agent_summary for details, or prompt_agent to interact with them.

prompt_agent

Send a message to an agent and get a response. Ensure the agent has necessary tools attached (see attach_tool) first. Use list_agents to find agent IDs.

list_agent_tools

List all tools available for a specific agent. Use attach_tool to add more tools or list_mcp_tools_by_server to discover available tools.

create_agent

Create a new Letta agent with specified configuration. After creation, use attach_tool to add capabilities, attach_memory_block to configure memory, or prompt_agent to start conversations.

attach_tool

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.

list_memory_blocks

List all memory blocks available in the Letta system. Use create_memory_block to add new ones, update_memory_block to modify, or attach_memory_block to link them to agents.

read_memory_block

Get full details of a specific memory block by ID. Use list_memory_blocks to find block IDs. After reading, use update_memory_block to modify content.

update_memory_block

Update the contents and metadata of a memory block. Use list_memory_blocks to find block IDs, or read_memory_block to see current content before updating.

attach_memory_block

Attach a memory block to an agent. Use list_memory_blocks to find blocks, create_memory_block to make new ones. Common labels: "persona", "human", "system".

create_memory_block

Create a new memory block in the Letta system. Common labels: "persona", "human", "system". Use attach_memory_block to link to agents, or update_memory_block to modify later.

delete_memory_block

Delete a memory block by ID. Use list_memory_blocks to find block IDs. WARNING: This action is permanent and cannot be undone.

search_memory

Search an agent's memory across both archival passages and conversation messages. Supports text search with optional date filtering. Use source parameter to search only archival or messages for better performance.

upload_tool

Upload a new tool to the Letta system. Use with attach_tool to add it to agents, or list_agent_tools to verify attachment.

list_mcp_tools_by_server

List all available tools for a specific MCP server. Use list_mcp_servers first to see available servers, then add_mcp_tool_to_letta to import tools into Letta.

list_mcp_servers

List all configured MCP servers on the Letta server. Use with list_mcp_tools_by_server to explore available tools from each server.

retrieve_agent

Get the full state of a specific agent by ID. Similar to get_agent_summary but returns complete details. Use list_agents to find agent IDs.

modify_agent

Update an existing agent by ID with provided data. Use get_agent_summary to see current config, list_llm_models/list_embedding_models for model options. For tools, use attach_tool instead.

delete_agent

Delete a specific agent by ID. Use list_agents to find agent IDs. For bulk deletion, use bulk_delete_agents. WARNING: This action is permanent.

list_llm_models

List available LLM models configured on the Letta server. Use with create_agent or modify_agent to set agent model preferences.

list_embedding_models

List available embedding models configured on the Letta server. Use with create_agent or modify_agent to set agent embedding preferences.

list_passages

Retrieve the memories in an agent's archival memory store (paginated query). Use create_passage to add new memories, modify_passage to edit, or delete_passage to remove them.

create_passage

Insert a memory into an agent's archival memory store. Use list_passages to view existing memories, modify_passage to edit, or delete_passage to remove.

modify_passage

Modify a memory in the agent's archival memory store. Use list_passages to find memory IDs. Currently only supports updating the text content.

delete_passage

Delete a memory from an agent's archival memory store. Use list_passages to find memory IDs. WARNING: This action is permanent.

search_archival_memory

Search an agent's archival memory using semantic similarity. Returns passages most similar to the query. Use list_passages for text-based search or pagination, create_passage to add memories.

export_agent

Export an agent's configuration to a JSON file and optionally upload it. Use import_agent to recreate the agent later, or clone_agent for a quick copy. Use list_agents to find agent IDs.

import_agent

Import a serialized agent JSON file and recreate the agent in the system. Use export_agent to create the JSON file, then modify_agent or attach_tool to customize the imported agent.

clone_agent

Creates a new agent by cloning the configuration of an existing agent. Use list_agents to find source agent ID. Alternative to export_agent + import_agent workflow. Modify the clone with modify_agent afterwards.

bulk_attach_tool_to_agents

Attaches a specified tool to multiple agents based on filter criteria (name or tags). Use list_agents to find agents and list_mcp_tools_by_server or upload_tool to get tool IDs.

get_agent_summary

Provides a concise summary of an agent's configuration, including core memory snippets and attached tool/source names. Use list_agents to find agent IDs. Follow up with modify_agent to change settings or attach_tool to add capabilities.

bulk_delete_agents

Deletes multiple agents based on filter criteria (name or tags) or a specific list of IDs. Use list_agents first to identify agents to delete. WARNING: This action is permanent.

add_mcp_tool_to_letta

Registers a tool from a connected MCP server as a native Letta tool AND attaches it to a specified agent. Use list_mcp_tools_by_server to find available tools, and list_agents to get agent IDs.

list_prompts

List all available prompt templates including wizards and workflows

use_prompt

Execute a registered prompt template. Use this to run wizards, workflows, and guided interactions.

list_messages

Retrieve messages from an agent's conversation history. Returns paginated message history including user messages, assistant responses, tool calls, and system messages. Use for reviewing past conversations or debugging agent behavior.

create_conversation_entry

Store a conversation entry in an agent's archival memory. Use this to record conversations from external sources (like Claude Code sessions) that should be searchable via search_archival_memory. Entries are formatted with metadata for easy filtering.

Prompts

Interactive templates invoked by user choice

NameDescription
letta_agent_wizardInteractive wizard to help create a properly configured Letta agent with memory and tools
letta_memory_optimizerAnalyze and optimize agent memory usage
letta_debug_assistantHelp debug issues with Letta agents
letta_tool_configHelp configure and manage tools for Letta agents
letta_migrationHelp migrate agents between environments or versions

Resources

Contextual data attached and managed by the client

NameDescription
system_statusCurrent status of the Letta system including version and health
available_modelsList of available LLM and embedding models in the system
mcp_serversList of connected MCP servers and their capabilities
agent_listComplete list of all agents in the system with basic metadata
all_tools_docsComplete documentation for all available tools with examples
mcp_integration_docsDocumentation for integrating MCP tools with Letta agents
api_referenceQuick reference for common Letta API operations

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oculairmedia/Letta-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server