Get a sub-account
cooper_get_workspaceUse this when you need one sub-account created by the signed-in parent, including its inbox quota and how many inboxes are in use. Read-only; requires auth. Inputs: workspace_id (required). Returns {id, name, inbox_quota, inboxes_used, account_id, api_key_prefix, created_at}. Does not return the API key. Another parent's workspace returns 404 workspace_not_found. A sub-account key returns 403 permission_denied. An inbox-scoped key returns 403 permission_denied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "cooper_get_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | Workspace id (ws_…) created by this parent account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Workspace id. | |
| name | No | Human-readable name. | |
| api_key | No | Workspace API key, returned only once on create. Never repeat it in full. | |
| account_id | No | Sub-account id for this workspace. | |
| created_at | No | ISO-8601 time the object was created. | |
| inbox_quota | No | Most inboxes the workspace may hold. | |
| inboxes_used | No | Live inboxes in the workspace. | |
| api_key_prefix | No | First characters of the workspace key, for display. |