Skip to main content
Glama

slurm_logs

Read SLURM job output logs by job ID or array task, including logs for jobs submitted through this server, or open a known log file directly by path.

Instructions

Read SLURM job output log. For array jobs pass one task, e.g. "12345_3" (logs are slurm__.out). Remembers the --output pattern of jobs submitted through slurm_submit/slurm_submit_file, so logs of finished jobs are found even where sacct stores no StdOut; pass path to read a known log file directly.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLog file path on the cluster (skips the lookup), e.g. the --output file of a job submitted outside this server
linesNoNumber of lines to read (default 50, use 0 for all)
job_idYesJob ID "12345", or for an array job one task "12345_3"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: it remembers the --output pattern from jobs submitted via slurm_submit/slurm_submit_file and falls back when sacct has no StdOut. 'Read' implies a safe read-only operation, but it doesn't say what happens when a log is missing, whether output is truncated, or whether cluster permissions are required.

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 dense sentences with the core action front-loaded and the array-job and path cases following in logical order. The nested parentheses are slightly heavy but every clause carries real information.

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?

For a simple three-parameter read tool with no annotations and no output schema, the description covers the main call paths and the lookup quirks an agent would otherwise stumble on. Missing are failure behavior (no log found) and any indication of output volume/shape, which matter without an output schema.

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 100%, so job_id, path, and lines are already fully documented in the schema, including the array-task format and the 0-means-all default. The description mostly restates that, adding only the motivating reason for `path` (jobs submitted outside this server) beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Read SLURM job output log') and immediately narrows scope to array-task syntax ('12345_3'). It is unmistakably about retrieving SLURM job logs rather than submitting, cancelling, or reading arbitrary files via ssh_read_file.

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?

It gives concrete conditional guidance: use one task ID for array jobs, and pass `path` to read a known log file directly (including for jobs submitted outside this server). It stops short of stating when to prefer this over a generic file reader or how it relates to slurm_status for jobs that never wrote a log.

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