Skip to main content
Glama

Set timeout

set_timeout

Set a new lifetime for the sandbox in seconds, counted from now; returns the new expiry time. Use it before long interactive work so the sandbox does not fall asleep (or end) in the middle. It neither puts the sandbox to sleep nor deletes it.

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": {
      "timeout_s": "<timeout_s>"
    },
    "name": "set_timeout"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_sYesNew lifetime in seconds
sandbox_idNoSandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id.

Output Schema

NameRequiredDescriptionDefault
expires_atYesWhen the sandbox expires or falls asleep (RFC 3339, UTC).
sandbox_idYesSandbox ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sandbox_id / description
      Previous value: -"Sandbox ID (sb_…). If omitted, the current sandbox of this session is used."New value: +"Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-destructive, non-open-world mutation semantics, and the description adds genuinely new behavior: the lifetime is relative ("counted from now") and the call returns the new expiry time. It also preempts a likely misconception by clarifying the sandbox is neither slept nor deleted. It does not mention whether an existing timeout can be shortened, any maximum lifetime, or permission requirements.

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?

Two tight sentences: action and return value first, then the usage rationale, then the disambiguation. Every clause carries information, and nothing is repeated from the schema or annotations.

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 tool with full annotation coverage and an output schema, the description covers purpose, timing rationale, and the key non-destructive clarification. The only remaining gap is boundary behavior — shortening an existing timeout or any cap on the value — which is minor given the schema and annotations handle the rest.

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 coverage is 100%, so both parameters are already documented in the schema, including the sandbox_id side effect of becoming the current sandbox. The description only reinforces the relative-from-now semantics of timeout_s and says nothing about sandbox_id, which is acceptable given the schema carries that load.

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 a new lifetime for the sandbox in seconds, counted from now") plus the return value. It explicitly distinguishes itself from the destructive-looking siblings by negation: "It neither puts the sandbox to sleep nor deletes it," so an agent won't confuse it with pause_sandbox or kill_sandbox.

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 clear when-to-use condition: call it before long interactive work so the sandbox does not expire mid-run. It also implicitly excludes the pause/kill path through the negation. It stops short of naming a sibling alternative or stating any limits on how often or how far ahead the timeout can be extended.

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