Skip to main content
Glama

End a cast or emergency

end_takeover
DestructiveIdempotent

End a running takeover or emergency on every screen it covers, in one call.

When to use:

  • Taking down what start_takeover started, early.

When NOT to use:

  • Changing default content: use set_screen_content.

  • Calling once per screen: one call ends it everywhere.

What to know:

  • Screens return to their normal content at once. Ending one that already ended succeeds with alreadyEnded:true; an unknown id fails and lists what is running. Needs screen.cast (emergency-override.create for an emergency).

Parameters:

  • castId: the castId start_takeover returned, an emergency id (emg_…), the id of the content on screen, or the takeover's exact headline. The last two end every running takeover of it. Find running ones with list_items kind casts or emergencies.

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": {
      "castId": "<castId>"
    },
    "name": "end_takeover"
  }
}

Input Schema

NameRequiredDescriptionDefault
castIdYesThe takeover to stop: the castId that start_takeover returned, or an id from list_items kind casts or emergencies.

Output Schema

NameRequiredDescriptionDefault
endedNoOnly when castId named content or a headline: one row per takeover that ended.
castIdNoId of the takeover that ended (the first one when several ended).
castIdsNoOnly when castId named content or a headline: the id of every takeover that ended.
alreadyEndedNotrue when it had ended before this call, so nothing changed.
screensReleasedNoHow many screens went back to their normal content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / castId / description
      Previous value: -"Takeover id."New value: +"The takeover to stop: the castId that start_takeover returned, or an id from list_items kind casts or emergencies."
    • addedOutput schema / description
      Added value: +"What ended and how many screens it released."
    • changedOutput schema / properties / alreadyEnded / description
      Previous value: -"true when it had already ended."New value: +"true when it had ended before this call, so nothing changed."
    • changedOutput schema / properties / castId / description
      Previous value: -"The cast that was ended."New value: +"Id of the takeover that ended (the first one when several ended)."
    • addedOutput schema / properties / castIds
      Added value: +{
      +  "description": "Only when castId named content or a headline: the id of every takeover that ended.",
      +  "items": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / ended
      Added value: +{
      +  "description": "Only when castId named content or a headline: one row per takeover that ended.",
      +  "items": {
      +    "properties": {
      +      "alreadyEnded": {
      +        "description": "true when this one had ended before the call.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "castId": {
      +        "description": "Id of this takeover.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "headline": {
      +        "description": "The name it was listed under.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "screenCount": {
      +        "description": "How many screens it held.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / screensReleased / description
      Previous value: -"How many screens went back to normal content."New value: +"How many screens went back to their normal content."
  2. Changed1 schema field changed
    • changedInput schema / properties / castId / description
      Previous value: -"castId from start_takeover or list_items kind casts; an emergency id (emg_…); or the content id being cast."New value: +"Takeover id."
  3. Added

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that screens revert immediately, that re-ending an already-ended takeover returns alreadyEnded:true rather than erroring, that an unknown id fails and enumerates what is running, and that screen.cast (or emergency-override.create for emergencies) is required. This is consistent with destructiveHint=true and idempotentHint=true rather than contradicting them.

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?

Well front-loaded with labeled sections, but the bullet 'Calling once per screen: one call ends it everywhere' largely repeats the opening sentence's 'on every screen it covers, in one call', a minor redundancy.

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 single-parameter destructive mutation with an output schema, everything an agent needs is covered: auth requirements, idempotency behavior, failure mode, discovery path (list_items kind casts/emergencies), and alternate id forms.

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

Parameters5/5

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

Schema coverage is already 100%, but the description still adds real meaning: castId accepts a castId from start_takeover, an emergency id (emg_…), the on-screen content id, or the exact headline — and the latter two end every matching takeover, a semantic the schema does not state.

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 a running takeover or emergency') plus the scope ('every screen it covers, in one call'), which immediately separates it from start_takeover and from per-screen tools.

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 explicit when-to-use ('Taking down what start_takeover started, early'), an explicit when-not-to-use pointing at the named alternative set_screen_content, and warns against the wrong invocation pattern (once per screen).

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