Skip to main content
Glama

OpenFactory

get_build_evidence

Read a build's durable evidence: why it failed, or why it was certified.

Explicit file="source:fedora_build.sh" reads a bounded, allowlisted root entrypoint from this authorized build's current worktree. This returns source_scope="current_build_source", not a committed-source guarantee. Omitted file never reads or includes build source.

Two things live here, and either may be empty.

goal_completion is the record of a goal's completion. When a goal agent called complete_goal, this is the summary and the verbatim evidence it attached — the test run id, the assertions it read, and what it checked by hand. It is the audit trail for "this goal was declared finished", and this tool is the only place it can be read in full: the owner's goal feed stores a sanitized copy capped at 1200 characters. It stays when a later recipe edit, rebuild or failed re-test withdraws the build's certificate; certification_status is the certificate as the build row has it now.

evidence is the diagnostic output harvested off the build's worktree before deletion. This is the evidence for a build-script result contract failure — the build produced an ISO, but something the recipe declared did not actually happen inside it: a first-run application install that never completed, a GNOME extension that could not be installed. Those failures set certification_status to "uncertified" and write verification_error; they do NOT produce a test run, so get_test_results has nothing for them and their absence is not evidence of health.

What you get, when the build recorded it:

  • of-firstrun-gui-session.log — the only account of what the app actually did. The GUI autostart has no terminal, so without this the serial console shows a boot and a poweroff with a silent gap where the failure is. Carries $HOME, the app's own log tail, DNS and egress, surviving processes, any blocking dialog, and the launcher source.

  • of-firstrun-vm-phase.log — the first-run phase as the VM saw it.

  • of-nspawn-boot.log — the container boot around it.

  • of-boot-session-results.txt — Debian/Fedora graphical-session contract results, including the precise rejected harvest or failed proof.

Each is the last 12 KB of that file, captured at build end. Empty evidence means nothing was harvested for this build, which is the normal case for a build whose contracts all passed. A failed image build carries failed_hook and failure_excerpt. For an existing failed remote assembly, this explicit evidence read recovers its bounded terminal log window using the current build's own owner and attempt binding; it launches no work. Status polling remains local. file selects one of these by name; it does not apply to goal_completion, which is always returned whole.

An unresolved execution's execution_failure.ownership_diagnostics is a closed current-attempt recovery reason and observation-freshness boolean. It discloses no process, worker or lease identity, clears no fence and launches no recovery or image work.

native_diagnostics adds a read-only current-attempt summary of retained native-remaster logs. Only fixed categories, boolean markers and bounded counts are returned; private log text, commands, paths and values are never disclosed. Unavailable or unclassified diagnostics establish no cause and do not change build or certification outcomes.

admission_diagnostics probes transport for this build's saved pending verification launch. It returns only fixed error classes and HTTP status codes, never endpoints, credentials, response bodies or exception text. It creates no run and changes no admission, budget or test outcome.

goal_hold reports a fixed classification and boolean observations for this build's owner-bound goal. Unknown or unavailable observations never authorize clearing a hold or retrying a refused operation. No private goal context, instruction text or exception details are returned.

queue_diagnostics projects only the native queue reason/detail and job status for this owner's current attempt. Unavailable or mismatched facts remain unknown; no worker identity, capacity counts or queue message is returned, and this read never dispatches or changes scheduling. test_network_diagnostics reads closed native allocator/attachment counts only for an exact owner-bound infrastructure-failed run and artifact. A fresh completed native collector observation may accompany them. This read performs no allocation or collection, and unknown ownership remains unknown.

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": {
      "build_id": "<build_id>"
    },
    "name": "get_build_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOne evidence file to return, by the exact name listed in `files` (e.g. of-firstrun-gui-session.log). Omit to get all of them. Explicit source:<entrypoint> (e.g. source:fedora_build.sh) reads only a supported current build entrypoint, never arbitrary files.
api_keyNoYour OpenFactory MCP API key (optional)
build_idYesThe build whose harvested build-script evidence to read.
session_tokenNoSession token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and succeeds: it repeatedly states that the tool launches no work, performs no allocation or scheduling, clears no fence, changes no admission, and returns only bounded, classified diagnostics. It also discloses privacy boundaries around sensitive fields such as endpoints, credentials, log text, paths, and process identity.

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?

The description is front-loaded with purpose and uses sections and bullets, but it is very long and repeatedly restates negative behavioral guarantees across paragraphs. The complexity of the tool justifies some length, yet the text could be tightened without losing essential meaning.

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?

Given the tool's complexity and the presence of an output schema, the description is complete: it explains the two evidence categories, the file selector, the meaning of empty evidence, the relationship to certification_status, and the scope of each diagnostic field. It leaves no significant operational gap for an agent deciding how to call the tool.

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 100%, so the schema already documents all four parameters. The description reiterates the file parameter's naming and omission behavior and adds that file does not apply to goal_completion, but most parameter meaning is already present 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 description opens with a specific verb and resource: 'Read a build's durable evidence: why it failed, or why it was certified.' It clearly distinguishes the two data categories, goal_completion and evidence, and explicitly contrasts itself with get_test_results by noting that test-run absence is not evidence of health.

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?

The description gives clear context for using explicit file reads versus omitted file reads, and explains that evidence addresses build-script result-contract failures while get_test_results covers test-run-based failures. It does not explicitly compare against every sibling diagnostic tool, but the conditions for selecting this tool are well described.

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.