Skip to main content
Glama

gluecron_get_workflow_logs

Read-only

Return a workflow run's logs plus a failure summary. Always includes run metadata (number, workflow, event, ref, sha), per-job and per-step status / exit code / duration, failedSteps (job / step) and testFailures (failing test names, read from each step's structured results parsed before its log was cut, or the reason they cannot all be named; null when no job failed). testFailures.details marks each failure flaky (an active forensic label with a repro, from another run — with its label and flip rate), known (also failing on the default branch's latest run), infra (timed out under load) or new, with its file, message, the targeted retry's verdict and this run's determinism-forensics finding (forensic: class, label, variable, repro) when they ran. A step whose log was cut carries fullLog (artifact download of the uncut output). step (a step name or 1-based position within its job) returns only that step's stdout/stderr; tail_lines keeps the last N lines. The full per-job logs are included only when neither is given. JSON-friendly companion to the ZIP-download endpoint. A private repository's logs require 'repo' scope (OAuth: write:repo); every token read is audited.

Input Schema

NameRequiredDescriptionDefault
repoYes
stepNoOnly this step's logs: its name (exact, else substring, case-insensitive) or its 1-based position within its job
ownerYes
run_idYesThe run's id, or a unique leading part of it (8+ hex characters)
tail_linesNoKeep only the last N lines of each returned log (max 5000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / step
      Added value: +{
      +  "description": "Only this step's logs: its name (exact, else substring, case-insensitive) or its 1-based position within its job",
      +  "type": "string"
      +}
    • addedInput schema / properties / tail_lines
      Added value: +{
      +  "description": "Keep only the last N lines of each returned log (max 5000)",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / run_id / description
      Added value: +"The run's id, or a unique leading part of it (8+ hex characters)"
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only safety, and the description still adds real behavioral context beyond them: the 'repo' scope / OAuth write:repo requirement, that every token read is audited, and that a truncated step exposes `fullLog` as an artifact download. It stops short of stating pagination, size limits, or latency, which is the only remaining gap.

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?

Purpose is front-loaded, but the middle is a single dense run of nested parentheticals describing testFailures categories and forensic fields that is difficult to parse on one read. The detail is largely justified because there is no output schema, but the packing is heavy for the payload.

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?

There is no output schema, so the description carries the return shape itself: run metadata, per-job/per-step status, exit code, duration, failedSteps, testFailures with its classification taxonomy, and fullLog. Combined with the auth note this is close to complete, with only pagination/size expectations absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 60% schema coverage, the description compensates by explaining `step` (a name exact-then-substring case-insensitive, or 1-based position within its job) and the interaction rule that full logs appear only when neither `step` nor `tail_lines` is passed. It adds meaning beyond the schema, though `owner`/`repo` are left entirely to the schema.

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 opening sentence names a specific verb and resource ('Return a workflow run's logs plus a failure summary') and adds a scope distinction via 'JSON-friendly companion to the ZIP-download endpoint'. It never names an actual sibling tool (e.g. get_workflow_run, explain_failure), so the differentiation is by shape of output rather than by sibling routing.

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 implied through parameter behavior rather than stated as guidance: '`step` ... returns only that step's stdout/stderr; `tail_lines` keeps the last N lines. The full per-job logs are included only when neither is given.' There is no explicit statement of when to prefer this over explain_failure or get_workflow_run, nor any exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources