Skip to main content
Glama

propose_off_hours_schedule

Destructive

Propose stopping a cluster's worker servers outside working hours to save cost: the off-hours lever of the Cost decisions, filed as an off_hours_schedule decision a person approves, never written straight to the cluster's power schedules. Prefer it over create_power_schedule whenever the user wants a cluster off at night or at weekends to save money, or acts on an off_hours_schedule recommendation from get_cloud_savings. The stop is scale_to_zero (the worker servers are deleted at the provider every stop and created again at the start; the control plane, etcd and cloud volumes keep running, and anything on a worker's own disk is lost at every stop). It runs the same off-hours gate the savings model and the cost autopilot run: a cluster nobody confirmed as non-production, one labelled or graded production, one that served traffic or ran its own workloads inside the stop window over the last 14 days, or one whose activity could not be measured is refused with the reason and nothing is filed - tell the user why, and do not schedule the stop with create_power_schedule instead. When another surface (the cost autopilot, the Cost page) already holds an off-hours proposal for the cluster, that proposal is returned (standing_twin true) and no second one is filed. On the confirmation card, the member who confirms it approves the proposal and Ankra arms the stop and start schedules at once, with a receipt, and measures the saving seven days later; that needs billing.manage. Everywhere else - MCP, an approved plan - the tool only files the proposal and returns portal_url, where a person with billing.manage approves it: give the user that link. The default window is weekdays 19:00 to 07:00 plus weekends, in the organisation's off-hours timezone; the expected saving is recorded only for that window. A window the user chose (stop_cron, start_cron) is measured over the hours it stops, not the default window's. A proposal already approved, held or running for the cluster keeps the window a person approved: a request for another window is refused with both windows (requested_window), and a person sets the standing proposal aside at portal_url before a new one is filed. Set accept_node_local_data_loss true ONLY after the user has explicitly agreed to lose the data on worker disks at every stop, never on your own judgement.

Input Schema

NameRequiredDescriptionDefault
timezoneNoIANA timezone the stop and start run in, e.g. 'Europe/Stockholm'. Defaults to the organisation's off-hours timezone (the cost autopilot's quiet hours, else UTC); the cluster's night activity is measured in this timezone.
stop_cronNo5-field cron of the stop. Defaults to '0 19 * * 1-5' (weekdays 19:00). Only change it when the user asks for another window.
cluster_idNoUUID of the target cluster. Optional when a cluster is selected.
start_cronNo5-field cron of the start. Defaults to '0 7 * * 1-5' (weekdays 07:00). Must never fire at the same time as the stop.
cluster_nameNoExact name of the target cluster. Optional when a cluster is selected.
accept_node_local_data_lossNoThe user's explicit consent to losing the data on the worker disks at every stop, used when the card's approval runs the schedules. Set it to true ONLY after you have told the user what is lost and the user has explicitly agreed - never pre-emptively, and not because the user asked for the schedule. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: discloses that the stop is scale_to_zero, that worker disks lose data every stop while control plane/etcd/volumes survive, the four gate refusal conditions (unconfirmed non-production, production-labelled, 14-day activity, unmeasurable), twin-proposal return with standing_twin, the approval flow requiring billing.manage, and the window-conflict refusal with requested_window. This is unusually rich behavioral disclosure for a destructive tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope, alternative routing, and consent requirement are front-loaded, which is good, but the body is a single very dense paragraph of ~300 words mixing gate logic, approval paths, window semantics, and consent. Each clause is substantive, yet the lack of segmentation makes it harder to scan than it needs to be.

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, non-idempotent proposal tool with no output schema, the description covers everything an agent needs: what gets destroyed and preserved, refusal paths and the required user messaging, twin-proposal behavior, where approval happens (portal_url vs. confirmation card), permission requirements, and consent handling.

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; the description earns above baseline by adding operational meaning: the default window (weekdays 19:00-07:00 plus weekends), that the expected saving is only recorded for that window, that a user-chosen stop_cron/start_cron is measured over its own hours, and that accept_node_local_data_loss must only be set true after explicit user agreement. These clarify the consequences of the cron and consent params beyond the schema text.

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 ('Propose stopping a cluster's worker servers outside working hours to save cost'), clarifies the artifact it creates (an off_hours_schedule decision, not a direct power-schedule write), and explicitly distinguishes itself from the sibling create_power_schedule.

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

Usage Guidelines5/5

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

Names the exact conditions for preferring this tool over create_power_schedule (user wants a cluster off at night/weekends to save money, or acts on a get_cloud_savings recommendation) and adds a negative rule: when the gate refuses, do not fall back to create_power_schedule. Both when-to-use and when-not are explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources