Skip to main content
Glama

List project machine pool grants

grant_pools_list
Read-onlyIdempotent

Lists the machine pools a project can use to create machines, returning one grant per pool and defaulting to the most recently granted first.

Instructions

Lists the machine pools a project can create machines from, one grant per pool, most recently granted first by default.

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_pools_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_...).
machine_pool_idNoReturn only the grant for this machine pool.

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "MachinePoolID": {
      +      "description": "Machine pool ID (mpo_...).",
      +      "pattern": "^mpo_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachinePoolSummary": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "description": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/MachinePoolID"
      +        },
      +        "management_kind": {
      +          "$ref": "#/$defs/ManagementKind"
      +        },
      +        "name": {
      +          "$ref": "#/$defs/ResourceName"
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "provider": {
      +          "type": "string"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "name",
      +        "management_kind",
      +        "description",
      +        "provider",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "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"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachinePoolGrant": {
      +      "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"
      +    },
      +    "ProjectMachinePoolGrantID": {
      +      "pattern": "^pmpg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachinePoolGrantListItem": {
      +      "properties": {
      +        "grant": {
      +          "$ref": "#/$defs/ProjectMachinePoolGrant"
      +        },
      +        "machine_pool": {
      +          "$ref": "#/$defs/MachinePoolSummary"
      +        }
      +      },
      +      "required": [
      +        "grant",
      +        "machine_pool"
      +      ],
      +      "type": "object"
      +    },
      +    "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": {
      +      "items": {
      +        "$ref": "#/$defs/ProjectMachinePoolGrantListItem"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.1.1
    • 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.6/5.0
Behavior3/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 fully covered. The description adds the useful ordering default ('most recently granted first') and the one-grant-per-pool cardinality, but that ordering default is largely restated in the schema's sort description, and pagination behavior is left to 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?

A single well-formed sentence with no filler, and the key resource description is front-loaded. It is appropriately sized for a simple read-only list operation, though the trailing ordering clause slightly duplicates the schema's sort documentation.

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 read-only, non-destructive list tool with an output schema and full schema coverage, this is sufficient: the agent knows what is returned, the default ordering, and the project scoping. Filtering and pagination details live in the schema where they belong.

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 every parameter including the name glob, sort enum, limit, cursor and machine_pool_id filter is already documented in the schema. The description adds no parameter-level meaning beyond what the structured fields provide, so the baseline of 3 applies.

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 names a specific verb and resource ('Lists the machine pools a project can create machines from') and adds a semantic detail that one grant per pool is returned, so it is clearly a grant-listing tool rather than a pool-listing one. It does not explicitly name siblings like pools_list or grant_pools_get, so differentiation is implied rather than stated.

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 by 'machine pools a project can create machines from', which tells the agent this is for inspecting which pools are granted to a project. There is no explicit when-to-use versus grant_pools_get/pools_list guidance and no stated prerequisites beyond the required org/project scoping in the schema.

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