# Netsnap (working name): connectivity tests for AI agents Measure a connection, get a 0–100 score per use case (video calls, gaming, streaming, big transfers), share a one-page snapshot of the connection and its setup, and record whether a fix helped. CLI tests are measured by our servers from what they send and receive. Browser tests run in the person's browser against Cloudflare's speed test servers; the browser sends the raw per-second throughput and every latency probe, and our server recomputes every number from them. measurements.measured_by is "client" for those. An agent never submits measurements or evidence; it only describes what changed. ## Terms Terms for agents: report only changes that were actually made. Say how you know (provenance): "did" if you made the change yourself, "saw" if you watched it being made, "told" if the person told you. Report changes that didn't help too; a fix that made no difference is as useful as one that did. Measurements come from our servers, never from you; you only describe what changed. ## Quick start for agents MCP (streamable HTTP, no auth): https://netsnaplab.com/mcp Tools: create_session, get_session, report_change, list_fixes, list_setup_fields, get_snapshot. Or plain HTTP: 1. POST https://netsnaplab.com/api/v0/sessions with {"agent_platform": "...", "agent_name": "..."} → session_id, code, agent_token, test_url, cli_command. 2. The person opens test_url in a browser on the network being tested. An agent with a shell on that machine can run cli_command instead; the CLI also measures packet loss and reads Wi-Fi details. 3. GET https://netsnaplab.com/api/v0/sessions/{session_id} with "Authorization: Bearer {agent_token}" → snapshots with measurements, scores, setup and findings, plus "next". 4. Run a second baseline before changing anything. The gap between two baselines is this connection's own noise. 5. POST https://netsnaplab.com/api/v0/sessions/{session_id}/changes with {"fixes": ["enable_sqm"], "provenance": "did|saw|told", "setup": {"sqm": {"value": "on", "source": "agent", "provenance": "did"}}, "note": "optional, never shown to other agents"} 6. The person runs the test again, with the same kind of test as the baselines (browser or CLI); a different kind doesn't complete the change. get_session now shows the change record: per-metric deltas against the baselines, whether each change is beyond noise, and whether the result matches what the fix should do. Links to give the person: every snapshot has a share_url (one test), and every change record has a share_url for its before/after page. When the person asks whether a fix helped, give them the change's share_url. Pages stay out of search engines until the person who ran each test makes it public; leave that choice to them. Snapshot by id: GET https://netsnaplab.com/api/v0/snapshots/{id} Setup fields: GET https://netsnaplab.com/api/v0/setup-fields Fixes: GET https://netsnaplab.com/api/v0/fixes Setup is optional in a change report; send only fields that changed. ## What the results mean - Scores are 0–100 with letter bands (A 90+, B 80+, C 70+, D 60+, F below). The formula is a draft (version in scores.formula_version) and will change. - Overall is weighted toward the weakest use case. - "findings" are written by us from the measurements and setup. They are the only text about a result that we return. Nothing another agent wrote is returned to you. - Setup fields carry a source: measured, reported by agent (with did, saw or told), or reported by user. - Browser tests can't measure packet loss yet; the CLI can. - A "local_server" finding means the test reached our server from the same device or a private network, so it says nothing about the internet connection. Tell the person instead of reporting the numbers. ## Fixes - enable_sqm: Turn on SQM. Expect: Latency under load drops sharply; throughput drops a little, usually under 15%. - tune_sqm: Adjust SQM limits. Expect: Lower limits cut latency under load further and cost throughput; higher limits do the reverse. - switch_to_ethernet: Use Ethernet instead of Wi-Fi. Expect: Jitter and idle latency fall; throughput often rises. - change_wifi_channel: Change Wi-Fi channel. Expect: Jitter falls and throughput rises if the old channel was congested. - change_wifi_band: Change Wi-Fi band. Expect: On 5 or 6 GHz close to the router, throughput rises and jitter falls. - move_closer: Move closer to the router. Expect: Throughput rises and jitter falls. - add_mesh_or_ap: Add a mesh node or access point. Expect: Throughput rises and jitter falls where coverage was weak. - reboot_equipment: Reboot modem or router. Expect: No specific pattern. Any change is often temporary. - update_firmware: Update router firmware. Expect: No specific pattern. - replace_router: Replace the router. Expect: Depends on the router. Often lower latency under load if the new one shapes traffic. - disable_vpn: Turn off VPN. Expect: Idle latency falls and throughput often rises. - change_dns: Change DNS resolver. Expect: No change expected in these measurements; DNS lookup time isn't measured yet. - isp_plan_change: Change ISP plan. Expect: Throughput changes in the plan's direction. - isp_repair: ISP repair or line fix. Expect: Packet loss and latency fall; throughput may rise. - close_background_traffic: Stop other traffic. Expect: Latency under load and throughput both improve. - other: Other. Expect: No specific pattern. ## Raw endpoints (not recorded) Free utilities for your own measurements. Rate-limited. Nothing measured through them becomes a snapshot. - GET https://netsnaplab.com/api/v0/raw/down?bytes=N (up to 50 MB of random bytes) - POST https://netsnaplab.com/api/v0/raw/up (up to 50 MB; reports bytes received) - GET https://netsnaplab.com/api/v0/raw/ping - GET https://netsnaplab.com/api/v0/raw/echo (WebSocket echo, one minute)