Skip to main content
Glama

Set workspace settings

stack_set_workspace_settings
Destructive

Change workspace settings, for one agent account (account_id) or the customer's defaults. A field left out stays; null clears it so the account inherits the default. idle_pause_minutes is 5 or more, or 0 for no idle pause. delete_after_days is 1 or more, or 0 to keep a stopped workspace until it is deleted by hand; a stopped workspace's disk storage is charged to the account until it is deleted. max_workspaces is the number of workspaces an agent account may have (any number from 1). A running workspace takes a new idle pause now, and a stopped workspace kept longer than the new delete_after_days is deleted by the next sweep; applied says how many of each. The money held for a machine is not a setting: a machine is never billed beyond what is held for it, so with no idle pause it runs until its hold is used and is then paused. Returns the settings, what is in force and a note when workspaces are kept without end. Operator only, never metered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_set_workspace_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idNoAgent account id (acct_*) these apply to. Omit for the customer's defaults, which every agent account without its own setting uses.
max_workspacesNoWorkspaces an agent account may have that are not deleted (any number from 1); null to inherit
delete_after_daysNoDays a stopped workspace is kept before it is deleted: 1 or more, or 0 for never; null to inherit
idle_pause_minutesNoMinutes with no action before a running workspace is paused: 5 or more, or 0 for none; null to inherit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description goes well past them: it explains precisely what destruction means (a stopped workspace kept past the new delete_after_days is deleted by the next sweep), that disk storage for a stopped workspace keeps being charged until deletion, that a running workspace adopts a new idle pause immediately, and how the money hold caps billing. It also discloses the operator-only, unmetered access requirement.

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 purpose is front-loaded and no sentence is pure filler, but the text is an unbroken block of long clauses, and the constraint restatements ('idle_pause_minutes is 5 or more, or 0'; 'delete_after_days is 1 or more, or 0') duplicate what the schema already encodes. Structuring it around scope, semantics, and side effects would read better than one dense paragraph.

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 four-parameter destructive mutation with no output schema, the description covers everything an agent needs: targeting, omit-vs-null semantics, side effects on running and stopped workspaces, billing consequences, access requirements, and even the shape of the response ('the settings, what is in force and a note').

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 100% schema coverage the baseline is 3, but the description adds real meaning not in the schema: the PATCH distinction that an omitted field stays as-is while an explicit null resets the account to the inherited default. The numeric bounds for idle_pause_minutes and delete_after_days largely restate schema constraints, so the gain is concentrated in the omit-vs-null rule.

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?

The opening sentence names a specific verb and resource ('Change workspace settings') and immediately scopes the target: one agent account via account_id, or the customer's defaults. That is enough to distinguish it from the adjacent stack_get_workspace_settings and from the other stack_set_* settings tools, though no sibling is named explicitly.

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?

Usage context is implied rather than stated: the role-based restriction ('Operator only, never metered') and the account-vs-defaults targeting tell an agent who should call it and at what scope. However, the description never says when to prefer it over stack_get_workspace_settings or stack_set_account_budget, and gives no explicit exclusion or prerequisite beyond the operator restriction.

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.