
Description
Reference for the `letta mcp` CLI, which finds and invokes MCP tools available to this agent. A system reminder already lists your connected MCP servers and the basic search/schema/call commands; invoke this skill when you need more — browsing a server's tools, passing large or file-based arguments, tuning search, or troubleshooting missing servers, tools, and errors.
SKILL.md
Using MCP tools
letta mcp gives the agent one unified view of every MCP server it can reach: servers connected to the agent in Letta Cloud and servers configured locally on this machine. It works from any surface where the agent runs — cloud sandboxes (chat.letta.com), Letta Desktop, and terminals. All output is JSON.
Commands
letta mcp list # servers: [{name, transport}]
letta mcp get <server> # one server's connection configuration (credentials redacted)
letta mcp tools [server] # tool names + descriptions only
letta mcp tools [server] --full # ...including every tool's complete schema
letta mcp schema <tool-name> # one tool's complete schema
letta mcp search <query> [--mode] [--limit] # ranked tool schemas: [{tool, rank, score}]
letta mcp call <tool-name> [--args | --args-file] # run a tool, print a CallToolResult
Every command accepts --agent <id>, defaulting to LETTA_AGENT_ID/AGENT_ID — do not pass it unless targeting another agent.
Search options
--mode <hybrid|vector|fts>— defaulthybrid.vectoruses server-side embeddings and covers only cloud-connected servers;ftsandhybridalso rank local tools lexically. Agents on a local backend cannot usevector.--limit <n>— result count, 1-100 (default 5).- Rank order is meaningful; absolute scores are not comparable across queries. When even the top results look unrelated to the query, no relevant tool likely exists — do not force the best-ranked one.
Call arguments and results
--args '<json>'— inline JSON object.--args-file <path>— read the JSON object from a file;--args-file -reads stdin. Use these for large or shell-quoting-hostile payloads.- Output is an MCP CallToolResult:
content(array of typed blocks), optionalstructuredContent, andisError. - Exit codes:
0success,1CLI/usage error (JSON on stderr:{error: {code, message, hint?}}),2the tool ran and returned an error result — readcontentfor the server's message, fix the arguments, and retry. - Summarize relevant results instead of pasting large raw payloads.
Troubleshooting
listempty → no MCP servers are available. Ask the user to connect one on the Letta Cloud MCP servers page or configure a local one in the Letta Code app.- Cloud server with no tools (or
0 toolsin the reminder) → tools were never synced. Ask the user to resync it from the MCP servers page; the CLI has no refresh action. unauthorizedor another auth error oncall→ the server's stored credentials are missing or stale (toolscan still list from previously synced rows). Ask the user to re-authenticate the server: cloud servers on the MCP servers page, local OAuth servers by connecting once in the Letta Code app — this CLI is non-interactive and only reuses persisted credentials.ambiguous_server_name→ two servers share a name; the error hint explains how to disambiguate.- Duplicate tool names across servers get a numeric suffix (
_2); the printed name is always the callable one.
More skills from the letta-code repository
View all 23 skillsacquiring-skills
discover and install agent skills
Jul 13AgentsAutomationGitHubbrowser-use
automate browser navigation and interaction
Aug 31AutomationBrowser AutomationTestingContext Doctor
repair system prompt and memory degradation
Jul 13AgentsAI ContextDebuggingconverting-mcps-to-skills
connect MCP servers to create skills
Jul 13AgentsAutomationMCPcreating-mods
create and edit Letta Code mods
Jul 23AgentsAutomationCodingcreating-skills
create and update agent skills
Jul 13AgentsDocumentationPlugin Development
More from Letta
View publishercustomizing-commands
create and manage Letta slash commands
letta-code
Aug 21AgentsAutomationCLIcustomizing-statusline
customize Letta Code statusline mods
letta-code
Jul 13CLIEngineeringdispatching-coding-agents
dispatch stateless coding agents
letta-code
Jul 26AgentsCodingMulti-Agentediting-letta-code-desktop-preferences
edit Letta Code Desktop preferences
letta-code
Aug 27ConfigurationDesktopThemesfinding-agents
locate and manage agents on server
letta-code
Aug 27AgentsManagementgenerating-mod-envs
generate Letta mod learning environments
letta-code
Jul 13AgentsAI InfrastructureConfiguration