Skip to main content
Glama

app-command-set

Destructive

Changes an app command's schedule or state field by field, or removes it; emergency-operation changes require confirmation and a reason.

Instructions

dbabrain common.cli app-command-set: An app command's schedule or state, changed field by field. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • app_code (required): Which command.

  • active: Switched on.

  • node_role: Which nodes run it.

  • run_mode: sync | async.

  • max_parallel: async: at most this many.

  • time_window: A partial window: named fields change.

  • sort_order: Where it is listed.

  • display_name: Its title.

  • note: Why.

  • data_dir: Another data/ folder to read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "app-command-set"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, and the description reinforces this by stating it changes or removes something and that emergency-operations commands need an explicit `confirm` and `reason`. That confirmation requirement is real behavioral context an agent would not get from the annotations, though reversibility and side effects outside the request are not discussed.

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 two lead sentences front-load the core purpose and the confirm requirement, and the subsequent bulleted field list is easy to scan. The only waste is the redundant CLI-invocation prefix, which duplicates the tool name without adding meaning.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. For a destructive mutation tool with a free-form request object, the field enumeration plus the confirm/reason rule covers what an agent needs; only edge behavior such as unknown fields or partial time_window merging rules is left implicit.

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 0% — the input schema is a single untyped `request` object with additionalProperties=true — so the description carries the full burden, and it does: it enumerates app_code (required), active, node_role, run_mode (sync|async), max_parallel, time_window (partial/named fields), sort_order, display_name, note and data_dir. The per-field glosses are terse ('note: Why') but sufficient to construct a correct request.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb and resource: an app command's schedule or state, changed field by field, and clarifies it can remove as well as change. It is clear about scope, but it never differentiates itself from siblings such as disable-job, and the leading 'dbabrain common.cli `app-command-set`' wrapper adds noise rather than discriminating detail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage context is only implied: 'Changes or removes something' and a note that commands on the emergency-operations list require `confirm: "yes"` plus a `reason`. There is no statement of when to prefer this tool versus other command-related siblings, nor any prerequisites beyond the confirm requirement.

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