Skip to main content
Glama

workspace_create

Create a new virtual filesystem workspace to manage files across multiple storage providers with full file operations.

Instructions

Create a new virtual filesystem workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • Main handler implementing the workspace_create tool logic: creates workspace via manager and returns formatted response.
    async def workspace_create(
        self, request: WorkspaceCreateRequest
    ) -> WorkspaceCreateResponse:
        """
        Create a new workspace.
    
        Args:
            request: WorkspaceCreateRequest with name, provider, template, scope, and config
    
        Returns:
            WorkspaceCreateResponse with workspace info
        """
        info = await self.workspace_manager.create_workspace(
            name=request.name,
            provider_type=request.provider,
            provider_config=request.provider_config,
            template=request.template,
            scope=request.scope,
        )
    
        return WorkspaceCreateResponse(
            name=info.name,
            provider=info.provider_type,
            created_at=info.created_at,
            current_path=info.current_path,
            is_mounted=info.is_mounted,
        )
  • MCP tool registration for workspace_create using @server.tool decorator, proxies to workspace_tools instance.
    @server.tool
    async def workspace_create(request: WorkspaceCreateRequest):
        """Create a new virtual filesystem workspace."""
        return await workspace_tools.workspace_create(request)
  • Pydantic schemas defining input (WorkspaceCreateRequest) and output (WorkspaceCreateResponse) structures for the tool.
    class WorkspaceCreateRequest(BaseModel):
        """Request to create a workspace"""
    
        name: str = Field(..., min_length=1, pattern=r"^[a-zA-Z0-9_-]+$")
        provider: ProviderType = ProviderType.MEMORY
        scope: StorageScope = StorageScope.SESSION
        template: str | None = None
        provider_config: dict[str, Any] = Field(default_factory=dict)
    
    
    class WorkspaceCreateResponse(BaseModel):
        """Response from workspace creation"""
    
        name: str
        provider: ProviderType
        created_at: datetime
        current_path: str
        is_mounted: bool
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. 'Create a new virtual filesystem workspace' implies a write/mutation operation but doesn't specify permissions needed, whether the workspace is persistent, if there are size limits, or what happens on success/failure. For a creation tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at just 7 words in a single sentence. It's front-loaded with the core action and resource, with zero wasted words. Every word earns its place by conveying essential information about what the tool does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a creation tool with no annotations, 0% schema coverage, no output schema, and 1 undocumented parameter, the description is insufficiently complete. It states what the tool does at a high level but provides no guidance on usage, parameter requirements, behavioral expectations, or results. The agent would struggle to use this tool correctly without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage for its single 'request' parameter, and the tool description provides no information about what this parameter should contain. The description doesn't mention parameters at all, leaving the agent completely in the dark about what format or content the 'request' parameter expects for workspace creation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('create') and resource ('new virtual filesystem workspace'), making the purpose immediately understandable. It distinguishes from siblings like workspace_destroy, workspace_info, and workspace_list by specifying creation rather than other operations. However, it doesn't explicitly differentiate from 'mkdir' which also creates something in the filesystem context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to choose workspace_create over mkdir (which creates directories), what prerequisites might be needed, or what happens after creation. The agent must infer usage from the name alone without contextual help.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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