Skip to main content
Glama

logs

Retrieve the last N log lines for a job, including timestamped stdout and stderr; pass since_seq to follow live output.

Instructions

Últimas N líneas del log de un job (stdout+stderr con marca de tiempo, sin buffering). Para seguirlo en vivo pasa since_seq=<last_seq de la llamada anterior>.

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

Input Schema

NameRequiredDescriptionDefault
tailNo
job_idYes
streamNoall
since_seqNoSolo líneas posteriores a este número

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the behavior burden, and it does disclose useful traits: combined stdout/stderr, timestamped lines, no buffering, and incremental reading via a cursor. It omits permissions, error behavior for an unknown/finished job, and what else the response returns beyond last_seq.

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

Conciseness5/5

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

Two tight sentences, front-loaded with what is returned and followed by the one operational instruction that matters for polling. No waste.

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?

An output schema exists, so return values need not be explained here. For a 4-parameter read tool the description covers the essential retrieval and continuation semantics; only the 'core' stream value and failure modes are unaddressed.

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 only 25%, so the description must compensate. It adds meaning to tail ('N líneas'), to stream (implying stdout+stderr are combined under 'all'), and gives since_seq a concrete feeding pattern beyond the schema's terse 'Solo líneas posteriores a este número'. However, the 'core' enum value and the 1-2000 tail bounds are left unexplained.

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?

States a specific resource and scope: the last N lines of a job's log, explicitly combining stdout+stderr with timestamps. An agent can tell this is a log-reading tool distinct from status/list_jobs/cancel, though the description never names or contrasts those siblings.

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 concrete usage guidance for the live-follow case: pass since_seq with the last_seq returned by the previous call. That is a real 'when to do X' instruction, but there is no guidance on when not to use it or which sibling to pick instead.

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

Deploy Server

Other Tools