add_client
Configure Pi-hole clients by IP, MAC, hostname, CIDR subnet, or interface. Assign group IDs to control DNS filtering and ad-blocking access.
Instructions
Configure a client by IP, MAC, hostname, CIDR subnet, or :interface, and assign group IDs.
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": {
"client_id": "<client_id>"
},
"name": "add_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | ||
| comment | No | ||
| client_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||