Skip to main content
Glama

OpenFactory

get_obs_package_log

Return the tail of one package's OBS build log.

The default is a bounded current snapshot, never a stream. Set last_completed=true to inspect the last finished native build even while dependencies have scheduled another one. It is historical diagnostic output, not proof that the current source is published. Counts describe that retrieved window, not the complete historical log. To find a failure outside the tail, supply repository, start_byte and literal search_text; next_byte_offset advances one bounded window, and matches include context. Preserve overlap when searching a string across adjacent byte windows. The tail is where a build log says why it failed; the head is boilerplate chroot setup. This returns lines only -- read them, decide what is wrong, fix the source in your repository, publish_internal_repository, and resubmit the same project at the new revision.

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": {
      "project": "<project>",
      "package": "<package>"
    },
    "name": "get_obs_package_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
archNoBuild architecture.x86_64
packageYesOBS package name returned by submit_obs_package.
projectYesFull OBS project path returned by submit_obs_package.
repositoryNoOBS repository such as Debian_13. Defaults to the first repository OBS reports a result for.
start_byteNoOptional bounded historical search offset. Requires repository and search_text.
tail_linesNoHow many trailing log lines to return (max 2000).
search_textNoLiteral text to find within one bounded log window, with nearby context. Requires start_byte and repository.
last_completedNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses that output is a bounded window (default 400, max 2000 lines), that counts describe only the retrieved window, that results are historical rather than authoritative, and that adjacent byte windows need overlap to catch a string spanning the boundary. These are exactly the operational caveats an agent needs before trusting the log.

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?

The key constraint (tail, bounded snapshot) is front-loaded, and most sentences carry distinct information — the failure-location rationale ('the tail is where a build log says why it failed') is a useful heuristic rather than filler. It runs long and the closing remediation paragraph drifts toward workflow coaching, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 shape needn't be described, and the description compensates by covering windowing behavior, search mode, staleness caveats, and the fix-and-resubmit path. For an 8-parameter diagnostic tool this is complete enough to call correctly on the first attempt.

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?

Schema coverage is 88%, so the baseline is 3, and the description adds real meaning on top: it explains why last_completed matters, ties repository/start_byte/search_text together as a coordinated search mode, and notes next_byte_offset advances one window. It doesn't spell out the tail_lines default or arch handling, but those are already documented in the schema.

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 opening sentence gives a specific verb and resource ('Return the tail of one package's OBS build log') and immediately scopes it as a bounded snapshot rather than a stream. It also states what the tool is not (not proof the current source is published), so an agent can distinguish it from status-style siblings without opening the schema.

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?

Guidance is strong and concrete: use last_completed=true when dependencies have already scheduled another build, and supply repository + start_byte + search_text to search outside the tail. It closes the loop with the read-diagnose-fix-publish-resubmit workflow. It does not explicitly contrast with get_obs_package_status, so the when-not-to-use case is only implied.

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.