Crear un grupo
crear_grupoUse this when the user wants to split costs with other people (a trip, a shared flat, a couple, a dinner, any shared plan) and has no apaxas group for it yet. Creates the group with the user in it and the others by name and, if the user already said what was spent, logs those expenses in the same call. Returns the group link, which the user sends to the others so each one opens it and says who they are. It also works without an apaxas account: then the user's name is needed, and the reply brings a key to keep using this group from this conversation. With the account, calling it again right away with the same name does not create a second group or log the expenses twice. Do not use it when the user already has a group for this plan or was sent the link to one.
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": {
"nombre": "<nombre>"
},
"name": "crear_grupo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gastos | No | Optional: the expenses the user has already mentioned, to log them in the new group. The names are the user's and those in «personas». | |
| moneda | No | ISO 4217 code of the currency the group keeps its accounts in (EUR, USD, GBP…). EUR if not given. | |
| nombre | Yes | The group's name: «Lisboa», «Piso de Lavapiés», «Marta's birthday». | |
| personas | No | The other people in the group, without the user, by the name everyone knows them by. | |
| tu_nombre | No | The user's name in this group, the one the others know them by. Needed without the user's apaxas account; with it, the name on the account if not given. |