Skip to main content
Glama

workspace_list

Retrieve a list of all available virtual filesystem workspaces to manage files and directories across multiple storage providers.

Instructions

List all workspaces.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP server registration of the 'workspace_list' tool, which delegates to WorkspaceTools.workspace_list()
    @server.tool async def workspace_list(): """List all workspaces.""" return await workspace_tools.workspace_list()
  • Core handler logic for listing workspaces: syncs namespaces and returns list via WorkspaceListResponse
    async def workspace_list(self) -> WorkspaceListResponse: """ List all workspaces. Returns: WorkspaceListResponse with list of workspaces """ # Sync with namespaces first await self.workspace_manager._sync_namespaces() workspaces = self.workspace_manager.list_workspaces() return WorkspaceListResponse(workspaces=workspaces)
  • Pydantic schema for the response: contains list of WorkspaceInfo objects
    class WorkspaceListResponse(BaseModel): """Response from workspace list""" workspaces: list[WorkspaceInfo]
  • Pydantic schema for individual workspace information used in the list response
    class WorkspaceInfo(BaseModel): """Information about a workspace""" name: str provider_type: ProviderType created_at: datetime current_path: str = "/" mount_point: str | None = None is_mounted: bool = False metadata: dict[str, Any] = Field(default_factory=dict) model_config = {"use_enum_values": False}

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/chrishayuk/chuk-mcp-vfs'

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