npm-package-ws-has-241560546-weekly-downloads-but-sdk
Server Details
Stateful WebSocket session registry with per-connection Shannon entropy delta tracking for schema di
- Status
- Healthy
- Uptime
- 99.9% over 43 days
- Last Tested
- Transport
- Streamable HTTP ยท MCP 2025-11-25
- URL
- Repository
- nexus-mcp-infra/npm-package-ws-has-241560546-weekly-downloads-but-sdk
- GitHub Stars
- 0
- Server Listing
- ws-mcp
TDQS
Scored across 5 tools
Each tool maps to a distinct WebSocket lifecycle operation: open, send, drain, inspect, and close. There is no overlap or ambiguity between them, and the descriptions reinforce their unique purposes.
All tool names follow a consistent verb_noun structure and share a common prefix. Minor inconsistency exists between 'websocket_session' and 'ws_session' abbreviations, but the pattern remains predictable and readable.
Five tools is well-scoped for a WebSocket session management server: open, send, receive, inspect, and close. Each tool serves a necessary role without redundancy or bloat.
The tool set covers the full WebSocket session lifecycle from opening through sending, polling buffered frames, inspecting telemetry, and closing. No critical operations appear missing for the stated purpose.
Available Tools
5 toolsnexus_npm_package_ws_has_241560546_weekly_down_close_websocket_sessionAInspect
Sends a WebSocket close frame with the specified status code, waits for the server close handshake, and removes the session from the registry. Returns a final telemetry snapshot. Use when a session is no longer needed. Do NOT use to temporarily pause a session -- the session_id is permanently deallocated after this call and cannot be reused.
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional UTF-8 close reason string, max 123 bytes per RFC 6455. | |
| session_id | Yes | 32-character session id of the session to close. | |
| status_code | No | WebSocket close status code per RFC 6455 (1000-4999). Defaults to 1000. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It discloses the permanent deallocation of the session_id, the sequence (send frame, wait for handshake, remove), and the return of a telemetry snapshot. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise with three sentences: first states the action, second provides usage guidance, third adds a critical behavioral trait. No unnecessary words, well front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the schema coverage and presence of output schema, the description covers all essential aspects: core behavior, permanent deallocation, usage constraints, and return value. It is complete for a close operation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the schema already describes all three parameters with defaults and constraints. The description does not add new semantic details beyond the schema, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action: sends a WebSocket close frame, waits for server handshake, removes session, and returns telemetry. It distinguishes from sibling tools (open, send, drain, inspect) by focusing specifically on closing a session.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states when to use ('when a session is no longer needed') and when not to use ('Do NOT use to temporarily pause a session'), with a clear reason (session_id is permanently deallocated).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
nexus_npm_package_ws_has_241560546_weekly_down_drain_ws_frame_bufferAInspect
Returns up to max_frames buffered inbound frames received since the last drain (or session open), each annotated with its Shannon entropy delta and schema validation result. Use to poll for incoming messages without holding a blocking connection. Do NOT use as a real-time streaming mechanism -- it returns only frames already buffered.
| Name | Required | Description | Default |
|---|---|---|---|
| max_frames | No | Maximum number of buffered frames to return in a single call. | |
| session_id | Yes | 32-character session id of the open session to drain frames from. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description must disclose all behavioral traits. It mentions non-real-time and that frames are annotated, but does not clarify if draining clears the buffer or other side effects like session state changes. This is partially informative but leaves some ambiguity.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, both front-loaded with key information. No wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's low complexity (2 params) and presence of an output schema, the description covers purpose, usage, and basic behavior. It lacks details on return format but the output schema compensates. Could mention error conditions or session validity but overall sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema covers 100% of parameters with descriptions. The description adds no additional parameter-level detail beyond the schema, so baseline score of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns buffered inbound frames with entropy and validation info. It uses a specific verb-resource structure and contrasts with real-time streaming, distinguishing it from siblings like open_websocket_session.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says 'Use to poll for incoming messages without holding a blocking connection' and warns 'Do NOT use as a real-time streaming mechanism', providing clear when-to and when-not-to guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
nexus_npm_package_ws_has_241560546_weekly_down_inspect_ws_session_telemetryAInspect
Returns real-time telemetry for a session: connection state, frame counts, cumulative and rolling Shannon entropy statistics, schema violation rate, and uptime. Use to diagnose whether a stream is diverging from its expected schema or to verify a session is still alive before sending. Do NOT use as the primary liveness check in a tight loop.
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | 32-character session id of the session to inspect. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It implies read-only behavior by describing telemetry retrieval but does not explicitly state lack of side effects, required permissions, or behavior for invalid sessions. It does mention 'real-time' but lacks detail on rate limits or data staleness. Adequate but not thorough.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three sentences with no wasted words. The first sentence front-loads the outputs, the second clarifies use cases, and the third provides a critical warning. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has an output schema (not shown), the description complements it by listing key telemetry measures. It covers diagnostic and liveness verification use cases, including a warning about misuse. For a simple inspection tool with one input, this is fully sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
There is only one parameter (session_id) with 100% schema coverage. The schema already describes it as a 32-character session id. The tool description adds no additional semantic context beyond the schema, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description starts with a specific verb 'Returns' and lists concrete telemetry items (connection state, frame counts, entropy, schema violation rate, uptime). It clearly identifies the tool's function and is distinct from sibling tools which perform close, drain, open, and send operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use the tool: 'diagnose whether a stream is diverging from its expected schema' and 'verify a session is still alive before sending'. It also provides a clear negative directive: 'Do NOT use as the primary liveness check in a tight loop.' This helps the agent choose correctly.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
nexus_npm_package_ws_has_241560546_weekly_down_open_websocket_sessionAInspect
Establishes a persistent WebSocket connection to a target URL and registers it in the stateful session registry. Returns a session_id for all subsequent operations. Use when an agent needs to initiate a long-lived connection before sending or receiving frames. Do NOT use to reconnect an already-open session -- call close_websocket_session first, or use the session_id of an existing session.
| Name | Required | Description | Default |
|---|---|---|---|
| target_url | Yes | Full WebSocket URL to connect to (must start with ws:// or wss://). | |
| connect_timeout_seconds | No | Maximum seconds to wait for the WebSocket handshake to complete. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses that the connection is persistent, registers in a stateful registry, returns a session_id, and warns against improper reconnection. This adds meaningful behavioral context, though it could mention failure behavior or resource cleanup implications, but it covers the essential traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three sentences, front-loaded with the core function, followed by usage context and an exclusion. Every sentence contributes value with no wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite no output schema, the description states the return of a session_id, distinguishes from reconnecting, and clearly situates the tool among siblings. For an open-connection tool, this is complete and actionable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already covers 100% of the parameters with descriptions. The tool description does not add additional semantic meaning beyond what the schema provides, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'Establishes a persistent WebSocket connection to a target URL and registers it in the stateful session registry,' using a specific verb and resource. It also distinguishes from siblings by noting it returns a session_id for subsequent operations and explicitly contrasts with reconnecting an existing session.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit guidance: 'Use when an agent needs to initiate a long-lived connection before sending or receiving frames' and 'Do NOT use to reconnect an already-open session -- call close_websocket_session first, or use the session_id of an existing session.' This names an alternative tool and gives clear when-to-use and when-not-to-use conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
nexus_npm_package_ws_has_241560546_weekly_down_send_typed_ws_frameAInspect
Sends a single text or binary frame over an open session and returns the frame's Shannon entropy delta relative to the session baseline. Use for request-response patterns or publishing commands to a WebSocket server. Do NOT use to send a sequence of frames in bulk -- call this tool once per frame. Fails if session_id does not exist or connection is not in OPEN state.
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Frame payload. For binary frames, encode as hex and set frame_type to 'binary'. | |
| frame_type | No | Either 'text' or 'binary'. Determines wire encoding. | text |
| session_id | Yes | 32-character session id (uuid4 hex, no dashes) returned by open_websocket_session. |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries the burden. It discloses that it returns an entropy delta, sends a single frame, and fails if session invalid. Missing details on side effects or performance, but adequate for a send operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, front-loaded with the main action and return value. No extra words. Concisely covers usage, constraints, and failure modes.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that output schema exists, description need not detail returns. It covers input constraints, usage patterns, and failure conditions. Complete for agent decision-making.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% (baseline 3). The description adds value by specifying that payload for binary frames should be hex-encoded and frame_type set to 'binary'. This guidance goes beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool sends a single text or binary frame and returns the Shannon entropy delta. It distinguishes itself from siblings (open, close, drain, inspect) by focusing on sending data over an existing session.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says when to use: request-response patterns or publishing commands. Also tells when not to use: not for bulk sequences, call once per frame. Failure conditions are noted: session must exist and be in OPEN state.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- Changed
nexus_npm_package_ws_has_241560546_weekly_down_open_websocket_session1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "title": "open_websocket_sessionDictOutput", - "type": "object" -}New value: +null
5 tool updates
- First observed
nexus_npm_package_ws_has_241560546_weekly_down_close_websocket_session - First observed
nexus_npm_package_ws_has_241560546_weekly_down_drain_ws_frame_buffer - First observed
nexus_npm_package_ws_has_241560546_weekly_down_inspect_ws_session_telemetry - First observed
nexus_npm_package_ws_has_241560546_weekly_down_open_websocket_session - First observed
nexus_npm_package_ws_has_241560546_weekly_down_send_typed_ws_frame
Related MCP Connectors
Kafka and Postgres Monitoring Stack
Persistent memory and drift detection for AI agents across session restarts.
Encrypted LangChain Session Agent
Quantitative Bitcoin stratigraphy dataset featuring thermodynamic signals, Groth16 zk-SNARK verification, and P2P mesh consensus accessible via L402 micropayments.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables resilient real-time WebSocket streams with automatic heartbeat monitoring, reconnection, and state resynchronization for AI agents and MCP-compliant clients.8-
- AlicenseCqualityDmaintenanceA Model Context Protocol server implementation that enables real-time data communication between web pages and client applications through WebSocket connections.21,632 npmMIT
- FlicenseAqualityDmaintenanceBridges Zustand stores over WebSocket, enabling MCP-capable AI to inspect and manipulate live application state.5-

Epistemic DJofficial
FlicenseAqualityBmaintenanceMCP server that transforms cognitive state into generative music by mapping 13 epistemic vectors to Strudel live coding patterns, with mood presets and a web UI for interactive control.54-
Glama MCP Gateway
Add one secure layer between your agents and this server.