Skip to main content
Glama

Configure application resource thresholds

configure_application_resource_thresholds
DestructiveIdempotent

Replace the complete resource-threshold set and email preference for a managed application; omitted fields disable thresholds. Confirm thresholds and email preference with the user first.

Instructions

Replace the complete optional resource-threshold set and email preference for one owned managed application. Read get_application_installation first. Omitted or null numeric fields disable that threshold; omitted email_enabled is false; omitting all four thresholds clears the preferences and disables email. Thresholds highlight measured CPU, memory, combined network-per-minute, and restart-delta samples. When email is enabled, VPSnet sends one account email when a configured threshold is reached and one when it recovers, without repeating while it remains high. Replacing thresholds can stop existing alerts. Thresholds do not reserve or enforce resources, restart containers, or affect billing. Confirm the exact thresholds and email preference with the user first. Requires applications:manage and is not a paid API-key operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
confirmedYesTrue only after the user confirmed the complete threshold set
memory_mibNoOptional application memory display threshold in MiB
cpu_percentNoOptional display threshold as a percentage of one CPU core
email_enabledNoSend one account email when a configured threshold is reached and one when it recovers
restart_deltaNoOptional restart display threshold between comparable samples
installation_idYesManaged application installation UUID
network_mib_per_minuteNoOptional combined RX and TX display threshold in MiB per minute

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 flag destructiveHint, idempotentHint, and openWorldHint, but the description goes well beyond them: full-replacement semantics, the fact that replacing thresholds can stop existing alerts, the exact one-email-per-crossing notification behavior and that it does not repeat while high, and explicit non-effects (no reservation, enforcement, restarts, or billing impact), plus the applications:manage permission requirement. This is the kind of context structured fields cannot carry.

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 operation is front-loaded in the first sentence and every subsequent sentence carries distinct information (prerequisite, defaults, side effects, non-effects, authorization). It is dense with nine sentences for a high-complexity mutation tool, but nothing is redundant; slightly more could have been consolidated.

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?

With no output schema and a destructive, idempotent write tool, the description still covers prerequisites, confirmation requirements, default/null behavior, side effects on existing alerts, explicit non-effects, and authorization. An agent has everything needed to call this safely and correctly.

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 real meaning the schema lacks: null or omitted numeric fields disable that threshold, omitted email_enabled defaults to false, and omitting all four thresholds clears preferences and disables email. These default/null semantics are the crux of calling the tool correctly and are not inferable from the schema alone.

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 names a specific verb (replace), resource (resource-threshold set plus email preference), and scope (one owned managed application), and 'Replace the complete... set' immediately distinguishes it from partial-update and from siblings like configure_application_access. An agent can identify the operation without opening 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?

It gives a clear prerequisite sequence: read get_application_installation first, and confirm the exact thresholds and email preference with the user before calling. It does not name a sibling alternative for the case where the agent wants a partial or read-only threshold view, so it stops just short of explicit when-not guidance.

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