Skip to main content
Glama

Update machine pool

pools_update
DestructiveIdempotent

Update a machine pool's defaults, limits, environment, metadata, and idle deletion policy. Tenant-managed pools accept all changes; cluster-managed pools reject unsupported edits with 409 Conflict.

Instructions

Tenant-managed pools support every request field. Cluster-managed pools only allow changes to default CPU and memory, environment and secret environment variables, provider-supported per-machine CPU and memory limits, and the idle deletion policy. Other cluster-managed changes are rejected with 409 Conflict.

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": {
      "orgID": "<orgID>",
      "poolID": "<poolID>"
    },
    "name": "pools_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoHuman-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
orgIDYesOrganization ID (org_...).
poolIDYesMachine pool ID (mpo_...).
metadataNoUser-supplied metadata stored on a machine, provided directly or copied from the machine pool that provisions it. A restriction of Metadata that leaves room for one reserved pair - Omnara sets observed_platform on the machine to the platform reported by its daemon, so the key is reserved and at most 15 user pairs are accepted.
default_cwdNoDefault working directory for processes on machines created from the pool after this change.
descriptionNoFree-form description of the pool.
max_total_cpuNoMaximum total CPU across the pool's live machines.
max_machine_cpuNoLargest CPU count a single machine in the pool can use.
min_machine_cpuNoSmallest CPU count a single machine in the pool can use.
provider_configNoPool-wide provider settings, such as a workspace or domain, and allowlists for overrides. Keys depend on the provider.
max_total_machinesNoMaximum number of live machines in the pool.
default_machine_cpuNoDefault CPU count for new machines in the pool.
default_machine_envNoDefault environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.
max_total_memory_mbNoMaximum total memory in MB across the pool's live machines.
max_machine_memory_mbNoLargest memory in MB a single machine in the pool can use.
min_machine_memory_mbNoSmallest memory in MB a single machine in the pool can use.
provider_auth_secret_idNoSecret ID (sec_...).
default_machine_memory_mbNoDefault memory in MB for new machines in the pool.
delete_after_idle_minutesNoIdle minutes before deleting a machine from this pool. Null clears the pool default; omitted leaves it unchanged.
default_machine_secret_envNoDefault secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.
runtime_protection_enabledNoWhen true, Omnara deletes pool machines that keep running at the provider after their daemon goes inactive.
default_machine_provider_optionsNoProvider options for new machines, such as image, region, or startup_script. Keys depend on the provider.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
usageNoCurrent quota-consuming usage. Populated when the machine pool is returned by the list or get endpoint.
org_idYes
metadataYes
providerYes
created_atYes
updated_atYes
default_cwdYes
descriptionYes
max_total_cpuYes
management_kindYes
max_machine_cpuYes
min_machine_cpuYes
provider_configYes
max_total_machinesYes
default_machine_cpuYes
default_machine_envYesDefault environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.
max_total_memory_mbYes
max_machine_memory_mbYes
min_machine_memory_mbYes
provider_auth_secret_idNo
default_machine_memory_mbYes
delete_after_idle_minutesYesIdle minutes before deleting a machine from this pool, or null when the pool default is unset.
default_machine_secret_envYesDefault secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.
runtime_protection_enabledYesWhether Omnara deletes this pool's machines when the provider remains running after the daemon becomes inactive.
default_machine_provider_optionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.10
    • changedInput schema / properties / default_machine_provider_options / description
      Previous value: -"Provider-specific options applied to new machines in the pool."New value: +"Provider options for new machines, such as image, region, or startup_script. Keys depend on the provider."
    • changedInput schema / properties / description / description
      Previous value: -"Optional description of the pool."New value: +"Free-form description of the pool."
    • removedInput schema / properties / metadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / properties / metadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / properties / metadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • removedInput schema / properties / name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedInput schema / properties / provider_config / description
      Previous value: -"Provider-specific settings for the pool."New value: +"Pool-wide provider settings, such as a workspace or domain, and allowlists for overrides. Keys depend on the provider."
    • changedInput schema / properties / runtime_protection_enabled / description
      Previous value: -"Whether Omnara should delete a pool machine when its provider remains running after its daemon becomes inactive."New value: +"When true, Omnara deletes pool machines that keep running at the provider after their daemon goes inactive."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "MachinePoolID": {
      +      "description": "Machine pool ID (mpo_...).",
      +      "pattern": "^mpo_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachinePoolUsage": {
      +      "properties": {
      +        "cpu": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "machines": {
      +          "format": "int32",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "memory_mb": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "machines",
      +        "cpu",
      +        "memory_mb"
      +      ],
      +      "type": "object"
      +    },
      +    "ManagementKind": {
      +      "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
      +      "enum": [
      +        "tenant",
      +        "cluster"
      +      ],
      +      "type": "string"
      +    },
      +    "Metadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels stored with the resource.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "default_cwd": {
      +      "type": "string"
      +    },
      +    "default_machine_cpu": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "default_machine_env": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "description": "Default environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.",
      +      "type": "object"
      +    },
      +    "default_machine_memory_mb": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "default_machine_provider_options": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "default_machine_secret_env": {
      +      "additionalProperties": {
      +        "$ref": "#/$defs/SecretID"
      +      },
      +      "description": "Default secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.",
      +      "type": "object"
      +    },
      +    "delete_after_idle_minutes": {
      +      "description": "Idle minutes before deleting a machine from this pool, or null when the pool default is unset.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 5,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/MachinePoolID"
      +    },
      +    "management_kind": {
      +      "$ref": "#/$defs/ManagementKind"
      +    },
      +    "max_machine_cpu": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_machine_memory_mb": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_total_cpu": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_total_machines": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "max_total_memory_mb": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "metadata": {
      +      "$ref": "#/$defs/Metadata"
      +    },
      +    "min_machine_cpu": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "min_machine_memory_mb": {
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "$ref": "#/$defs/ResourceName"
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "provider_auth_secret_id": {
      +      "$ref": "#/$defs/SecretID"
      +    },
      +    "provider_config": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "runtime_protection_enabled": {
      +      "description": "Whether Omnara deletes this pool's machines when the provider remains running after the daemon becomes inactive.",
      +      "type": "boolean"
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "usage": {
      +      "$ref": "#/$defs/MachinePoolUsage",
      +      "description": "Current quota-consuming usage. Populated when the machine pool is returned by the list or get endpoint."
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "name",
      +    "management_kind",
      +    "description",
      +    "provider",
      +    "default_machine_cpu",
      +    "default_machine_memory_mb",
      +    "default_machine_env",
      +    "default_machine_secret_env",
      +    "default_machine_provider_options",
      +    "default_cwd",
      +    "provider_config",
      +    "runtime_protection_enabled",
      +    "max_total_machines",
      +    "max_total_cpu",
      +    "max_total_memory_mb",
      +    "min_machine_cpu",
      +    "min_machine_memory_mb",
      +    "max_machine_cpu",
      +    "max_machine_memory_mb",
      +    "delete_after_idle_minutes",
      +    "metadata",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "type": "object"
      +}
  2. Changed17 schema fields changedv0.1.1
    • addedInput schema / $defs / SecretID / description
      Added value: +"Secret ID (sec_...)."
    • addedInput schema / properties / default_cwd / description
      Added value: +"Default working directory for processes on machines created from the pool after this change."
    • addedInput schema / properties / default_machine_cpu / description
      Added value: +"Default CPU count for new machines in the pool."
    • addedInput schema / properties / default_machine_memory_mb / description
      Added value: +"Default memory in MB for new machines in the pool."
    • addedInput schema / properties / default_machine_provider_options / description
      Added value: +"Provider-specific options applied to new machines in the pool."
    • addedInput schema / properties / description / description
      Added value: +"Optional description of the pool."
    • addedInput schema / properties / max_machine_cpu / description
      Added value: +"Largest CPU count a single machine in the pool can use."
    • addedInput schema / properties / max_machine_memory_mb / description
      Added value: +"Largest memory in MB a single machine in the pool can use."
    • addedInput schema / properties / max_total_cpu / description
      Added value: +"Maximum total CPU across the pool's live machines."
    • addedInput schema / properties / max_total_machines / description
      Added value: +"Maximum number of live machines in the pool."
    • addedInput schema / properties / max_total_memory_mb / description
      Added value: +"Maximum total memory in MB across the pool's live machines."
    • addedInput schema / properties / min_machine_cpu / description
      Added value: +"Smallest CPU count a single machine in the pool can use."
    • addedInput schema / properties / min_machine_memory_mb / description
      Added value: +"Smallest memory in MB a single machine in the pool can use."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / poolID / description
      Added value: +"Machine pool ID (mpo_...)."
    • addedInput schema / properties / provider_auth_secret_id / description
      Added value: +"Secret ID (sec_...)."
    • addedInput schema / properties / provider_config / description
      Added value: +"Provider-specific settings for the pool."
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, and the description usefully adds the 409 Conflict rejection path for disallowed cluster-managed changes. However, it does not disclose what the update actually affects (e.g., whether changes apply only to newly provisioned machines), nor permission requirements, and the PATCH-like 'omitted leaves unchanged' semantics exist only in the schema.

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?

Three dense sentences with no filler, and the tenant-versus-cluster distinction is front-loaded. The only structural weakness is the absence of a one-line statement of what the operation is.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 22-parameter, nested, destructive mutation with an output schema, the description is thin: it omits an explicit purpose statement, does not clarify partial-update versus full-replace behavior, and says nothing about the blast radius on existing machines. The rich schema and annotations carry most of the load, leaving this definition minimally sufficient.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely additive meaning by conditioning which parameters are legal depending on whether the pool is tenant-managed or cluster-managed. It enumerates the permitted field groups (default CPU/memory, env and secret env, per-machine limits, idle deletion policy), which the schema cannot express.

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

Purpose3/5

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

The text never states plainly that this tool updates a machine pool; it opens with conditional field restrictions and references 'changes' and 'request field' without a verb+resource sentence. The reader can infer the purpose from the title, but the description alone never distinguishes this tool from pools_create or pools_get.

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?

It gives a strong conditional constraint: tenant-managed pools accept all fields while cluster-managed pools accept only a listed subset, otherwise 409 Conflict. That is real when-to-use guidance for the fields, but it never addresses how to choose between this tool and sibling pool tools, nor any prerequisites.

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