Skip to main content
Glama

get_job_logs

Retrieve stdout and stderr logs for a SLURM job using its job ID; optionally specify job name and cluster to locate the correct log files.

Instructions

Get stdout/stderr logs for a SLURM job.

Args:
    job_id: SLURM job ID
    job_name: Optional job name to help locate log files
    cluster: Cluster name (required; see ``list_clusters``).

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": "get_job_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
clusterNo
job_nameNo

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

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it delivers little: no mention of permissions, whether logs can be large or truncated, what happens when log files are missing or the job is still pending/running, or whether the read is safe. The presence of an output schema offsets the need to describe return values, but failure and size behavior remain undisclosed.

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?

Front-loaded one-line purpose followed by a compact Args block; every line maps to a parameter and nothing is padded. The Google-docstring style is functional, though it adds no structure beyond the parameter list.

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?

With an output schema present, return values need no explanation, and the parameter names are all addressed. What is missing relative to a log-retrieval tool is any statement about log availability, truncation, or the required/optional mismatch on cluster, leaving gaps an agent may hit at call time.

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 description coverage is 0%, so the description has to compensate, and it does explain each of the three parameters — including the useful note that job_name merely helps locate log files. However, it labels cluster as "required" while the schema marks it optional (default null, only job_id is required), which is a substantive inaccuracy that could cause an agent to always supply a cluster.

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 opens with a specific verb and resource ("Get stdout/stderr logs for a SLURM job"), which distinguishes it from siblings like get_job_status and list_jobs by naming exactly what artifact is returned. It stops short of explicitly contrasting itself with the closest sibling, get_job_status, so a 4 rather than a 5.

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: an agent infers it should call this when it needs log output rather than status. The one routing hint — "see list_clusters" for the cluster parameter — helps resolve a parameter but says nothing about when this tool is preferred over get_job_status or after which operations logs become meaningful.

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