create_virtual_workspace
Create and configure a new virtual workspace in SingleStore, including database setup and user access credentials. Streamlines workspace creation, database initialization, and user account management in one process.
Instructions
Create a new starter (virtual) workspace in SingleStore and set up user access.
Process:
1. Creates a virtual workspace with specified name and database
2. Creates a user account for accessing the workspace
3. Returns both workspace details and access credentials
Args:
name: Unique name for the new starter workspace
database_name: Name of the database to create in the starter workspace
username: Username for accessing the new starter workspace
password: Password for accessing the new starter workspace
workspace_group: Optional workspace group configuration
Returns:
Dictionary with workspace and user creation details
Input Schema
Name | Required | Description | Default |
---|---|---|---|
ctx | No | ||
database_name | Yes | ||
name | Yes | ||
password | Yes | ||
username | Yes | ||
workspace_group | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"Context": {
"description": "Context object providing access to MCP capabilities.\n\nThis provides a cleaner interface to MCP's RequestContext functionality.\nIt gets injected into tool and resource functions that request it via type hints.\n\nTo use context in a tool function, add a parameter with the Context type annotation:\n\n```python\n@server.tool()\ndef my_tool(x: int, ctx: Context) -> str:\n # Log messages to the client\n ctx.info(f\"Processing {x}\")\n ctx.debug(\"Debug info\")\n ctx.warning(\"Warning message\")\n ctx.error(\"Error message\")\n\n # Report progress\n ctx.report_progress(50, 100)\n\n # Access resources\n data = ctx.read_resource(\"resource://data\")\n\n # Get request info\n request_id = ctx.request_id\n client_id = ctx.client_id\n\n return str(x)\n```\n\nThe context parameter name can be anything as long as it's annotated with Context.\nThe context is optional - tools that don't need it can omit the parameter.",
"properties": {},
"title": "Context",
"type": "object"
}
},
"properties": {
"ctx": {
"anyOf": [
{
"$ref": "#/$defs/Context"
},
{
"type": "null"
}
],
"default": null
},
"database_name": {
"title": "database_name",
"type": "string"
},
"name": {
"title": "name",
"type": "string"
},
"password": {
"title": "password",
"type": "string"
},
"username": {
"title": "username",
"type": "string"
},
"workspace_group": {
"title": "workspace_group",
"type": "string"
}
},
"required": [
"name",
"database_name",
"username",
"password",
"workspace_group"
],
"title": "create_virtual_workspaceArguments",
"type": "object"
}