Skip to main content
Glama

Patch MCP

end_call

DestructiveIdempotent

End an in-progress call early. Patch requests disconnection by deleting the LiveKit room; a spoken farewell is not guaranteed. Check get_call for the resulting status. Use when the user changes their mind or the call is no longer needed. Available transcript snapshots are retained and the resolution is extracted separately.

Input Schema

NameRequiredDescriptionDefault
call_idYesThe id returned by place_call.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "call_id": {
      -        "description": "Call identifier used with get_call, end_call and set_call_visibility.",
      -        "type": "string"
      -      },
      -      "ended": {
      -        "description": "Whether an end request was applied; false if already terminal.",
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "description": "Wrap-up or already-ended explanation.",
      -        "type": "string"
      -      },
      -      "status": {
      -        "description": "Current call lifecycle state.",
      -        "enum": [
      -          "queued",
      -          "ringing",
      -          "in_progress",
      -          "completed",
      -          "answered_silently",
      -          "no_answer",
      -          "busy",
      -          "voicemail",
      -          "failed",
      -          "rejected",
      -          "canceled",
      -          "declined_recording",
      -          "opted_out"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "call_id",
      -      "status",
      -      "ended",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "description": "Machine-readable failure code.",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Explanation or recovery guidance.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "call_id": {
      +        "description": "Call identifier used with get_call, end_call and set_call_visibility.",
      +        "type": "string"
      +      },
      +      "ended": {
      +        "description": "Whether an end request was applied; false if already terminal.",
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "description": "Wrap-up or already-ended explanation.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "description": "Current call lifecycle state.",
      +        "enum": [
      +          "queued",
      +          "ringing",
      +          "in_progress",
      +          "completed",
      +          "answered_silently",
      +          "no_answer",
      +          "busy",
      +          "voicemail",
      +          "failed",
      +          "rejected",
      +          "canceled",
      +          "declined_recording",
      +          "opted_out"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "call_id",
      +      "status",
      +      "ended",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "description": "Machine-readable failure code.",
      +        "type": "string"
      +      },
      +      "message": {
      +        "description": "Explanation or recovery guidance.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "next_action": {
      +        "type": "string"
      +      },
      +      "operation_id": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "operation_id",
      +      "status"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "call_id": {
      -        "description": "Call identifier used with get_call, end_call and set_call_visibility.",
      -        "type": "string"
      -      },
      -      "ended": {
      -        "description": "Whether an end request was applied; false if already terminal.",
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "description": "Wrap-up or already-ended explanation.",
      -        "type": "string"
      -      },
      -      "status": {
      -        "description": "Current call lifecycle state.",
      -        "enum": [
      -          "queued",
      -          "ringing",
      -          "in_progress",
      -          "completed",
      -          "no_answer",
      -          "busy",
      -          "voicemail",
      -          "failed",
      -          "rejected",
      -          "canceled",
      -          "declined_recording",
      -          "opted_out"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "call_id",
      -      "status",
      -      "ended",
      -      "message"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "error": {
      -        "description": "Machine-readable failure code.",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Explanation or recovery guidance.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "call_id": {
      +        "description": "Call identifier used with get_call, end_call and set_call_visibility.",
      +        "type": "string"
      +      },
      +      "ended": {
      +        "description": "Whether an end request was applied; false if already terminal.",
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "description": "Wrap-up or already-ended explanation.",
      +        "type": "string"
      +      },
      +      "status": {
      +        "description": "Current call lifecycle state.",
      +        "enum": [
      +          "queued",
      +          "ringing",
      +          "in_progress",
      +          "completed",
      +          "answered_silently",
      +          "no_answer",
      +          "busy",
      +          "voicemail",
      +          "failed",
      +          "rejected",
      +          "canceled",
      +          "declined_recording",
      +          "opted_out"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "call_id",
      +      "status",
      +      "ended",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "error": {
      +        "description": "Machine-readable failure code.",
      +        "type": "string"
      +      },
      +      "message": {
      +        "description": "Explanation or recovery guidance.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "call_id": {
      +          "description": "Call identifier used with get_call, end_call and set_call_visibility.",
      +          "type": "string"
      +        },
      +        "ended": {
      +          "description": "Whether an end request was applied; false if already terminal.",
      +          "type": "boolean"
      +        },
      +        "message": {
      +          "description": "Wrap-up or already-ended explanation.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "Current call lifecycle state.",
      +          "enum": [
      +            "queued",
      +            "ringing",
      +            "in_progress",
      +            "completed",
      +            "no_answer",
      +            "busy",
      +            "voicemail",
      +            "failed",
      +            "rejected",
      +            "canceled",
      +            "declined_recording",
      +            "opted_out"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "call_id",
      +        "status",
      +        "ended",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "error": {
      +          "description": "Machine-readable failure code.",
      +          "type": "string"
      +        },
      +        "message": {
      +          "description": "Explanation or recovery guidance.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Successful result or a machine-readable tool error.",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag this as destructive and idempotent, yet the description adds real substance: the disconnect is implemented by deleting the LiveKit room, a spoken farewell is not guaranteed, transcripts are retained, and resolution is extracted separately. These are exactly the consequences an agent needs before a destructive call.

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 action and mechanism, then usage, then verification. Four short sentences with little waste, though the transcript/resolution note is somewhat tangential to invoking the tool.

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?

For a one-parameter destructive mutation with annotations and an output schema, the description covers action, side effects, retention semantics, verification path, and trigger conditions. Nothing an agent needs to call it safely is missing.

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?

The single call_id parameter has 100% schema coverage with a description tying it to place_call, so the schema does the work. The prose adds no further parameter detail, making the baseline 3 appropriate.

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 ("End an in-progress call early") and immediately discloses the mechanism (deleting the LiveKit room), which clearly separates it from place_call and get_call in the sibling list.

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

Usage Guidelines4/5

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

Gives an explicit trigger ("Use when the user changes their mind or the call is no longer needed") and routes the agent to get_call to verify the resulting status. It stops short of naming an alternative action or a when-not condition, but the usage context is unambiguous.

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