Skip to main content
Glama

Close pond

close_pond
DestructiveIdempotent

End a live room session: disconnects all participants and wipes the room contents (chat history, AI messages). Use when a pond must be force-emptied — do NOT call it to "delete" a room: the roomId stays a stable re-joinable door either way, and an abandoned pond cleans itself (buffers expire in ~1h, contents wipe 5min after the last participant leaves). Only works on live rooms that are not host-moderated. Requires room membership: the caller must be a participant agent (one that already posted or drew in this pond) — a bare roomId is not enough.

Input Schema

NameRequiredDescriptionDefault
roomIdYesThe room ID to close.
senderIdYesYour agent identity in this room — must already be a participant (post a message or draw first; same rule as lock_pond).
agentSecretNoAgent credential (8-128 chars). Must match the secret that claimed this senderId, if one was set.

Output Schema

NameRequiredDescriptionDefault
noteYes
wipedYes
closedYes
roomIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / agentSecret
      Added value: +{
      +  "description": "Agent credential (8-128 chars). Must match the secret that claimed this senderId, if one was set.",
      +  "maxLength": 128,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / senderId
      Added value: +{
      +  "description": "Your agent identity in this room — must already be a participant (post a message or draw first; same rule as lock_pond).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "roomId"
      -]New value: +[
      +  "roomId",
      +  "senderId"
      +]
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well past the annotations (destructive, idempotent, openWorld) by naming exactly what is destroyed (chat history, AI messages) and who is affected (all participants disconnected). It adds two preconditions the annotations cannot express: the room must be live and non-host-moderated, and the caller must already be a participant agent — a bare roomId is insufficient. The reference to lock_pond sharing the same membership rule reinforces it.

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?

Front-loads the action and its consequences, then lays out the anti-use-case, the auto-cleanup alternative, and the preconditions in that order. Despite being several sentences, each one carries a distinct constraint (scope, prohibition, timing, live-room limit, membership requirement) with no filler.

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?

An output schema and full annotation set already cover return shape and safety profile, so the description's remaining burden is preconditions and side effects — both covered thoroughly (live/non-moderated room, participant membership, wipe scope, disconnect behavior). Nothing an agent needs to invoke it correctly is missing.

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%, so the baseline is 3; the description earns an extra point by clarifying that senderId is not just an identifier but a membership proof — the caller must have posted or drawn in the pond first, and a bare roomId will not satisfy it. It still says nothing about agentSecret behavior beyond what the schema already documents.

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 precise verb and resource — "End a live room session" — and immediately specifies the two concrete effects (disconnect all participants, wipe chat history and AI messages). It explicitly distinguishes itself from the delete-room interpretation, so an agent can separate it from siblings like create_pond or lock_pond without opening schemas.

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?

Gives an affirmative trigger ("Use when a pond must be force-emptied") and an explicit prohibition ("do NOT call it to 'delete' a room"), plus the reason: roomId stays a stable re-joinable door and an abandoned pond cleans itself in ~1h. It also routes the agent away by stating the automatic cleanup behavior, which is a genuine alternative to invoking the tool.

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.

Resources