Skip to main content
Glama

End a callback call

voixcall_end_call
DestructiveIdempotent

Use this when the user asks to hang up a callback call placed with voixcall_place_call. It ends whichever legs are live; the charge is settled from the connected time. Do not use for calls placed from the app, or to cancel a quote (quotes expire on their own).

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

Input Schema

NameRequiredDescriptionDefault
call_idYesThe call id (call_ prefix) returned by voixcall_place_call.

Output Schema

NameRequiredDescriptionDefault
idYes
costYesThe recorded charge, decimal string with two decimals; null unless status is completed.
objectYesAlways "call".
originYesWhich surface placed the call.
spokenYesOne sentence to say to the user.
statusYesinitiating, connecting, active, completed, failed, no-answer, busy, canceled; callback calls add ringing_you and ringing_them. New values may appear.
sessionYesCallback calls only; null for app and inbound calls.
currencyYes
ended_atYes
livemodeYes
directionYes
placementYesHow the call was set up: from the app or browser (webrtc), by ringing your phone first (callback), or received on your number (inbound).
to_numberYesE.164.
started_atYes
transcriptYesThe call's summary-level transcript (redacted, no utterances) with expand[]=transcript, when the call has one; null otherwise. Needs transcripts:read and the account setting "Allow connected apps to read call summaries" (Settings → Connected apps), else expand[]=transcript answers 403.
answered_atYesNot recorded for app calls today: null.
cost_so_farYesCharge accrued so far, decimal string, only while status is active; null otherwise (including initiating and connecting). Counted from started_at, so it includes ring time until answered_at is recorded.
from_numberYesE.164 caller ID used.
is_recordedYes
rate_per_minuteYesThe per-minute rate fixed at call setup and charged for this call, decimal string with four decimals.
duration_secondsYesBillable seconds once the call has ended.
counterparty_nameYesName of the contact whose stored phone number exactly matches the other party (to_number outbound, from_number inbound); a contact saved in another format, such as with spaces, does not match. Requires contacts:read, else null.
transcript_statusYesnull when no transcript was requested.
max_duration_secondsYesTime limit the balance allowed when the call was set up, while status is active. Derived from the balance, so it needs credits:read; null without it. Not recorded for app-placed personal calls today, so null for them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered structurally. The description adds real context beyond them: that it terminates whichever legs are live and that the charge is settled from connected time, which an agent needs to warn the user about cost. It stops short of stating whether the call is unrecoverable after settlement or what the response contains.

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?

Three short sentences, front-loaded with the trigger, then behavior, then exclusions. Every clause carries information: no filler, no restating of the title, and the negative guidance is placed last where it does not obscure the primary use case.

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?

The tool is simple (one required string parameter), annotations cover the safety profile, and an output schema exists so return values need not be described. The remaining ambiguity an agent faces — which calls it applies to and what happens financially — is addressed directly in the description.

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?

There is a single parameter with 100% schema coverage, and the schema already documents the call_id format and that it comes from voixcall_place_call. The description repeats 'placed with voixcall_place_call' but adds no new constraint, format, or meaning beyond the structured field, so 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 (hang up) and a specific resource (a callback call placed with voixcall_place_call), and ties the resource to the sibling that creates it. An agent can distinguish this from voice_end_call and from quote cancellation without opening any schema.

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 explicit trigger ('when the user asks to hang up a callback call placed with voixcall_place_call') plus two explicit exclusions: calls placed from the app, and cancelling a quote, with the reason that quotes expire on their own. This is exactly the when/when-not guidance the dimension asks for.

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