Skip to main content
Glama

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

NameRequiredDescriptionDefault
asnNoAutonomous system number, digits only.
ispNoNumeric ISP code from residential_list_locations.
ttlNoSession length in seconds for timed sessions, up to 259200 (72 hours).
zipNoZIP or postal code. Requires country.
cityNoCity code from residential_list_locations, for example Houston or New-York.
portNoFirst port. Each extra connection uses the next port.
regionNoNumeric region code from residential_list_locations, for example the code of Texas.
countryNoTwo-letter country code in upper case, for example US. Leave empty for worldwide.
gatewayNoEntry gateway closest to the machine that will use the proxy. Defaults to europe.
protocolNoProxy protocol. Defaults to socks5.
max_scoreNoHighest acceptable fraud score. Implies reputation. A higher score on a sticky or timed session triggers a new session in the same location.
reputationNoAlso look up the Scamalytics fraud score of the exit IP (0 is clean, 100 is risky). Counts toward the daily limit.
session_idNoLetters and digits only, up to 64 characters. The same session id returns the same IP while it lasts.
max_attemptsNoHow many sessions to try when max_score is set. Defaults to 3.
session_modeNosticky keeps one IP while the device stays online, timed keeps it for ttl seconds, rotating changes IP on every request. Defaults to sticky.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the retry loop (up to max_attempts new sessions in the same location), the failure mode (threshold_not_met tool error with no credentials returned), and that reputation lookups count toward the daily limit. It omits permission/auth requirements and rate-limit specifics beyond the daily-limit mention.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences with the core action front-loaded and the constraint/failure behavior following. No filler, though the threshold sentence is somewhat convoluted and repeats the retry concept already implied by max_score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter tool with no annotations and no output schema, the description covers the essential return values (exit IP, location, fraud score, ok) and the error contract. What remains thin is the exact shape of the success payload beyond those named fields, but that is a minor gap for a connection tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description earns extra by explaining the non-obvious interaction between max_score and max_attempts (retry risky IPs in the same target location) and by noting max_score implies reputation. It still doesn't clarify session_id versus session_mode interplay or port allocation beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: connects through a residential proxy and reports the exit IP, location, and optional Scamalytics fraud score. It is clearly not a listing or management tool. However, it never distinguishes itself from the sibling residential_create_connections, which sounds like it could overlap, so sibling differentiation is incomplete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives operational conditions — max_score only matters on sticky or timed sessions, and the connection is usable only when ok is true — which is useful invocation guidance. But it never says when to pick this tool over residential_create_connections or check_ip_reputation, so alternative selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources