Skip to main content
Glama

calls_hangup

Read-onlyIdempotent

Hang up an active voice call by call_id. Use after calls.make when the agent decides to terminate before the callee does, or to abort a stuck call. Idempotent: returns success if the call is already terminal. end_for_everyone=true (Telegram group calls only, workspace owner or admin) also ends the group's voice chat for every participant, as Telegram's 'End voice chat' does; it works on a call already ended on our side, for a voice chat left open in the group.

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": {
      "call_id": "<call_id>"
    },
    "name": "calls_hangup"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoShort internal reason for ending the call (e.g. 'campaign timeout'). Stored on voice_sessions.metadata.
call_idYesCall ID returned by calls.make in _meta.call_id.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
end_for_everyoneNoTelegram group calls only: also end the group's voice chat for everyone, not just take our bot out. Needs the call's Telegram account to be an admin of the group allowed to manage voice chats, and the caller to be a workspace owner or admin. OMIT to only leave.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / end_for_everyone
      Added value: +{
      +  "description": "Telegram group calls only: also end the group's voice chat for everyone, not just take our bot out. Needs the call's Telegram account to be an admin of the group allowed to manage voice chats, and the caller to be a workspace owner or admin. OMIT to only leave.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  3. Added
  4. Removed
  5. First observed

TDQS

A3.7/5.0
Behavior1/5

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

The description discloses real behavior beyond the schema — idempotency (success when already terminal), permission requirements for end_for_everyone, and that it still works on a call already ended on our side — but that content directly contradicts the annotations. Terminating a live call and ending a group voice chat for every participant is a state-changing, effectively irreversible action, yet readOnlyHint=true and destructiveHint=false declare the tool non-modifying.

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?

Front-loaded with the verb and target, then usage, then behavioral caveats. The final clause about end_for_everyone largely duplicates the schema and is somewhat convoluted, but nothing is padding.

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 four-parameter mutation with no output schema, the description covers when to call it, idempotency, permission gating, and the subtle case of a voice chat left open in the group. Return-shape detail is thin ('returns success'), but the essential calling context is present.

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 every parameter already carries a detailed description, including the admin/workspace-owner requirement for end_for_everyone. The prose restates 'Telegram group calls only, workspace owner or admin' without adding format, default, or interaction details, so the baseline 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?

States a specific verb and resource ('Hang up an active voice call by call_id') and explicitly positions itself relative to calls.make, so an agent can tell this is the termination counterpart to call creation rather than a query or transfer tool.

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 concrete trigger conditions: use after calls.make when the agent decides to terminate before the callee does, or to abort a stuck call. That is an explicit when-to-use rule tied to a named sibling, leaving little to inference.

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