Skip to main content
Glama

List project machine grants

grant_machines_list
Read-onlyIdempotent

Lists explicit machine grants that can be deleted directly. Pool-derived machine access is managed through project machine pool grants.

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>",
      "projectID": "<projectID>"
    },
    "name": "grant_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.
projectIDYesProject ID (proj_...).

Output Schema

NameRequiredDescriptionDefault
dataYesProject's machine grants on this page, each with its machine.
next_cursorYesCursor for the next page, or null when this is the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • 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)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "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"
      +    },
      +    "MachineSummary": {
      +      "allOf": [
      +        {
      +          "$ref": "#/$defs/MachineSummaryFields"
      +        }
      +      ]
      +    },
      +    "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"
      +    },
      +    "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"
      +    },
      +    "ProjectMachineGrant": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the grant was created."
      +        },
      +        "description": {
      +          "description": "Free-form note about the grant; empty if none was set.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/ProjectMachineGrantID",
      +          "description": "Identifies the machine grant."
      +        },
      +        "machine_id": {
      +          "$ref": "#/$defs/MachineID",
      +          "description": "Machine the project's agents may use."
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/Metadata",
      +          "description": "Key-value metadata attached to the grant."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the grant."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Project the grant gives access to."
      +        },
      +        "project_machine_pool_grant_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/ProjectMachinePoolGrantID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Pool grant that created this grant; null for direct grants."
      +        },
      +        "source_kind": {
      +          "$ref": "#/$defs/ProjectMachineGrantSourceKind",
      +          "description": "Whether the grant was made directly or created for a machine from a pool grant."
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the grant last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "machine_id",
      +        "source_kind",
      +        "description",
      +        "metadata",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectMachineGrantID": {
      +      "pattern": "^pmg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachineGrantListItem": {
      +      "properties": {
      +        "grant": {
      +          "$ref": "#/$defs/ProjectMachineGrant",
      +          "description": "Grant that gives the project access to the machine."
      +        },
      +        "machine": {
      +          "$ref": "#/$defs/MachineSummary",
      +          "description": "Summary of the granted machine."
      +        }
      +      },
      +      "required": [
      +        "grant",
      +        "machine"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectMachineGrantSourceKind": {
      +      "enum": [
      +        "explicit",
      +        "pool"
      +      ],
      +      "type": "string"
      +    },
      +    "ProjectMachinePoolGrantID": {
      +      "pattern": "^pmpg_[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"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "data": {
      +      "description": "Project's machine grants on this page, each with its machine.",
      +      "items": {
      +        "$ref": "#/$defs/ProjectMachineGrantListItem"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "description": "Cursor for the next page, or null when this is the last page.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  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 real value beyond them by disclosing the composition of the returned set and, crucially, that pool-derived machine access is excluded; it says nothing about permissions or result volume, which annotations leave open.

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 short sentences with zero filler, and the inclusion/exclusion distinction is front-loaded before the alternative path is mentioned. Nothing can be removed without losing meaning.

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 and annotations are rich, so return values and safety need not be described. The description covers the one thing structured fields cannot: which grants appear in the list; only fine-grained operational detail like ordering behavior is left entirely to the schema.

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%, with documented glob semantics, sort defaults, limit bounds, and cursor usage, so the schema carries parameter meaning on its own. The description adds no parameter-level detail beyond that, which is the expected baseline when the schema is fully documented.

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 uses a specific verb and resource ("Lists explicit machine grants") and immediately scopes what those grants are by contrasting them with pool-derived access, which is handled elsewhere. It distinguishes the result set from the pool-grant siblings, though it names no sibling tool 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 is implied rather than stated: an agent can infer this is the read path for explicit machine grants while pool-derived access belongs to "project machine pool grants." There is no explicit when-to-use or when-not-to-use instruction, and no mention of prerequisites such as permissions.

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.