Skip to main content
Glama

get_resources

Check current GPU and node availability on SLURM clusters by partition or cluster name to plan jobs and avoid resource conflicts.

Instructions

Get current GPU and node resource availability on the SLURM cluster.

Args:
    partition: Specific partition to check (None for all partitions)
    cluster: Cluster name (required; see ``list_clusters``).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_resources"
  }
}

Input Schema

NameRequiredDescriptionDefault
clusterNo
partitionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv6.0.0
    • addedInput schema / properties / cluster
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cluster"
      +}
    • removedInput schema / properties / transport
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Transport"
      -}
  2. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / transport
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Transport"
      +}
    • removedInput schema / properties / use_ssh
      Removed value: -{
      -  "default": false,
      -  "title": "Use Ssh",
      -  "type": "boolean"
      -}
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it establishes that the data is a live 'current' snapshot scoped to a cluster/partition, which is useful. It says nothing about permissions, whether the query hits the scheduler directly, cost/latency, or whether results can be stale — all relevant for a cluster-query tool.

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?

The core purpose is stated in the first line before the Args block, and the two argument notes are one line each with no filler. The parameter names are restated from the schema, which is conventional but adds little on its own.

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?

This is a simple two-parameter read tool with an output schema, so return values need not be described; scope, defaults, and the cluster-name prerequisite are all covered. The main incompleteness is the unresolved required/optional conflict for the cluster argument.

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 coverage is 0%, so the description must do the work; it explains both parameters, including that a null partition yields all partitions and where to get cluster names. However, it labels cluster as 'required' while the schema marks it nullable with a null default and zero required parameters, which will mislead an agent about the call contract.

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 — 'Get current GPU and node resource availability on the SLURM cluster' — so an agent knows exactly what the call returns. It does not explicitly differentiate itself from siblings like get_config or get_job_status, leaving that comparison to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a concrete prerequisite by noting the cluster argument is required and pointing to ``list_clusters`` to obtain the name, and clarifies that a null partition means all partitions. It stops short of saying when to reach for this tool over get_config or the job-status tools.

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