Skip to main content
Glama

List machines

machines_list
Read-onlyIdempotent

Lists accessible BYO and pooled machines with connection states, sortable/filterable and paginated, so callers can inspect available compute.

Instructions

Lists the machines the caller can see, both BYO and pooled, newest first by default, with each one's connection state. Items are summaries without execution defaults or metadata.

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>"
    },
    "name": "machines_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive glob over the list's logical name. `*` matches zero or more characters, `?` matches one character, and `\` escapes a wildcard.
sortNoField to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
limitNoMaximum number of items to return in one page.
orgIDYesOrganization ID (org_...).
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit for the first page.
source_kindNoFilter machines by source kind. Omit to include both BYO and pooled machines.
machine_pool_idNoReturn only machines provisioned by this machine pool.

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.10
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order for named resources that expose created and modified timestamps."New value: +"Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first)."
    • removedInput schema / properties / source_kind / x-enum-varnames
      Removed value: -[
      -  "MachineSourceKindBYO",
      -  "MachineSourceKindPool"
      -]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "MachineAccess": {
      +      "properties": {
      +        "can_manage": {
      +          "type": "boolean"
      +        },
      +        "sources": {
      +          "items": {
      +            "$ref": "#/$defs/MachineAccessSource"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "can_manage",
      +        "sources"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineAccessSource": {
      +      "properties": {
      +        "grant_id": {
      +          "$ref": "#/$defs/ProjectMachineGrantID"
      +        },
      +        "grant_source_kind": {
      +          "$ref": "#/$defs/ProjectMachineGrantSourceKind"
      +        },
      +        "kind": {
      +          "$ref": "#/$defs/MachineAccessSourceKind"
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineAccessSourceKind": {
      +      "enum": [
      +        "org_role",
      +        "project_machine_grant"
      +      ],
      +      "type": "string"
      +    },
      +    "MachineConnectionState": {
      +      "enum": [
      +        "online",
      +        "asleep",
      +        "offline"
      +      ],
      +      "type": "string"
      +    },
      +    "MachineID": {
      +      "description": "Machine ID (mch_...).",
      +      "pattern": "^mch_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachineLifecycleState": {
      +      "enum": [
      +        "provisioning",
      +        "provision_failed",
      +        "active",
      +        "deleting",
      +        "delete_failed",
      +        "deleted"
      +      ],
      +      "type": "string"
      +    },
      +    "MachineSourceKind": {
      +      "enum": [
      +        "byo",
      +        "pool"
      +      ],
      +      "type": "string"
      +    },
      +    "MachineSummaryFields": {
      +      "description": "Shared machine fields composed into machine response schemas. Composing schemas close their final shape with unevaluatedProperties.",
      +      "properties": {
      +        "connection_state": {
      +          "$ref": "#/$defs/MachineConnectionState",
      +          "description": "Whether the machine's daemon is connected now."
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the machine record was created."
      +        },
      +        "deleted_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When the machine finished deleting; null while it still exists."
      +        },
      +        "description": {
      +          "description": "Free-form note about the machine; empty if none was set.",
      +          "type": "string"
      +        },
      +        "display_name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Machine name; agent configs reference a BYO machine by this as machine_name."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/MachineID",
      +          "description": "Identifies the machine."
      +        },
      +        "last_observed_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When the daemon last registered or sent a heartbeat; null if it has never connected."
      +        },
      +        "lifecycle_state": {
      +          "$ref": "#/$defs/MachineLifecycleState",
      +          "description": "Where the machine is in provisioning or deletion, independent of whether its daemon is connected."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the machine."
      +        },
      +        "provider": {
      +          "description": "Sandbox provider that hosts a pool machine; byo for bring-your-own machines.",
      +          "type": "string"
      +        },
      +        "source_kind": {
      +          "$ref": "#/$defs/MachineSourceKind",
      +          "description": "Whether the machine is a bring-your-own computer or was created from a machine pool."
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the machine record last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "source_kind",
      +        "display_name",
      +        "description",
      +        "provider",
      +        "lifecycle_state",
      +        "connection_state",
      +        "last_observed_at",
      +        "deleted_at",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachineGrantID": {
      +      "pattern": "^pmg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachineGrantSourceKind": {
      +      "enum": [
      +        "explicit",
      +        "pool"
      +      ],
      +      "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"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "VisibleMachine": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/MachineSummaryFields"
      +        },
      +        {
      +          "properties": {
      +            "access": {
      +              "$ref": "#/$defs/MachineAccess"
      +            }
      +          },
      +          "required": [
      +            "access"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "$ref": "#/$defs/VisibleMachine"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the visibility scope ("the caller can see"), the default ordering, the inclusion of connection state, and the fact that returned items are summaries lacking execution defaults or metadata. That last point materially shapes what an agent can do with the result.

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?

A single dense sentence, front-loaded with the verb and scope, followed by ordering and payload characteristics. Every clause carries information an agent needs; nothing is redundant padding.

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?

An output schema exists, so return values need not be spelled out, and the description still usefully flags that items are summaries. Pagination and the cursor are covered by the schema but not mentioned in prose, which is the only small gap for a list tool of this complexity.

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 all seven parameters — including glob syntax, sort enum, limit, cursor, source_kind and machine_pool_id — are already documented. The description only restates the default sort and the BYO/pool union, which the schema already says. Baseline 3 is appropriate; no extra semantic meaning is contributed.

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 description states a specific verb and resource ("Lists the machines") plus meaningful scope: caller-visible only, both BYO and pooled, newest first, and connection state included. It does not distinguish itself from siblings such as machines_get or grant_machines_list, so it falls short of the 5 bar, but the purpose is unambiguous.

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 rather than stated — an agent can infer this is the enumeration call, and the note that items are "summaries without execution defaults or metadata" hints that a detail call is needed for full machine config. There is no explicit when-to-use versus machines_get or grant_machines_list, and no exclusions are named.

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