Skip to main content
Glama

WebSocket Endpoint Check

websocket_endpoint_check
Read-onlyIdempotent

Test a WebSocket endpoint (ws:// or wss://): attempts the handshake, reports success/failure, time-to-open in ms, and close code/reason. Useful for verifying a WebSocket server is reachable and completes its upgrade handshake before you wire real traffic to it.

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": {
      "url": "<url>"
    },
    "name": "websocket_endpoint_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesWebSocket URL to test, e.g. wss://example.com/socket

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description does add value by enumerating what is reported (success/failure, time-to-open in ms, close code/reason), which matters since there is no output schema. However, it says nothing about timeout behavior, retries, or whether the socket is closed after the test — gaps that matter for a network probe.

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

Conciseness5/5

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

Two sentences, both earning their place: the first leads with the action and the observable results, the second gives the motivating use case. No restated title, no filler.

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 single-parameter probe with no output schema, the description covers action, protocol scope, and return values, which is nearly everything an agent needs. The remaining gap is operational behavior — timeout duration and whether the connection is torn down — which an agent calling a network tool could reasonably want.

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

Parameters3/5

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

Schema coverage is 100% with a single well-documented url parameter, so the baseline of 3 applies. The description adds only the mild constraint that the URL must use ws:// or wss://, which the example already conveys.

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

Purpose5/5

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

States a specific verb and resource ('Test a WebSocket endpoint') plus the exact protocol scope (ws:// or wss://) and what is measured. This cleanly separates it from network siblings such as smtp_server_check or check_open_ports without needing to name them.

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

Usage Guidelines4/5

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

Gives a concrete use context: verifying reachability and that the upgrade handshake completes before wiring real traffic to the server. It stops short of explicit when-not-to-use conditions or naming an alternative tool, so it is clear but not routing-complete.

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.