Skip to main content
Glama

Rooms Agent Pay (sandbox preview)

close_room

Close the current mission. The unspent balance stays in the room as credit for next time (no automatic refund).

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": {
      "room_id": "<room_id>",
      "owner_key": "<owner_key>"
    },
    "name": "close_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
room_idYesRoom id from create_room
owner_keyYesOwner key returned by create_room (keep it private)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the single most important non-obvious behavior: the unspent balance remains as credit and is not refunded. It says nothing about whether closing is reversible, what happens on a second close, or what the call returns.

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

Conciseness4/5

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

Two short sentences, front-loaded with the action and immediately followed by the money consequence. Only waste is the 'mission'/'room' inconsistency, which slightly muddies an otherwise tight statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with zero annotations and no output schema, the description covers the key financial side effect but leaves out irreversibility, authorization expectations, and error/return behavior. Adequate but with clear gaps.

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 description coverage is 100%, so room_id and owner_key are already documented in the schema. The description adds no meaning about the required owner_key authorization or any parameter constraints, so baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: 'Close the current mission' (i.e., the room). An agent can tell this is the terminating counterpart to create_room, though the description says 'mission' where the tool name and schema say 'room', which introduces minor terminology drift.

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

Usage Guidelines3/5

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

The parenthetical '(no automatic refund)' implies that an agent wanting money back should use the request_refund sibling instead, but that alternative is never named and no explicit when-to-use or when-not-to-use condition is given. Usage is implied rather than stated.

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