Skip to main content
Glama
now-sdk-ext-mcp

now-sdk-ext-mcp

Repair Store Application

repair_store_app
Destructive

Repair an installed Store or company application by reinstalling its installed version from the repository without uninstalling it, preserving customized files and waiting for a confirmed result.

Instructions

Repair an installed Store or company application (the platform's Repair Application): reinstall its installed version from the application repository, without uninstalling it, and wait for the result. Files that were customized on the instance are kept (listed as skipped). Trust only a result that says Repaired: it requires the tracker to succeed and a new upgrade history to be written. Refused for an application developed on this instance, an inactive one, or one that contains plugins. Only when the user asked for a repair; it runs whatever the application's install runs.

Input Schema

NameRequiredDescriptionDefault
appYesThe installed application: its scope (e.g. sn_grc) or its sys_store_app sys_id.
instanceNoThe ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable.
load_demo_dataNoAlso load the application's demo data. Refused when it has none.
timeout_minutesNoHow long to wait for the repair. Default 30. Progress is reported while waiting; a client that does not reset its timeout on progress may give up first, and the repair then keeps running: check sys_execution_tracker.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.5.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses concrete behavior: it runs whatever the application's install runs, customized instance files are preserved and reported as skipped, refusal conditions, and how to interpret success ('Trust only a result that says Repaired'). The timeout note explains that a client giving up does not stop the repair and points at sys_execution_tracker to check it afterward—exactly the kind of operational context annotations cannot convey.

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?

The core action and its non-destructive-to-customizations caveat are front-loaded, and each subsequent sentence adds a distinct fact (refusals, success criteria, timeout behavior). It is dense and runs long as a single block, but no sentence is redundant.

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?

This is a destructive, long-running, open-world mutation with no output schema, so the description must carry result interpretation—and it does by defining what 'Repaired' means (tracker success plus a new upgrade history) and how to recover if the client times out. Combined with refusal conditions and skipped-file reporting, an agent has everything needed to decide and call correctly.

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 four parameters, including the app identifier pattern and the timeout fallback semantics, are already documented in structured data. The description reinforces the wait semantics of timeout_minutes but adds no new per-parameter meaning such as acceptable alias formats or demo-data refusal details beyond the schema. 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?

The description names a specific verb and resource — 'Repair an installed Store or company application' — and immediately clarifies the mechanism: reinstall the installed version from the application repository without uninstalling, then wait. That distinguishes it from siblings like install_store_app, update_store_app, and validate_app_install without requiring the agent to open their 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?

It gives an explicit gating condition ('Only when the user asked for a repair') and enumerates cases where it is refused (app developed locally, inactive app, app containing plugins). What it lacks is a direct reference to a sibling alternative for those cases—e.g., pointing to update_app or install_store_app when the request is an upgrade rather than a repair.

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