Skip to main content
Glama

00Widget

End a Live Activity

end_live_activity
DestructiveIdempotent

End a running Live Activity with a final frame. Always end what you start. This cannot be undone: an ended activity cannot be resumed, only replaced by starting a new one, which the user sees as the old one dismissing and a new one animating in.

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": {
      "externalActivityId": "<externalActivityId>"
    },
    "name": "end_live_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
finalUnitNoUnit after `finalValue`. Omitted keeps the current unit; `null` removes it.
finalChartNoThe final plot window. Omitted keeps the current chart, which is usually worth keeping — the history is still true once the work is done; `null` removes it.
finalItemsNoThe complete final row list. Omitted keeps the current rows; `[]` or `null` removes them.
finalStateNoThe last state text. Defaults to "finished".
finalValueNoHeadline on the final frame — "3/3". Omitted keeps the current value; `null` removes it.
finalEndsAtNoSend `null` to remove the countdown: a finished activity otherwise keeps it, and the Lock Screen timer counts up past zero until the frame is dismissed. It does not control dismissal — `dismissalDate` does.
finalSignalNoContextual signal for the final frame. Omitted keeps the current signal; `null` clears it.
dismissalDateNoKeeps the final frame on the Lock Screen until this time, within Apple's four-hour window. Omitted, the activity is dismissed immediately.
finalProgressNoProgress on the final frame: `1` for a run that completed, `null` to remove the bar. Omitted keeps the current progress, which is right for a run cancelled part-way.
finalSubtitleNoWhat happened, on the last frame — "passed in 4m 12s". There is no `finalTitle`, because the title is frozen, so say it here.
finalStatusIconNoRuntime glyph on the final frame. `null` removes it, which is what an activity that has stopped doing the thing should send.
externalActivityIdYesThe id you started the activity with.

Output Schema

NameRequiredDescriptionDefault
okYes
apnsResultYes
recipientResultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known. The description adds genuinely new context: the operation is irreversible, an ended activity cannot be resumed, and the user-visible consequence is the old frame dismissing while a new one animates in — useful detail a destructive write should carry. It does not address what happens on a repeated call, which is the one gap against the idempotent annotation.

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 action, then the operating rule, then the irreversibility warning. Nothing is repeated from the schema and every sentence carries a distinct payload.

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 destructive, twelve-parameter tool, the description covers purpose, the obligation to close activities, and the irreversibility/users-visible consequence, while annotations and a rich schema plus output schema carry the rest. The notable omission is the dismissal timing behavior (immediate dismissal unless dismissalDate is supplied), which is a meaningful default left entirely to the schema.

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 description coverage is 100% and the twelve parameters, including the large finalChart structure, are documented exhaustively in the schema with omission/null semantics spelled out per field. The description only frames the general idea of a 'final frame' and adds no field-level meaning beyond it, so the 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 ('End a running Live Activity') plus the scope qualifier 'with a final frame'. It also implicitly distinguishes itself from the start tool by noting an ended activity can only be 'replaced by starting a new one', so an agent can tell the lifecycle position apart from update_live_activity.

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?

'Always end what you start' gives a clear standing directive for when this tool is appropriate, and the note about replacement-by-starting tells the agent what path to take if the activity needs to continue. It stops short of explicitly contrasting with update_live_activity or stating when an activity should be left running, so there are no hard exclusions.

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.