Skip to main content
Glama

Set Live Activity Stream

set_live_activity_stream

Create or update a managed Live Activity stream by stable stream_key.

REMOTE DELIVERY BUDGET: Each non-noop operation can send a remote ActivityKit push. iOS applies device-dependent push-to-start and update budgets and may throttle delivery even after APNs accepts the request. Use one stable stream_key for each real-world activity and send updates when its user-visible state meaningfully changes. Event-driven transitions may be seconds apart—for example, successive steps in a short deployment—and should be sent promptly; do not delay them to satisfy a fixed minimum interval. Short bursts of genuine progress are expected. Avoid sustained polling, heartbeat updates, per-second timer ticks, unchanged values, and high-frequency churn that does not communicate a meaningful transition. Coalesce only redundant or excessively granular changes. Do not retry a successful call to force display: success means APNs accepted the push, not that the device displayed it.

First call starts the Live Activity. Later calls with the same stream_key, same content_state.type, and same target channels update it. Repeating the same payload returns operation "noop". Changing the type or target channels rotates to a new underlying Live Activity.

Keep content_state.type and target channels stable to avoid consuming another push-to-start operation. For countdowns, send timer fields once and let the device render elapsed time locally instead of sending frequent updates.

Supported content_state.type values: segmented_progress, progress, metrics, stats, alert, timer, value.

Icons work with stats, metrics, progress, segmented_progress, alert, timer, and value. Use Apple SF Symbol names for icons. Badges work with alert, progress, segmented_progress, and value. A top-level action adds the Live Activity tap/action button and can open an HTTP/HTTPS URL, run an iPhone Shortcut with shortcuts://run-shortcut?name=..., open an installed app through its custom URL scheme such as spotify://, or trigger a backend webhook. Set dismiss_after_action: true on an open_url button to end the Live Activity after the tap. A top-level secondary_action adds a second button for alert, progress, segmented_progress, and value Live Activities.

Examples: { "value": { "title": "Current revenue", "subtitle": "Today", "type": "value", "value": "$1,240", "color": "cyan", "icon": "dollarsign.circle", "badge": { "title": "Live", "color": "green" } }, "segmented_progress": { "title": "Deploying API", "subtitle": "Step 2 of 4", "type": "segmented_progress", "current_step": 2, "number_of_steps": 4 }, "progress": { "title": "Uploading build", "subtitle": "42% complete", "type": "progress", "percentage": 42 }, "metrics": { "title": "Server load", "subtitle": "Current usage", "type": "metrics", "metrics": [ { "label": "CPU", "value": 27, "unit": "%" } ] }, "stats": { "title": "Sales", "subtitle": "Last 15 minutes", "type": "stats", "metrics": [ { "label": "Revenue", "value": 12.8, "unit": "k" }, { "label": "Orders", "value": 37 }, { "label": "Avg Order", "value": "$346" } ] }, "alert": { "title": "Alert", "message": "Incident response started. Primary API is degraded across regions.", "type": "alert", "color": "magenta", "icon": { "symbol": "exclamationmark.circle", "color": "yellow" }, "badge": { "title": "Escalated", "color": "gray" } }, "timer": { "title": "Benchmark Run", "subtitle": "sampling performance", "type": "timer", "duration_seconds": 300, "color": "cyan", "counts_down": true } }

Action examples: { "open_url": { "title": "Open Runbook", "type": "open_url", "url": "https://example.com/runbook" }, "shortcut": { "title": "Chat with Jarvis", "type": "open_url", "url": "shortcuts://run-shortcut?name=Jarvis" }, "app_url_then_end": { "title": "Open Spotify", "type": "open_url", "url": "spotify://", "dismiss_after_action": true }, "webhook": { "title": "Acknowledge", "type": "webhook", "url": "https://example.com/hooks/ack", "method": "POST", "body": { "incident_id": "inc_123" } } }

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>",
      "content_state": "<content_state>"
    },
    "name": "set_live_activity_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional account tags used to organize Live Activity history.
alertNoOptional APNs alert payload shown when the Live Activity starts or updates.
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 app-only details with string, number, or boolean values. Omit to preserve; send {} to clear. Never sent to ActivityKit.
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_stateYesLive Activity content state. Set type to one of: segmented_progress, progress, metrics, stats, alert, timer, value. Use segmented_progress for step-based work, progress for continuous completion, metrics or stats for multiple values, value for one prominent string or number, alert for important status, and timer for countdown or elapsed time. Icons work with all types: use icon as an SF Symbol string or { symbol, color }, plus optional icon_color and icon_style. Badges work with alert, progress, segmented_progress, and value: use badge { title, color }. Timers take duration_seconds, or ISO 8601 timer_start_at and timer_end_at; timer_start_at can be in the past for a timer that started earlier. Other optional presentation fields include subtitle, color, auto_dismiss_seconds, and auto_dismiss_minutes.
secondary_actionNoOptional secondary action button for alert, progress, segmented_progress, and value Live Activities. Uses the same object shape as action.
target_channel_slugsNoOptional channel slugs to target. Omit to target the account-wide default delivery scope.

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. Changed1 schema field changed
    • changedInput schema / properties / content_state / description
      Previous value: -"Live Activity content state. Set type to one of: segmented_progress, progress, metrics, stats, alert, timer, value. Use segmented_progress for step-based work, progress for continuous completion, metrics or stats for multiple values, value for one prominent string or number, alert for important status, and timer for countdown or elapsed time. Icons work with all types: use icon as an SF Symbol string or { symbol, color }, plus optional icon_color and icon_style. Badges work with alert, progress, segmented_progress, and value: use badge { title, color }. Other optional presentation fields include subtitle, color, auto_dismiss_seconds, and auto_dismiss_minutes."New value: +"Live Activity content state. Set type to one of: segmented_progress, progress, metrics, stats, alert, timer, value. Use segmented_progress for step-based work, progress for continuous completion, metrics or stats for multiple values, value for one prominent string or number, alert for important status, and timer for countdown or elapsed time. Icons work with all types: use icon as an SF Symbol string or { symbol, color }, plus optional icon_color and icon_style. Badges work with alert, progress, segmented_progress, and value: use badge { title, color }. Timers take duration_seconds, or ISO 8601 timer_start_at and timer_end_at; timer_start_at can be in the past for a timer that started earlier. Other optional presentation fields include subtitle, color, auto_dismiss_seconds, and auto_dismiss_minutes."
  6. 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"
      +  }
      +]
  7. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotation set (readOnlyHint=false, openWorldHint=true, destructiveHint=false). It discloses the remote delivery budget model, that success means APNs accepted the push rather than device display, that iOS throttles device-dependently, that identical payloads return operation "noop", and that changing content_state.type or target channels rotates to a new Live Activity and consumes another push-to-start operation — exactly the non-obvious side effects an agent needs.

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 purpose then the budget constraint, and organized with a header plus labeled example blocks that are scannable. It is long — the seven content-state examples and four action examples consume substantial space — but each block demonstrates a distinct schema branch rather than repeating prose, so the length is mostly justified.

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 9-parameter tool with nested objects and an output schema (so return values need no explanation), the description covers creation-vs-update semantics, noop behavior, rotation side effects, rate/budget limits, type selection, and action button construction. An agent has enough to invoke it correctly on the first attempt.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns above that by mapping each content_state.type to an intended use case (segmented_progress for step-based work, timer for countdowns, etc.), stating which types support icons, badges, and secondary_action, and showing concrete payload shapes. It adds real selection guidance beyond the schema's field-level prose.

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?

The opening sentence gives a specific verb pair (create or update), the resource (managed Live Activity stream), and the identity mechanism (stable stream_key). The sibling set (end/pause/resume_live_activity_stream) makes this distinction essential, and the description establishes it immediately without requiring the reader to open the schema.

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?

Very strong when/when-not guidance: send on meaningful user-visible change, do not delay genuine event-driven transitions, avoid polling/heartbeats/per-second ticks/unchanged values, coalesce only redundant changes, and never retry a successful call to force display. The gap is that it never names the sibling tools (end_live_activity_stream, pause_live_activity_stream, resume_live_activity_stream) as alternatives for stopping or suspending a stream, so an agent must infer that routing.

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