Reference
lg_workspaces_list: Workspaces
List the organization's workspaces (brands or business units).
- Changes data: no (read only)
- Credential scope:
settings:read(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: any connected assistant (Read only and up)
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
query | object (limit, cursor, sort, created_after, created_before) | no | |
query.limit | integer | no | |
query.cursor | string | no | |
query.sort | "created_at" | "-created_at" | no | |
query.created_after | string | no | |
query.created_before | string | no |
Example MCP call
A tools/call request to https://manage.restolayer.com/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lg_workspaces_list",
"arguments": {}
}
}Example REST call
The same thing over REST (GET /v1/workspaces):
curl -s -X GET "https://manage.restolayer.com/v1/workspaces" \
-H "Authorization: Bearer $LG_API_KEY"All tools: MCP tools. Connecting: connect your assistant.