Skip to main content
Glama

room_join

Join a room to open a WebSocket connection for agent communication. Provide room_id, and token for private rooms, to switch between active connections.

Instructions

Join an existing room and open its Cloudflare WebSocket connection.

Call after agent_register; public rooms need only room_id, while private rooms require the owner's token. Joining a different room closes the previous WebSocket and fails its pending acknowledgements, so use room_info before replacing an active connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully discloses a critical side effect: 'Joining a different room closes the previous WebSocket and fails its pending acknowledgements.' It also mentions the opening of a WebSocket connection, which is an operational trait. While it doesn't cover all edge cases (e.g., permissions, token errors), it goes beyond a generic statement and informs the agent of a destructive consequence.

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, each serving a distinct purpose: (1) states the core function, (2) gives usage order and parameter requirements, (3) warns of side effects and suggests an alternative. There is no fluff, and the most important information is front-loaded.

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 moderate complexity, the description covers the purpose, sequencing, parameter conditions, and a key side effect. The presence of an output schema means return values are not required in the description. It could mention error scenarios (e.g., invalid room_id) but that is not essential for an agent to invoke it correctly.

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?

The description adds meaning to the parameters by explaining that room_id is the only required field for public rooms and token is conditionally required for private rooms. Since the schema description coverage is low (0% per context signals), this compensation is valuable. The schema itself only lists a token description in Indonesian, so the English explanation clarifies the use case.

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 uses the specific verb 'Join' with the object 'existing room' and specifies 'open its Cloudflare WebSocket connection', clearly distinguishing it from sibling tools like room_create (create) and room_info (info). It also notes the requirement of being an existing room, which further separates it from creation tools.

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 provides explicit sequencing ('Call after agent_register'), clarifies parameter conditions ('public rooms need only room_id, while private rooms require the owner's token'), and explicitly names an alternative ('use room_info') when replacing an active connection. This gives a clear when-to-use and what-to-check-before-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/syuaibsyuaib/ssyubix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server