Skip to main content
Glama

Configure application resource thresholds

configure_application_resource_thresholds
DestructiveIdempotent

Replace an owned managed application's CPU, memory, network, and restart-delta thresholds and email preference to control threshold and recovery alerts.

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.

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>",
      "confirmed": "<confirmed>"
    },
    "name": "configure_application_resource_thresholds"
  }
}

Input 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. 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 destructiveHint=true and idempotentHint=true, but the description adds real operational context beyond them: full-replacement semantics, 'Replacing thresholds can stop existing alerts', the one-email-on-breach/one-on-recovery notification rule, and explicit non-effects (no reservation, no restarts, no billing impact). It also discloses the applications:manage scope and that this is not a paid API-key operation — exactly the auth and blast-radius details 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?

Front-loaded with the action and scope, then layered with prerequisite, default semantics, notification behavior, and side effects. It is dense — roughly nine sentences — but each carries distinct information; the only mild redundancy is the restated 'one account email when reached and one when recovered' idea split across two sentences.

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, idempotent mutation with no output schema, the description covers everything needed to call it safely: prerequisite read, user confirmation gate, full-replacement and clearing semantics, permission requirement, and what it explicitly does not do. Nothing material is left for the agent to guess.

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 genuine meaning the schema lacks: omitted or null numeric fields disable that threshold, omitted email_enabled defaults to false, and omitting all four thresholds clears preferences and disables email. It says nothing extra about orderNo versus installation_id, but those are fully documented in the schema.

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 and resource — 'Replace the complete optional resource-threshold set and email preference for one owned managed application' — which immediately separates it from the surrounding get_/configure_/install_ siblings. It also names the exact scope of fields replaced (four thresholds plus email preference).

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 a concrete prerequisite ('Read get_application_installation first') and a workflow gate ('Confirm the exact thresholds and email preference with the user first'), which explains the required `confirmed` flag. It does not name an alternative tool for setting thresholds, though the sibling list suggests none exists, so the omission is minor.

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