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.

Input Schema

NameRequiredDescriptionDefault
castIdYesTakeover id.

Output Schema

NameRequiredDescriptionDefault
castIdNoThe cast that was ended.
alreadyEndedNotrue when it had already ended.
screensReleasedNoHow many screens went back to normal content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. Added

TDQS

A5/5.0
Behavior5/5

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

Goes well past the destructive/idempotent/openWorld annotations: it discloses immediate restoration of normal content, the idempotent success case (alreadyEnded:true), the failure mode for an unknown id (fails and lists what is running), and the required scopes (screen.cast / emergency-override.create). These are exactly the operational details an agent needs before firing 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded opening sentence states action and blast radius, then labeled sections (When to use / When NOT to use / What to know / Parameters) make scanning trivial. Dense but every clause carries actionable information with no filler.

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 required-parameter, destructive tool with an output schema, this covers discovery (list_items), permissions, idempotency behavior, and failure semantics; return-value detail is delegated to the output schema as expected. Nothing an agent needs to invoke it correctly is missing.

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?

The schema only says 'Takeover id.', but the description adds that castId accepts a castId from start_takeover, an emergency id (emg_…), a content id, or the takeover's exact headline — and that the last two forms end every matching takeover. That is meaningful semantics the schema does not carry.

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 (End) plus resource (takeover or emergency) and scope (every screen it covers, in one call), which immediately separates it from start_takeover and set_screen_content. The sibling tools listed do not overlap with this scope, so an agent can route to it without opening a 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?

Explicitly enumerates when to use (tearing down what start_takeover started, early), when NOT to use (changing default content -> set_screen_content; per-screen looping), and points at list_items kind casts/emergencies for discovery. Alternatives and exclusions are named, not implied.

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