Skip to main content
Glama

submit_job

Prepare and submit Slurm jobs on the ROMEO HPC cluster via SSH. Simulates submission by default; set confirm=true to actually submit, with options for GPUs, containers, and distributed runtimes.

Instructions

Prepare et soumet un job SLURM. distributed='mpi' couvre le calcul parallele courant (prefixe srun, avec ou sans GPU) ; les familles ddp, accelerate, deepspeed et srun sont propres a PyTorch et ajoutent son point de rendez-vous. Options : container pour une image Apptainer, redirect_caches pour detourner les caches Python hors du home, stage_archive pour mettre un jeu de donnees en memoire vive. data_files choisit les entrees a empreinter au demarrage pour export_job_report (20 fichiers, 64 Mio). En simulation par defaut : rend le script sbatch genere, la partition et l'architecture deduites, et les avertissements de dimensionnement, SANS rien soumettre. Relance avec confirm=true pour soumettre reellement. La partition est deduite du temps demande et l'architecture du besoin en GPU : ne les force que si tu as une raison precise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
archNo
nameYes
arrayNo
nodesNo
mem_gbNo
commandYes
confirmNo
modulesNo
workdirNo
cpu_bindNo
containerNo
partitionNo
data_filesNo
job_tmpdirNo
nccl_debugNo
time_limitNo1h
distributedNo
cpus_per_taskNo
gpus_per_nodeNo
keep_patternsNo
stage_archiveNo
spack_packagesNo
ntasks_per_nodeNo
redirect_cachesNo
secret_env_fileNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds substantial context beyond that – the safe dry-run-by-default flow, the confirm gate to trigger real submission, and the automatic partition/architecture deduction with a warning against overriding. This is exactly the kind of mutation-behavior disclosure annotations cannot carry. No contradiction with the write annotation.

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 dense paragraph that front-loads the core action and dry-run behavior. Every sentence carries information, though the parameter enumeration in the middle is slightly packed and the value would be higher if the most-used params led.

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

Completeness3/5

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

For a 25-parameter, write-capable tool the description covers the distinctive knobs and the simulation/confirm lifecycle well, and an output schema exists so return values need not be explained. But the majority of parameters are still undocumented given 0% schema coverage, leaving a meaningful gap for an agent configuring a job.

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% across 25 parameters, so the description must compensate, and it partially does by explaining distributed, container, redirect_caches, stage_archive, data_files (with the 20-file/64 MiB cap), confirm, partition, and arch. Roughly two-thirds of the parameters (nodes, mem_gb, modules, time_limit, gpus_per_node, array, secret_env_file, etc.) remain undocumented in both places.

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?

Starts with a specific verb+resource ('Prepare et soumet un job SLURM') and characterizes the distributed families it orchestrates, so the agent knows exactly what it generates. It does not, however, draw the boundary against close siblings like submit_array_job, submit_resilient_job, or submit_pipeline, so differentiation is left 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?

Gives clear usage context: runs in simulation by default (returns the sbatch script, deduced partition/arch, sizing warnings) and requires confirm=true to actually submit. It also says not to force partition/arch unless there is a specific reason. It stops short of naming when to prefer an alternative sibling.

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