Skip to main content
Glama

restart_if_stale

Destructive

Restart the worker only when it serves a stale build (behind or mismatched); otherwise no-op with reason. Returns immediately; poll runtime_info for update.

Instructions

Bounded mutation. Restarts the worker only when it demonstrably serves a stale build (worker-behind-dist or surface mismatch); no-op with a reason when fresh. Returns immediately; the restart lands seconds later, so poll runtime_info for the new worker. Refuses when unsupervised.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.2.1

TDQS

A4.9/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: 'Bounded mutation', no-op with a reason, immediate return with delayed effect, the need to poll runtime_info, and refusal when unsupervised. This fully characterizes the tool's side effects and timing.

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?

Three sentences deliver complete operational guidance with no filler. The first sentence front-loads the most important classification ('Bounded mutation') and the exact trigger condition, followed by return behavior and constraints.

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?

Given no parameters and no output schema, the description covers all essential context: what the tool does, when it acts, when it does nothing, what the caller experiences, how to observe the outcome, and a safety precondition. Nothing critical is missing.

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?

There are zero parameters and the schema is an empty object with 100% coverage, so the description has no parameter burden. It still adds relevant semantic context about the action's bounds and conditions, which is more than sufficient for a parameterless tool.

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 description states a specific action ('Restarts the worker') and precise triggering condition ('only when it demonstrably serves a stale build'), with concrete detection criteria. It clearly distinguishes this tool from siblings like runtime_info, machine_status, and self_update.

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?

It explicitly says when to invoke the tool (when a stale build is demonstrated), when not to (no-op when fresh), and what to do after (poll runtime_info for the new worker). It also names an exclusion condition ('Refuses when unsupervised').

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JonusNattapong/chatgpt-pilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server