Skip to main content
Glama

Update project machine pool grant

grant_pools_edit
Destructive

Update a project machine pool grant's overrides and resource limits, using null to inherit pool defaults. Changes apply only to new machine launches; existing machines keep their configuration.

Instructions

Updates the grant's overrides and limits. Omitted fields keep their current values; null clears an override so the grant follows the machine pool again. Overlay objects and metadata are replaced whole when present. Existing machines keep their configuration; the updated defaults and limits apply to new launches.

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>",
      "poolGrantID": "<poolGrantID>",
      "projectID": "<projectID>"
    },
    "name": "grant_pools_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
metadataNoArbitrary key-value labels stored with the resource.
projectIDYesProject ID (proj_...).
default_cwdNoDefault working directory for processes on this project's machines created from the pool after this change.
descriptionNoFree-form note stored with the grant.
poolGrantIDYesProject machine pool grant ID (pmpg_...).
max_total_cpuNoMaximum total CPU across this project's live machines from the pool.
max_machine_cpuNoLargest CPU count one of this project's machines can request.
min_machine_cpuNoSmallest CPU count one of this project's machines can request.
max_total_machinesNoMaximum number of live machines this project can have from the pool.
default_machine_cpuNoDefault CPU count for machines this project creates from the pool, overriding the pool's default.
max_total_memory_mbNoMaximum total memory in MB across this project's live machines from the pool.
max_machine_memory_mbNoLargest memory in MB one of this project's machines can request.
min_machine_memory_mbNoSmallest memory in MB one of this project's machines can request.
default_machine_memory_mbNoDefault memory in MB for machines this project creates from the pool, overriding the pool's default.
delete_after_idle_minutesNoIdle minutes before deleting a machine created through this grant. Use 0 to disable for this grant; null restores inheritance from the pool; omitted leaves it unchanged.
default_machine_env_overlayNoEnv overlay merged over the pool's default_machine_env for machines this project creates from the pool afterward; a null entry removes the key.
default_machine_secret_env_overlayNoSecret env overlay merged over the pool's default_machine_secret_env for machines this project creates from the pool afterward; a null entry removes the key.
default_machine_provider_options_overlayNoProvider-specific options layered over the pool's provider options for this project's machines.

Output Schema

NameRequiredDescriptionDefault
idYesIdentifies the pool grant.
org_idYesOrganization that owns the grant.
metadataYesKey-value metadata attached to the grant.
created_atYesWhen the grant was created.
project_idYesProject the grant lets create machines from the pool.
updated_atYesWhen the grant last changed.
default_cwdYesWorking directory for this project's machines from the pool; empty uses the pool default.
descriptionYesFree-form note about the grant; empty if none was set.
max_total_cpuYesMost vCPUs across this project's live pool machines; null means only the pool limit applies.
machine_pool_idYesPool the project may create machines from.
max_machine_cpuYesMost vCPUs one of this project's machines can request; null uses the pool maximum.
min_machine_cpuYesFewest vCPUs one of this project's machines can request; null uses the pool minimum.
max_total_machinesYesMost live machines this project can have from the pool; null means only the pool limit applies.
default_machine_cpuYesDefault vCPUs for this project's machines from the pool; null uses the pool default.
max_total_memory_mbYesMost memory in MB across this project's live pool machines; null means only the pool limit applies.
max_machine_memory_mbYesMost memory in MB one of this project's machines can request; null uses the pool maximum.
min_machine_memory_mbYesLeast memory in MB one of this project's machines can request; null uses the pool minimum.
default_machine_memory_mbYesDefault memory in MB for this project's machines from the pool; null uses the pool default.
delete_after_idle_minutesYesIdle minutes before deleting a machine created through this grant. Zero disables deletion for this grant; null inherits the pool default.
default_machine_env_overlayYesEnv overlay merged over the pool's default_machine_env for machines materialized through this grant; a null entry removes the key.
default_machine_secret_env_overlayYesSecret env overlay merged over the pool's default_machine_secret_env for machines materialized through this grant; a null entry removes the key.
default_machine_provider_options_overlayYesProvider options layered over the pool's for this project's machines.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.10
    • changedInput schema / properties / delete_after_idle_minutes / description
      Previous value: -"Idle minutes before deleting a machine created through this grant. Use 0 to disable for this grant; null restores inheritance from the pool; omitted leaves it unchanged. Values from 1 through 4 are invalid."New value: +"Idle minutes before deleting a machine created through this grant. Use 0 to disable for this grant; null restores inheritance from the pool; omitted leaves it unchanged."
    • changedInput schema / properties / description / description
      Previous value: -"Optional note about this grant."New value: +"Free-form note stored with the grant."
    • changedInput schema / properties / metadata / description
      Previous value: -"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters."New value: +"Arbitrary key-value labels stored with the resource."
    • 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
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "MachinePoolID": {
      +      "description": "Machine pool ID (mpo_...).",
      +      "pattern": "^mpo_[a-z2-7]{26}$",
      +      "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"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachinePoolGrantID": {
      +      "pattern": "^pmpg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the grant was created."
      +    },
      +    "default_cwd": {
      +      "description": "Working directory for this project's machines from the pool; empty uses the pool default.",
      +      "type": "string"
      +    },
      +    "default_machine_cpu": {
      +      "description": "Default vCPUs for this project's machines from the pool; null uses the pool default.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "default_machine_env_overlay": {
      +      "additionalProperties": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "description": "Env overlay merged over the pool's default_machine_env for machines materialized through this grant; a null entry removes the key.",
      +      "type": "object"
      +    },
      +    "default_machine_memory_mb": {
      +      "description": "Default memory in MB for this project's machines from the pool; null uses the pool default.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "default_machine_provider_options_overlay": {
      +      "additionalProperties": true,
      +      "description": "Provider options layered over the pool's for this project's machines.",
      +      "type": "object"
      +    },
      +    "default_machine_secret_env_overlay": {
      +      "additionalProperties": {
      +        "pattern": "^sec_[a-z2-7]{26}$",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "description": "Secret env overlay merged over the pool's default_machine_secret_env for machines materialized through this grant; a null entry removes the key.",
      +      "type": "object"
      +    },
      +    "delete_after_idle_minutes": {
      +      "description": "Idle minutes before deleting a machine created through this grant. Zero disables deletion for this grant; null inherits the pool default.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "oneOf": [
      +        {
      +          "const": 0
      +        },
      +        {
      +          "maximum": 2147483647,
      +          "minimum": 5,
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "description": {
      +      "description": "Free-form note about the grant; empty if none was set.",
      +      "type": "string"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/ProjectMachinePoolGrantID",
      +      "description": "Identifies the pool grant."
      +    },
      +    "machine_pool_id": {
      +      "$ref": "#/$defs/MachinePoolID",
      +      "description": "Pool the project may create machines from."
      +    },
      +    "max_machine_cpu": {
      +      "description": "Most vCPUs one of this project's machines can request; null uses the pool maximum.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_machine_memory_mb": {
      +      "description": "Most memory in MB one of this project's machines can request; null uses the pool maximum.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 1,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_total_cpu": {
      +      "description": "Most vCPUs across this project's live pool machines; null means only the pool limit applies.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_total_machines": {
      +      "description": "Most live machines this project can have from the pool; null means only the pool limit applies.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "max_total_memory_mb": {
      +      "description": "Most memory in MB across this project's live pool machines; null means only the pool limit applies.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "metadata": {
      +      "$ref": "#/$defs/Metadata",
      +      "description": "Key-value metadata attached to the grant."
      +    },
      +    "min_machine_cpu": {
      +      "description": "Fewest vCPUs one of this project's machines can request; null uses the pool minimum.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "min_machine_memory_mb": {
      +      "description": "Least memory in MB one of this project's machines can request; null uses the pool minimum.",
      +      "format": "int32",
      +      "maximum": 2147483647,
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID",
      +      "description": "Organization that owns the grant."
      +    },
      +    "project_id": {
      +      "$ref": "#/$defs/ProjectID",
      +      "description": "Project the grant lets create machines from the pool."
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp",
      +      "description": "When the grant last changed."
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "project_id",
      +    "machine_pool_id",
      +    "description",
      +    "default_machine_cpu",
      +    "default_machine_memory_mb",
      +    "default_machine_env_overlay",
      +    "default_machine_secret_env_overlay",
      +    "default_machine_provider_options_overlay",
      +    "default_cwd",
      +    "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 / properties / default_cwd / description
      Added value: +"Default working directory for processes on this project's machines created from the pool after this change."
    • addedInput schema / properties / default_machine_cpu / description
      Added value: +"Default CPU count for machines this project creates from the pool, overriding the pool's default."
    • addedInput schema / properties / default_machine_env_overlay / description
      Added value: +"Env overlay merged over the pool's default_machine_env for machines this project creates from the pool afterward; a null entry removes the key."
    • addedInput schema / properties / default_machine_memory_mb / description
      Added value: +"Default memory in MB for machines this project creates from the pool, overriding the pool's default."
    • addedInput schema / properties / default_machine_provider_options_overlay / description
      Added value: +"Provider-specific options layered over the pool's provider options for this project's machines."
    • addedInput schema / properties / default_machine_secret_env_overlay / description
      Added value: +"Secret env overlay merged over the pool's default_machine_secret_env for machines this project creates from the pool afterward; a null entry removes the key."
    • addedInput schema / properties / description / description
      Added value: +"Optional note about this grant."
    • addedInput schema / properties / max_machine_cpu / description
      Added value: +"Largest CPU count one of this project's machines can request."
    • addedInput schema / properties / max_machine_memory_mb / description
      Added value: +"Largest memory in MB one of this project's machines can request."
    • addedInput schema / properties / max_total_cpu / description
      Added value: +"Maximum total CPU across this project's live machines from the pool."
    • addedInput schema / properties / max_total_machines / description
      Added value: +"Maximum number of live machines this project can have from the pool."
    • addedInput schema / properties / max_total_memory_mb / description
      Added value: +"Maximum total memory in MB across this project's live machines from the pool."
    • addedInput schema / properties / min_machine_cpu / description
      Added value: +"Smallest CPU count one of this project's machines can request."
    • addedInput schema / properties / min_machine_memory_mb / description
      Added value: +"Smallest memory in MB one of this project's machines can request."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / poolGrantID / description
      Added value: +"Project machine pool grant ID (pmpg_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds real substance: omitted fields are preserved, null clears an override back to pool inheritance, and overlay objects and metadata are replaced wholesale when present. It also scopes the blast radius by noting existing machines keep their configuration and changes apply to new launches, which is exactly the clarification a destructive tool needs. Auth requirements and failure modes are unstated.

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 tight sentences, each carrying distinct information: update scope, preservation/clearing rules, replacement semantics, and effect timing. The most consequential rule (omitted keeps, null clears) is front-loaded with no filler.

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 19-parameter destructive update with an output schema and full schema coverage, the description covers the semantics an agent actually needs. The only real gap is routing guidance among the many grant_* siblings, which is left to inference from the verb.

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, and the description earns an extra point by generalizing the omitted/null/replace semantics that apply across all 19 fields rather than only being documented per-parameter. That framing helps an agent reason about the overlay and metadata objects where whole-replacement behavior is not obvious from the schema alone.

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?

States a specific verb and resource: updates the grant's overrides and limits, which distinguishes it from add/delete/get siblings by operation. It never names grant_pools_add, grant_pools_delete, or grant_pools_get explicitly, so differentiation rests on the verb alone.

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 is implied by 'updates' versus the add/delete/get siblings, and the description does explain update-mode behavior (partial vs full replacement). There is no explicit when-to-use statement, no mention of reading current values first via grant_pools_get, and no prerequisites such as required permissions.

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