Skip to main content
Glama

Set an instance's timer

update_instance
Destructive

Set an instance's timer

Sets when a running instance stops by itself: hours from now (to extend it, or shorten it), or null to run until stopped. The price and limits stay as they are; billing stays per second. 409 conflict when it has already stopped.

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": {
      "id": "<id>",
      "hours": "<hours>"
    },
    "name": "update_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe instance id.
hoursYesHours from now until it stops by itself; null: it runs until you stop it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the safety profile is carried structurally. The description does add useful context beyond them: cost and limits are unchanged, billing stays per second, and a 409 conflict occurs if the instance has already stopped. It does not explain that shortening the timer brings forward termination of a destructive operation, nor what a successful response contains.

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?

Two compact sentences with the core effect first and the conflict case last; nothing is padded. The opening line merely repeats the tool title, which is the only wasted text.

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?

For a two-parameter mutation with annotations covering safety and no output schema, the description supplies cost, billing, and failure behavior — enough to call it correctly. Only the explicit sibling routing (stop_instance) is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both params are already documented and the baseline is 3. The description adds the directional reading of 'hours' (to extend or shorten) and restates the null meaning already present in the schema, but does not explain the 0.0167 minimum or 720 maximum bounds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

A specific verb and resource ('Sets when a running instance stops by itself') goes well beyond the name and defines the actual effect rather than restating the title. It distinguishes itself implicitly from start_instance/stop_instance through the 'running instance' scoping plus the 'extend or shorten' framing, but no sibling is named.

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?

Clear on when this applies: for a running instance, to extend or shorten its lifetime, or pass null to let it run until stopped. It lacks an explicit exclusion such as 'do not use to stop an instance now — use stop_instance', which is the main gap.

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