Check Connection Tool
residential_check_connection[Residential] Connect through a proxy and report the exit IP, location and optionally the Scamalytics fraud score. With max_score on a sticky or timed session, retry risky IPs in the same target location up to max_attempts. Use the returned connection only when ok is true. If no IP meets the threshold, return a tool error with status threshold_not_met and no connection credentials.
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": "residential_check_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | No | Autonomous system number, digits only. | |
| isp | No | Numeric ISP code from residential_list_locations. | |
| ttl | No | Session length in seconds for timed sessions, up to 259200 (72 hours). | |
| zip | No | ZIP or postal code. Requires country. | |
| city | No | City code from residential_list_locations, for example Houston or New-York. | |
| port | No | First port. Each extra connection uses the next port. | |
| region | No | Numeric region code from residential_list_locations, for example the code of Texas. | |
| country | No | Two-letter country code in upper case, for example US. Leave empty for worldwide. | |
| gateway | No | Entry gateway closest to the machine that will use the proxy. Defaults to europe. | |
| protocol | No | Proxy protocol. Defaults to socks5. | |
| max_score | No | Highest acceptable fraud score. Implies reputation. A higher score on a sticky or timed session triggers a new session in the same location. | |
| reputation | No | Also look up the Scamalytics fraud score of the exit IP (0 is clean, 100 is risky). Counts toward the daily limit. | |
| session_id | No | Letters and digits only, up to 64 characters. The same session id returns the same IP while it lasts. | |
| max_attempts | No | How many sessions to try when max_score is set. Defaults to 3. | |
| session_mode | No | sticky keeps one IP while the device stays online, timed keeps it for ttl seconds, rotating changes IP on every request. Defaults to sticky. |