Skip to main content
Glama

Get project machine pool grant

grant_pools_get
Read-onlyIdempotent

Retrieve a project’s machine-pool grant to see its default overrides and limits; null fields mean the pool’s own values apply.

Instructions

Returns one project's grant for a machine pool, with the defaults and limits it sets on top of the pool's own. Null fields set no override, so the pool's value applies.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
projectIDYesProject ID (proj_...).
poolGrantIDYesProject machine pool grant ID (pmpg_...).

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. Changed1 schema field changedv0.1.10
    • 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. Changed3 schema fields changedv0.1.1
    • 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

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so safety is covered. The description adds real domain behavior beyond that: the returned grant carries defaults and limits layered over the pool's own, and null fields mean no override so the pool value applies. Not-found behavior is the only notable omission.

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?

Two short sentences, front-loaded with what is returned, then the null-override semantics. Every sentence earns its place with no filler, though the second sentence could be tightened slightly.

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 three-ID read with full schema coverage, complete annotations, and an output schema (so return shape needn't be described), the description supplies exactly the missing piece: how overrides and pool defaults interact. Nothing an agent needs to call it correctly is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and every parameter carries a pattern and ID prefix description, so the schema fully documents the inputs. The description's extra note about null override fields complements rather than duplicates the schema.

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: 'Returns one project's grant for a machine pool,' and the word 'one' implicitly contrasts with the list sibling. It does not explicitly name grant_pools_list, but the singular scope 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 only implied by the required IDs — an agent can infer this is the single-record read alongside grant_pools_list. There is no explicit when-to-use statement, no mention of what to do if the grant does not exist, and no named alternative.

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