Create a new flat
wg_createCreates a new shared flat with the caller as its first member and admin, returning a share code other tools use to manage that flat.
Instructions
Create a new, separate flat with the caller as its first member and admin. Use it only when the user wants a new flat; to change an existing flat use wg_update, to see the flats the account already belongs to use wg_list. Works on the account level, so wgCode is not needed. Returns wg { id, shareCode, name } and creator { id, name }; pass shareCode as wgCode to other tools to work in the new flat. The share code only addresses the flat in tools; people cannot join with it, so to add flatmates create an invite link with invite_create or send one with invite_email. Fails with account_deletion_pending if the account is being deleted and with wg_create_rate_limited after 10 creations per hour from one IP address.
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": {
"name": "<name>",
"creatorName": "<creatorName>"
},
"name": "wg_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the flat, for example "Elm Street 4". | |
| creatorName | Yes | Name the caller goes by inside this flat; other members see it on expenses, chores and chat. Does not change the account's name in other flats. |