Rename a contact
rename_contactSet what the user calls one of their accepted contacts — "call Billy12399d@gmail.com Billy" — so "@ Billy" and toContact "Billy" reach that person from then on. The nickname is private to the user's own list: the contact never sees it, cannot set it, and it must not appear in anything sent to them — use it when speaking to the user and as toContact, and write packages in words the recipient would recognise. Pass an empty nickname to clear one. Only accepted contacts can be renamed; a name that is not one fails exactly like a name nobody has.
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": {
"contact": "<contact>"
},
"name": "rename_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact | Yes | Who to rename: their email address, their current name in list_contacts, or the nickname they already have. | |
| nickname | No | What the user wants to call them, at most 40 characters and no '@'. Empty clears the nickname. | |
| shareWithThem | No | true if the user has said this contact may see what they call them, which lets the nickname appear in packages sent to them. Ask the user and pass their answer — never assume one. Every rename resets it to false, so pass the nickname alongside it. |