Skip to main content
Glama

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
Last Tested
Transport
Streamable HTTP
URL
Repository
nexus-mcp-infra/npm-package-ws-has-241560546-weekly-downloads-but-sdk
GitHub Stars
0
Server Listing
ws-mcp

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.5/5 across 5 of 5 tools scored.

Server CoherenceA
Disambiguation5/5

Each tool targets a distinct action: open, close, drain, send, and inspect. There is no overlap in functionality.

Naming Consistency4/5

The naming pattern after the long prefix is consistent verb_noun (e.g., open_websocket_session). However, the extremely long and repetitive prefix makes the full names unwieldy and could confuse agents.

Tool Count5/5

5 tools cover the core WebSocket session lifecycle (open, close, send, receive, and inspect) without being excessive or insufficient.

Completeness4/5

The surface covers the basic CRUD operations for WebSocket sessions. The drain tool provides a polling mechanism for receiving frames, but a real-time streaming tool is missing, which could be a minor gap.

Available Tools

5 tools
nexus_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional UTF-8 close reason string, max 123 bytes per RFC 6455.
session_idYes32-character session id of the session to close.
status_codeNoWebSocket close status code per RFC 6455 (1000-4999). Defaults to 1000.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior5/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
max_framesNoMaximum number of buffered frames to return in a single call.
session_idYes32-character session id of the open session to drain frames from.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYes32-character session id of the session to inspect.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior3/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
target_urlYesFull WebSocket URL to connect to (must start with ws:// or wss://).
connect_timeout_secondsNoMaximum seconds to wait for the WebSocket handshake to complete.
Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
payloadYesFrame payload. For binary frames, encode as hex and set frame_type to 'binary'.
frame_typeNoEither 'text' or 'binary'. Determines wire encoding.text
session_idYes32-character session id (uuid4 hex, no dashes) returned by open_websocket_session.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    A Model Context Protocol server implementation that enables real-time data communication between web pages and client applications through WebSocket connections.
    2
    1,299
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Bridges Zustand stores over WebSocket, enabling MCP-capable AI to inspect and manipulate live application state.
    5
  • F
    license
    A
    quality
    B
    maintenance
    MCP 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.
    5
    4

View all MCP Servers

Try in Browser

Your Connectors

Sign in to create a connector for this server.