Block a contact
block_contactBlocks a person when the user asks you to block them, their number, or a saved contact. Calls and messages to that person are refused, and calls and messages from them are refused. This is the Widely app block list for this Widely user, on every number they use. Pass phone_number, contact_id, or both. contact_id is a saved contact from search_contacts. A number is stored the same way the app stores it. Blocking someone who is already blocked leaves that block as it is.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "block_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contact_id | No | Saved contact id. Blocks that contact's Widely user and saved numbers. | |
| phone_number | No | Phone number to block. Pass this, contact_id, or both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | blocked when this call saved a block. already_blocked when each target was already blocked. | |
| blocked | Yes |