Skip to main content
Glama

OpenFactory

check_image_inputs

Pre-flight the authored config/ against the recipe before build_image.

Read-only, seconds, no network. Returns EVERY gap it finds in one list: effective-feature, os.packages and service packages missing from the install lists; vendor sources and signing keys missing for third-party packages (from the feature files' third_party_repo / repos); desktop-session plumbing the build-knowledge store records for the desktop in play; recipe users nothing under config/ creates; GNOME Shell extensions built for another shell than base_image ships, or pinned ones left unstaged; base-release settings that name another release than base_image; and hooks you wrote that download during the build (curl, wget, git clone, pip/npm/cargo install, key servers, a package manager given a URL), each named with the route that replaces the download.

If the build has no worktree_path, call build_image to restore preparation for this same build. Its authoring_required result returns before assembly; inspect and restore the accepted config/, then repeat this preflight.

It refuses nothing and changes nothing. Fix everything in problems before calling build_image; notes name what it could not verify, and features with no package mapping on this base, which install nothing until you add their packages to os.packages or drop them. An empty list covers these checks only; it is not proof the tree is complete.

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

Input Schema

NameRequiredDescriptionDefault
api_keyNoOpenFactory MCP API key (optional).
build_idYesThe build whose authored config/ to check.
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.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: read-only, seconds, no network, refuses nothing, changes nothing, and returns every gap in a single list. It also discloses the important nuance that an empty list is not proof of completeness and that notes name what could not be verified.

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 critical constraints (purpose, read-only/no-network, run before build_image) are front-loaded, and each enumerated check carries real information. The middle catalogue of checks is dense and reads as a wall of prose, which costs some scannability, but no sentence is purely filler.

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?

The tool is a complex multi-check validator, yet the description enumerates the check families, the failure-handling path, and the semantics of problems versus notes; an output schema exists, so raw return shape need not be explained. Nothing an agent needs to call it correctly is missing.

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 build_id, api_key and session_token are already documented in the schema; the description adds only the framing that build_id refers to the build whose config/ is checked. Baseline 3 is appropriate since the schema does the heavy lifting.

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 (pre-flight), a specific resource (authored config/ against the recipe), and an explicit temporal relationship to a named sibling (before build_image). It is immediately distinguishable from build_image, which would consume the same config/.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when to call it (before build_image), what to do with the results (fix everything in problems first), and covers the alternative path when there is no worktree_path by directing the agent to build_image to restore preparation. Exclusions and sequencing are spelled out rather than inferred.

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.