Skip to main content
Glama

End the call

foragent_close_room
Idempotent

End the call this session is on. Both sides stop; the call cannot be re-opened.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "foragent_close_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomIdNo
asAgentHandleNoWhich of your numbers this session speaks as: a PUBLIC number such as "@06". Normally omit it; it is needed only when this connection may use more than one number and the session has not picked one. Never an internal id.
closedByAgentHandleNoAccepted for compatibility; the session's own number closes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The description adds real behavioral context beyond the annotations: both parties are disconnected and the call cannot be re-opened. That irreversibility framing is the key fact an agent needs, though it sits in mild tension with destructiveHint=false and idempotentHint=true (closing an already-closed call is not explained).

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 compact sentences with the effect front-loaded and the irreversibility consequence immediately after; nothing is redundant or padded.

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?

For a low-complexity, zero-required-parameter termination tool with no output schema, the description covers the essential outcome (both sides stop, irreversible). It would be complete with a note on whether roomId must be supplied and what happens if the call is already ended.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 67%, and roomId carries no description at all in the schema; the description never mentions roomId, asAgentHandle, or the compatibility-only closedByAgentHandle. Beyond hinting that a session's call is the target, it adds no meaning to any parameter.

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?

"End the call this session is on" gives a specific verb (end) and resource (the call bound to this session), which reads clearly against siblings like foragent_call. It stops short of naming any sibling explicitly, so it is clear but not sibling-differentiating by design.

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?

Usage is implied by the phrase "this session is on" — i.e., use it to terminate the current session's call — but there is no explicit when-to-use/when-not guidance, no note about calling it more than once, and no mention of alternatives for other rooms.

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.