Skip to main content
Glama

get_job_logs

Retrieve the latest lines of a fine-tuning job's training log to monitor progress and diagnose issues. Specify the job ID and optional tail count.

Instructions

The last lines of a job's training log.

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
tailNo
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/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 behavioral burden. 'Last lines' implies truncation but does not state the default line count, whether the log is partial or complete, whether logs exist for queued/finished jobs, or what happens when no log is available — all material for a diagnostics tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no padding, which is good, but the brevity comes from omission rather than compression — there is no leading verb and no follow-up detail to justify the fragment form.

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 simple two-parameter read tool with no annotations and no output schema, the description should still cover truncation behavior and error cases. It provides almost none of that, leaving the agent unsure what it will actually receive.

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 0%, so the description needed to explain both parameters and does not. 'Last lines' loosely gestures at the tail parameter but gives no default, no indication that values are capped at 2000, and says nothing about the job_id format beyond the schema's own required constraint.

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

Purpose3/5

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

The phrase 'a job's training log' plus 'last lines' identifies the resource and the slice returned, which is more specific than the name alone. But it is a noun fragment with no verb, so it never says 'retrieve/fetch', and it offers no contrast with the sibling get_job, which likely also surfaces job data.

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 when-to-use guidance at all: nothing says to call this when debugging a failed or running job, nor when to prefer get_job or list_jobs instead. The agent must infer the entire selection context from the phrase 'training log'.

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