Skip to main content
Glama

skypilot_cluster_autostop

Idempotent

Set an autostop timer to stop or tear down idle clusters after a specified number of minutes. Control idle detection and run a pre-stop hook.

Instructions

Set an autostop timer for a cluster. The cluster will automatically stop (or tear down if down=True) after being idle for the specified number of minutes. Set idle_minutes to -1 to disable. Set wait_for to control idle detection: 'jobs_and_ssh' (default), 'jobs', or 'none'. Set hook to a shell command to run on the cluster before autostop. Returns a request_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
downNo
hookNo
wait_forNo
cluster_nameYes
hook_timeoutNo
idle_minutesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only provide idempotentHint, so the description carries most of the behavioral burden and does well: it discloses idle-based stopping, that down=True tears the cluster down, that -1 disables the timer, and that a hook runs before autostop. It stops short of stating required permissions or the fate of running jobs.

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

Conciseness5/5

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

Front-loaded with the core action, followed by tightly packed sentences that each add a distinct behavioral or parameter fact. No filler and no redundancy.

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 (request_id is mentioned but need not be described), and the description covers the destructive-mode flag, timer semantics, idle detection, and hooks. The only gap is the undocumented hook_timeout parameter for this 6-parameter mutation tool.

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?

With 0% schema description coverage the description must compensate, and it explains down, idle_minutes (-1 to disable), wait_for (with enumerated values and default), and hook. However, hook_timeout is left undocumented in both schema and description, leaving one meaningful parameter unexplained.

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 ("Set an autostop timer for a cluster") and immediately clarifies the resulting lifecycle behavior. This is clearly distinct from siblings like cluster_stop, cluster_down, or tail_autostop_logs, so an agent can identify it 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 Guidelines3/5

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

The description explains what happens when the tool is invoked but never states when to prefer it over cluster_stop or cluster_down, nor any prerequisites. Usage is only implied by the semantics of the parameters rather than an explicit when/when-not routing.

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