Refresh Mcp Server Tools
client.mcpServers.refresh(stringmcpServerID, McpServerRefreshParams { agent_id } params?, RequestOptionsoptions?): McpServerRefreshResponse
/v1/mcp-servers/{mcp_server_id}/refresh
Refresh tools for an MCP server by:
- Fetching current tools from the MCP server
- Deleting tools that no longer exist on the server
- Updating schemas for existing tools
- Adding new tools from the server
Returns a summary of changes made.
Parameters
mcpServerID: string
Returns
McpServerRefreshResponse = unknown
Refresh Mcp Server Tools
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const response = await client.mcpServers.refresh('mcp_server_id');
console.log(response);
{}Returns Examples
{}