Skip to main content
Glama

template_save

Save reusable SLURM job templates with preset resources, partitions, and preamble commands to standardize and reuse HPC job configurations.

Instructions

Save a reusable SLURM job template

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

Input Schema

NameRequiredDescriptionDefault
memNo
gpusNo
nameYesTemplate name (e.g. "gpu-a100", "cpu-quick")
timeNo
preambleNoExtra shell lines injected after HPC_PREAMBLE and before cd/the main script when this template is used
partitionNo
cpus_per_taskNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and discloses almost nothing: it does not say whether saving is persistent across sessions, whether an existing template with the same name is overwritten, what validation happens on the SLURM fields, or what the tool reports back on success. Only the "reusable" adjective hints at longevity.

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 front-loaded sentence with no filler, so nothing is wasted. The tradeoff is under-specification rather than verbosity: the sentence is shorter than a 7-parameter mutation tool warrants.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write operation with no annotations, no output schema, and mostly undocumented parameters, the definition leaves critical questions unanswered — persistence, overwrite semantics, and how the template is consumed later. What is present is accurate but far from sufficient for the tool's complexity.

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

Parameters2/5

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

Schema description coverage is only 29% (2 of 7 parameters documented), so the description needed to compensate and does not — it names no parameter and explains no format for mem, time, partition, gpus, or cpus_per_task. The phrase "SLURM job template" gives weak framing that these fields mirror SLURM directives, but nothing more concrete.

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 pairs a specific verb ("Save") with a specific resource ("reusable SLURM job template"), which is enough to distinguish it from the read-only sibling template_list. It stops short of stating whether saving an existing name creates a duplicate or overwrites it, so the purpose is clear but not fully disambiguated.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of designing a job ad hoc, nor any mention of the sibling template_list for retrieving saved templates. The word "reusable" implies the template will later be applied to submissions, but no explicit when/when-not condition is given.

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