Skip to main content
Glama

OpenFactory

create_build_from_prompt

Start an OpenFactory build from a one-sentence description.

The prompt is delivered to a new conversation's goal session -- the same agent that serves the Build UI. It reads the request, writes the recipe, builds the image, verifies it, and repairs failures on its own. Nothing is authored by the caller.

This spends platform AI: the goal session runs on OpenFactory's model and is metered against your plan's AI allowance. Use create_build instead when you already hold a complete recipe and want to drive it with your own model.

The goal owns the build, so there is no build id yet when this returns: poll list_builds for the returned conversation_id and follow the build with get_build_status(build_id). If the agent needs a decision from you, it asks in the conversation, which you can open in the Build UI.

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": {
      "prompt": "<prompt>"
    },
    "name": "create_build_from_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
themeNoAn Omarchy theme id (GET /api/catalog/themes lists them, e.g. tokyo-night). The build agent applies it and the finished image is verified against it. Firmware built by its own tooling (OpenWrt, Zephyr, GrapheneOS) takes no theme.
promptYesOne sentence describing the image you want, exactly as you would type it into the OpenFactory chat. Example: 'a Fedora 42 workstation ISO with an NVIDIA boot splash and docker preinstalled'.
api_keyNoYour OpenFactory MCP API key (optional)
session_tokenNoSession token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity.
installer_choiceNoHow the image should install to disk when that matters: native, openfactory-installer, calamares, or live_only.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does most of it: it discloses that a remote goal session autonomously writes, builds, verifies and repairs the image, that the call is metered against the plan's AI allowance, and that no build id exists at return time because the goal owns the build. It stops short of failure modes, invalid-prompt behavior, cancellation, or concurrency, which keeps it from a 5.

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?

Four short paragraphs, front-loaded with the action and followed by mechanics, cost, and follow-up in that order. A few phrases (e.g. repeating that the goal owns the build) are slightly redundant but each block serves a distinct purpose.

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?

For an asynchronous, AI-metered tool whose output schema already documents return values, the description supplies everything else an agent needs: cost consequences, autonomous behavior, the absence of an immediate build id, and the exact polling path. Nothing material 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 all five parameters including theme, installer_choice and session_token are already documented in structured data. The description reinforces that the prompt is the sole substantive input ("Nothing is authored by the caller") but adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb and resource ("Start an OpenFactory build") and states the input form (one-sentence description). It explicitly distinguishes itself from the sibling create_build by scope of caller authorship, so an agent can choose between the two without opening either schema.

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?

Gives an explicit routing rule: use this when nothing is authored by the caller, use create_build when you already hold a complete recipe and want your own model. It also prescribes the follow-up workflow (poll list_builds for the conversation_id, then get_build_status), leaving little to inference.

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.