Skip to main content
Glama

hangup_call

DestructiveIdempotent

DESTRUCTIVE: terminate an active call immediately. Idempotent — hanging up a finished call is a no-op error.

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": "hangup_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
call_idYescall UUID (or PBX session id starting with HD_) to terminate
purposeNoRequired on tools that read data or reports; recommended on every tool. One sentence: what you are doing and why (for example "finding this caller's open ticket to answer them"). Building a report, dashboard, analytics or an export is a SautiDesk Pro feature done by the report tools, not by pulling records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's 'DESTRUCTIVE' and idempotency notes largely restate them. It does add the useful clarification that hanging up a finished call yields a no-op error rather than succeeding silently, which is genuine context beyond the annotations.

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 short sentences, front-loaded with the destructive warning. No redundant restatement of the title and nothing to trim.

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 simple single-target mutation whose safety profile is fully annotated and whose parameters are fully documented, this covers what matters, including the idempotent no-op error behavior. Missing only an explicit steer toward siblings like transfer or wrap as alternatives.

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%, including the call UUID / HD_ session id format and the purpose parameter, so the schema carries the parameter burden. The description adds nothing about how call_id maps to live PBX sessions. 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 (terminate an active call immediately) and marks it DESTRUCTIVE up front. It's clearly distinguishable from siblings like get_call, desk_transfer_call, desk_wrap_call, and wait_for_call_event.

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 word 'active' implies the when-to-use condition, but it doesn't name alternatives such as desk_transfer_call or desk_wrap_call, or say when not to hang up. Usage is implied rather than explicitly routed.

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