Skip to main content
Glama

End Live Activity Stream

end_live_activity_stream
Destructive

End the current Live Activity for a managed stream and remove the stream key. Use it when the tracked work is finished; to stop updates temporarily and keep the key, use pause_live_activity_stream instead. A later set_live_activity_stream call with the same key starts a new Live Activity. Ending remotely also uses the device's ActivityKit push budget, so end once for a genuine lifecycle completion and do not repeatedly end and recreate a stream to refresh it.

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": {
      "stream_key": "<stream_key>"
    },
    "name": "end_live_activity_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional final Tags. Omit to preserve; send [] to clear.
alertNoOptional APNs alert payload for the ending update.
soundNoOptional sound for this call. Starts play the sound picked on the device unless you set one. Updates and ends are silent unless you set one, and iOS plays their sound only while the screen is on. Use one of the sounds bundled with the ActivitySmith app (arrive, bell, bells, bitflip, bloom, callout, chime, coin, corrupt, crest, cue, ding, drop, ember, emblem, flourish, glimmer, glint, glitch, lantern, nightfall, nudge, pixel, pop, signal, streak, tally, wand, whoosh, zip), default for the sound picked on the device, or none for silence. Use it for moments that need attention, such as a failed step.
actionNoOptional action button/tap target. Use { title, type: "open_url", url } with an HTTP/HTTPS URL, shortcuts://run-shortcut?name=... to run an iPhone Shortcut, or an installed app's custom URL scheme, such as spotify://. Custom app schemes require the target app to be installed; no web fallback is provided. Unsafe schemes and ActivitySmith's internal scheme are blocked. Add dismiss_after_action: true to an open_url button to end the Live Activity after the tap. Use { title, type: "webhook", url, method, body } to call an HTTPS webhook. Webhook method can be GET or POST.
metadataNoOptional final app-only details. Omit to preserve; send {} to clear.
stream_keyYesStable Live Activity stream key. Use the same key to update the same stream. Do not create new keys for routine updates: every new stream requires another remote start and uses the device's limited iOS push-to-start budget. Use only letters, numbers, underscores, and hyphens.
content_stateNoOptional final Live Activity content state. If omitted, ActivitySmith uses the latest stored state when possible.
secondary_actionNoOptional secondary action button for alert, progress, segmented_progress, and value Live Activities. Uses the same object shape as action.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / action / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "body": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Webhook only: optional JSON object sent with the request."
      -      },
      -      "method": {
      -        "description": "Webhook only: GET or POST. Defaults to POST.",
      -        "pattern": "^(GET|POST)$",
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "Button label shown on the Live Activity.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      -        "enum": [
      -          "open_url",
      -          "webhook"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "For open_url: an http or https URL, or shortcuts://run-shortcut?name=... to run an iPhone Shortcut. Other app URL schemes are rejected. For webhook: an https URL.",
      -        "maxLength": 2048,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "type",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "body": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Webhook only: optional JSON object sent with the request."
      +      },
      +      "dismiss_after_action": {
      +        "description": "open_url only: true ends the Live Activity after the button opens its URL. Defaults to false.",
      +        "type": "boolean"
      +      },
      +      "method": {
      +        "description": "Webhook only: GET or POST. Defaults to POST.",
      +        "pattern": "^(GET|POST)$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Button label shown on the Live Activity.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      +        "enum": [
      +          "open_url",
      +          "webhook"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "For open_url: an HTTP/HTTPS URL, shortcuts://run-shortcut?name=... to run an iPhone Shortcut, or an installed app's custom URL scheme, such as spotify://. Custom app schemes have no web fallback. For webhook: an https URL.",
      +        "maxLength": 2048,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "type",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / action / description
      Previous value: -"Optional action button/tap target. Use { title, type: \"open_url\", url } with an HTTP/HTTPS URL or shortcuts://run-shortcut?name=... to open a URL or run an iPhone Shortcut. Use { title, type: \"webhook\", url, method, body } to call an HTTPS webhook. Webhook method can be GET or POST."New value: +"Optional action button/tap target. Use { title, type: \"open_url\", url } with an HTTP/HTTPS URL, shortcuts://run-shortcut?name=... to run an iPhone Shortcut, or an installed app's custom URL scheme, such as spotify://. Custom app schemes require the target app to be installed; no web fallback is provided. Unsafe schemes and ActivitySmith's internal scheme are blocked. Add dismiss_after_action: true to an open_url button to end the Live Activity after the tap. Use { title, type: \"webhook\", url, method, body } to call an HTTPS webhook. Webhook method can be GET or POST."
    • changedInput schema / properties / secondary_action / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "body": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Webhook only: optional JSON object sent with the request."
      -      },
      -      "method": {
      -        "description": "Webhook only: GET or POST. Defaults to POST.",
      -        "pattern": "^(GET|POST)$",
      -        "type": "string"
      -      },
      -      "title": {
      -        "description": "Button label shown on the Live Activity.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      -        "enum": [
      -          "open_url",
      -          "webhook"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "For open_url: an http or https URL, or shortcuts://run-shortcut?name=... to run an iPhone Shortcut. Other app URL schemes are rejected. For webhook: an https URL.",
      -        "maxLength": 2048,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "title",
      -      "type",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "body": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Webhook only: optional JSON object sent with the request."
      +      },
      +      "dismiss_after_action": {
      +        "description": "open_url only: true ends the Live Activity after the button opens its URL. Defaults to false.",
      +        "type": "boolean"
      +      },
      +      "method": {
      +        "description": "Webhook only: GET or POST. Defaults to POST.",
      +        "pattern": "^(GET|POST)$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Button label shown on the Live Activity.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      +        "enum": [
      +          "open_url",
      +          "webhook"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "For open_url: an HTTP/HTTPS URL, shortcuts://run-shortcut?name=... to run an iPhone Shortcut, or an installed app's custom URL scheme, such as spotify://. Custom app schemes have no web fallback. For webhook: an https URL.",
      +        "maxLength": 2048,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "type",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / secondary_action / description
      Previous value: -"Optional secondary action button for alert, progress, and segmented_progress Live Activities. Uses the same object shape as action."New value: +"Optional secondary action button for alert, progress, segmented_progress, and value Live Activities. Uses the same object shape as action."
  2. Changed1 schema field changed
    • changedInput schema / properties / sound / description
      Previous value: -"Optional sound for this call. Starts play the sound picked on the device unless you set one; updates and ends are silent unless you set one, and a sound also expands the Live Activity on the Lock Screen. Use one of the sounds bundled with the ActivitySmith app (arrive, bell, bells, bitflip, bloom, callout, chime, coin, corrupt, crest, cue, ding, drop, ember, emblem, flourish, glimmer, glint, glitch, lantern, nightfall, nudge, pixel, pop, signal, streak, tally, wand, whoosh, zip), default for the sound picked on the device, or none for silence. Use it for moments that need attention, such as a failed step."New value: +"Optional sound for this call. Starts play the sound picked on the device unless you set one. Updates and ends are silent unless you set one, and iOS plays their sound only while the screen is on. Use one of the sounds bundled with the ActivitySmith app (arrive, bell, bells, bitflip, bloom, callout, chime, coin, corrupt, crest, cue, ding, drop, ember, emblem, flourish, glimmer, glint, glitch, lantern, nightfall, nudge, pixel, pop, signal, streak, tally, wand, whoosh, zip), default for the sound picked on the device, or none for silence. Use it for moments that need attention, such as a failed step."
  3. Changed1 schema field changed
    • changedInput schema / properties / sound / description
      Previous value: -"Optional sound for this call. Starts play the sound picked on the device unless you set one; updates and ends are silent unless you set one, and a sound also expands the Live Activity on the Lock Screen. Use default for the device's pick or none for silence. Use it for moments that need attention, such as a failed step."New value: +"Optional sound for this call. Starts play the sound picked on the device unless you set one; updates and ends are silent unless you set one, and a sound also expands the Live Activity on the Lock Screen. Use one of the sounds bundled with the ActivitySmith app (arrive, bell, bells, bitflip, bloom, callout, chime, coin, corrupt, crest, cue, ding, drop, ember, emblem, flourish, glimmer, glint, glitch, lantern, nightfall, nudge, pixel, pop, signal, streak, tally, wand, whoosh, zip), default for the sound picked on the device, or none for silence. Use it for moments that need attention, such as a failed step."
  4. Changed1 schema field changed
    • addedInput schema / properties / sound
      Added value: +{
      +  "description": "Optional sound for this call. Starts play the sound picked on the device unless you set one; updates and ends are silent unless you set one, and a sound also expands the Live Activity on the Lock Screen. Use default for the device's pick or none for silence. Use it for moments that need attention, such as a failed step.",
      +  "maxLength": 50,
      +  "minLength": 1,
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / action / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "body": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Webhook only: optional JSON object sent with the request."
      +      },
      +      "method": {
      +        "description": "Webhook only: GET or POST. Defaults to POST.",
      +        "pattern": "^(GET|POST)$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Button label shown on the Live Activity.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      +        "enum": [
      +          "open_url",
      +          "webhook"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "For open_url: an http or https URL, or shortcuts://run-shortcut?name=... to run an iPhone Shortcut. Other app URL schemes are rejected. For webhook: an https URL.",
      +        "maxLength": 2048,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "type",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / secondary_action / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "body": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Webhook only: optional JSON object sent with the request."
      +      },
      +      "method": {
      +        "description": "Webhook only: GET or POST. Defaults to POST.",
      +        "pattern": "^(GET|POST)$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Button label shown on the Live Activity.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "open_url opens url on the iPhone. webhook makes ActivitySmith call url when the button is tapped.",
      +        "enum": [
      +          "open_url",
      +          "webhook"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "For open_url: an http or https URL, or shortcuts://run-shortcut?name=... to run an iPhone Shortcut. Other app URL schemes are rejected. For webhook: an https URL.",
      +        "maxLength": 2048,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "type",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds what is actually destroyed (the stream key), what a subsequent set_live_activity_stream with the same key does, and that ending consumes the device's ActivityKit push budget. That budget and key-reuse context is not derivable from annotations or schema.

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 sentences, front-loaded with the core action, then the alternative, then the lifecycle/budget caveat. No redundant restatement of the title or schema, and every sentence carries distinct information.

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 destructive lifecycle mutation with eight parameters and nested objects, the description covers purpose, the pause alternative, key reuse behavior, and cost of repeated calls. An output schema exists, so return values need no explanation.

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%, so all eight parameters including nested action objects and optional final tags/metadata are already documented in the schema. The description only hints at stream_key reuse semantics, adding little beyond the structured fields; 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 the current Live Activity for a managed stream') plus a concrete side effect ('remove the stream key'). It explicitly distinguishes itself from pause_live_activity_stream and explains how set_live_activity_stream relates, so an agent can tell the three apart without opening schemas.

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 when-to-use condition ('when the tracked work is finished'), an explicit alternative with the condition that selects it ('to stop updates temporarily and keep the key, use pause_live_activity_stream'), and a when-not warning about repeatedly ending and recreating streams to refresh.

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