manage_workspace_lifecycle
Create, update, delete, or leave a workspace; delete/leave are human-gated and irreversible.
# MCP tool reference
1 callable tools.
Use tools/call at https://mcp.schedulerzero.com/mcp with the exact tool name and arguments below. The /tools/ paths in this view are documentation identifiers, not HTTP endpoints. Request execution is disabled for this reference.
Inputs are shown for personal API keys (bound) and for OAuth/delegated agents. Output schemas describe MCP structuredContent: native objects pass through; arrays, scalars and null use a data wrapper. Text content retains the native JSON result.
[Connect a client](/mcp/connect) · [Authentication and authorization](/authentication) · [Generated auth guide](/auth.md) · [Download tool catalog](/mcp-catalog.json) · [Agent documentation](/llms.txt)
## manage_workspace_lifecycle
Create, update, delete, or leave a workspace; delete/leave are human-gated and irreversible.
Use to manage a workspace's identity and lifecycle under the caller's permission.
Deletion cascades and is owner-only; leave/remove govern membership, not the workspace row.
Obtain the user's explicit authorization before invoking a write or destructive action. This is a client interaction requirement, not a server-issued approval token.
Scopes: workspace:update, workspace:delete, workspaceMember:remove
Risk: destructive; confirmation: explicit; idempotency: required.
### Input schema (personal API key)
```json
{
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"create"
]
}
]
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"name"
],
"patternProperties": {
"^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"update"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"delete"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"leave"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
}
],
"$defs": {
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"ManageWorkspaceLifecycleInput": {
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"create"
]
}
]
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"name"
],
"patternProperties": {
"^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"update"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"delete"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"leave"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
}
]
}
}
}
```
### Input schema (OAuth / delegated agent)
```json
{
"type": "object",
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"create"
]
}
]
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"name"
],
"patternProperties": {
"^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"update"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"delete"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"leave"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
}
],
"$defs": {
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"Union_": {
"anyOf": [
{
"type": "null"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/Union_"
}
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
]
},
"ManageWorkspaceLifecycleInput": {
"anyOf": [
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"create"
]
}
]
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"name"
],
"patternProperties": {
"^(?!(?:action|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"update"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/NonEmptyString"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"metadata": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Union_"
}
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId|name|slug|metadata)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId",
"name",
"slug",
"metadata"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"delete"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
},
{
"type": "object",
"properties": {
"action": {
"anyOf": [
{
"type": "string",
"enum": [
"leave"
]
}
]
},
"workspaceId": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
}
},
"required": [
"action",
"workspaceId"
],
"patternProperties": {
"^(?!(?:action|workspaceId)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"action",
"workspaceId"
]
}
}
]
}
}
}
```
### Output schema (structuredContent)
```json
{
"$defs": {
"ShortText": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 4096
},
"HttpUrl": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^https?:\\/\\/[^\\s/$.?#][^\\s]*$"
},
"UtcDateTimeEncoded": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
},
"ManageWorkspaceLifecycleOutput": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
"format": "uuid"
},
"name": {
"$ref": "#/$defs/ShortText"
},
"slug": {
"$ref": "#/$defs/NonEmptyString"
},
"logo": {
"anyOf": [
{
"$ref": "#/$defs/HttpUrl"
},
{
"type": "null"
}
]
},
"createdAt": {
"$ref": "#/$defs/UtcDateTimeEncoded"
}
},
"required": [
"id",
"name",
"slug",
"logo",
"createdAt"
],
"patternProperties": {
"^(?!(?:id|name|slug|logo|createdAt)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"type": "string",
"enum": [
"id",
"name",
"slug",
"logo",
"createdAt"
]
}
},
{
"type": "object",
"properties": {
"deleted": {
"anyOf": [
{
"type": "boolean",
"enum": [
true
]
}
]
}
},
"required": [
"deleted"
],
"patternProperties": {
"^(?!(?:deleted)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"deleted"
]
}
]
}
},
{
"type": "object",
"properties": {
"left": {
"anyOf": [
{
"type": "boolean",
"enum": [
true
]
}
]
}
},
"required": [
"left"
],
"patternProperties": {
"^(?!(?:left)$)[\\s\\S]*$": false
},
"additionalProperties": true,
"propertyNames": {
"anyOf": [
{
"type": "string",
"enum": [
"left"
]
}
]
}
}
]
}
},
"type": "object",
"anyOf": [
{
"allOf": [
{
"$ref": "#/$defs/ManageWorkspaceLifecycleOutput"
},
{
"type": "object"
}
]
},
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"$ref": "#/$defs/ManageWorkspaceLifecycleOutput"
},
{
"not": {
"type": "object"
}
}
]
}
},
"required": [
"data"
],
"additionalProperties": false
}
]
}
```
### Underlying API operations
- `workspaces.create`: `POST /v1/workspaces`
- `workspaces.update`: `PATCH /v1/workspaces/:workspaceId`
- `workspaces.delete`: `DELETE /v1/workspaces/:workspaceId`
- `workspaces.leave`: `POST /v1/workspaces/:workspaceId/leave`