Skip to main content
Glama

Manage application lifecycle

manage_application
DestructiveIdempotent

Queue a confirmed lifecycle action (start, stop, restart, update, rollback, repair, reconcile, or uninstall) for an owned managed application, then verify the queued result.

Instructions

Queue one supported lifecycle action for an owned managed application. Confirm the exact action with the user first. For update or rollback, first read get_application_installation and copy the exact advertised blueprint_version and upstream_version as execution preconditions. The backend still selects and freezes the eligible immutable release; callers cannot choose an arbitrary target. Stop interrupts service. Uninstall permanently deletes the managed containers, configuration, saved credentials, and application data; existing server backups are retained. Uninstall requires acknowledge_data_loss=true after explicit user confirmation. A queued response must be verified with get_application_installation and get_application_events. Selective data restore is a separate operation exposed by list_application_restore_points and restore_application_data. Requires applications:manage and is not a paid API-key operation.

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": {
      "orderNo": "<orderNo>",
      "installation_id": "<installation_id>",
      "action": "<action>",
      "idempotencyKey": "<idempotencyKey>",
      "confirmed": "<confirmed>"
    },
    "name": "manage_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesSupported lifecycle action. Update and rollback apply the exact backend-advertised immutable release. Selective data restore is a separate revision-bound operation.
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
confirmedYesTrue only after the user confirmed this lifecycle action
idempotencyKeyYesClient-global unique key. Reuse it only to replay this exact lifecycle request; never reuse it for another service or request.
installation_idYesManaged application installation UUID
acknowledge_data_lossNoRequired for uninstall only. Set true after the user explicitly confirms permanent deletion of managed configuration, credentials, and application data.
expected_upstream_versionNoRequired for update or rollback: exact upstream_version from the corresponding available_actions capability
expected_blueprint_versionNoRequired for update or rollback: exact blueprint_version from the corresponding available_actions capability

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / installation_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=true, but the description adds substantial context beyond them: the backend freezes the eligible immutable release and callers cannot pick a target, stop interrupts service, uninstall permanently deletes containers, configuration, credentials, and application data while server backups are retained, acknowledge_data_loss=true is required, and the scope requires applications:manage and is not a paid API-key operation.

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 the purpose and action scope, then prerequisites, then destructive consequences, then verification. Nearly every sentence carries operational weight, though several are dense multi-clause lines that could be split for scanability.

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, permission-gated mutation with no output schema, the description covers what is destroyed, what survives (backups), the confirmation contract, precondition sourcing, and how to confirm the queued result. Nothing essential to calling it safely is missing.

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 100%, so the baseline is 3, but the description adds cross-field procedural meaning: the exact advertised blueprint_version and upstream_version must be copied from get_application_installation, and acknowledge_data_loss is tied to explicit user confirmation of permanent deletion. It does not explain idempotencyKey replay semantics, which the schema already covers.

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, resource, and scope: 'Queue one supported lifecycle action for an owned managed application.' It distinguishes itself from siblings by naming get_application_installation for verification and restore_application_data / list_application_restore_points for the separate restore path, so an agent can route correctly 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit prerequisites (confirm with the user first; read get_application_installation before update/rollback) and explicit follow-up verification (get_application_installation plus get_application_events), and excludes selective restore. The one gap is that it never mentions cancel_application_action or reconcile/repair siblings as alternatives once an action is queued or when a lighter action suffices.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools