Skip to main content
Glama

OpenFactory

update_build_recipe

Replace a build's canonical recipe and graph.

Validates and canonicalizes the complete recipe. The resulting immutable recipe revision is also the console graph's source, so graph changes are visible immediately without a second write.

Topology and test edits do NOT rebuild the image; changes to os.features / packages / services take effect on the next build_image attempt.

The response reports recipe_hash_before/recipe_hash_after and changed. changed: false means this call stored the same document that was already there — it is not a repair, and rebuilding from it produces the same image.

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>",
      "recipe": "<recipe>"
    },
    "name": "update_build_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
recipeYesThe COMPLETE updated recipe JSON (or a JSON string). Fetch the current recipe from describe_openfactory_workspace first, modify it, and pass the whole document back — partial recipes will drop the omitted sections.
api_keyNoYour OpenFactory MCP API key (optional)
build_idYesThe build/variant whose recipe to replace
version_noteNoShort note describing the change (shown in version history)
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.1/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 behavioral burden and does so well: it discloses validation/canonicalization, that the stored revision is immutable, that graph changes propagate immediately without a second write, and that no rebuild is triggered. It also explains the meaning of the response fields and warns that changed: false is not a repair — exactly the kind of context annotations would otherwise provide.

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 mutation and graph-visibility behavior is front-loaded, and each paragraph covers a distinct concern (what it does, side effects, response semantics). The hash/changed discussion slightly overlaps with the output schema, but it earns its place by clarifying the counterintuitive changed: false case.

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?

For a mutation tool with five parameters, an output schema, and no annotations, the description covers effects, prerequisites, and response semantics thoroughly. Minor gaps remain around version_note and session continuity, whose guidance lives only in the schema.

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 each parameter, making 3 the baseline. The description reinforces the critical semantic of the recipe parameter (send the complete document; partial recipes drop omitted sections) and the hash outputs, but adds little beyond what the schema text already says.

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?

"Replace a build's canonical recipe and graph" gives a specific verb (replace) and resource (recipe/graph), and adds scope detail that separates it from read-only siblings like get_recipe or validate_recipe. It stops short of naming an alternative explicitly, so sibling differentiation is inferred rather than stated.

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?

It states a clear prerequisite workflow ("Fetch the current recipe from describe_openfactory_workspace first, modify it, and pass the whole document back") and clarifies what downstream effects follow (topology/test edits do not rebuild; os.features/packages/services take effect on the next build_image). It does not contrast against create_recipe_from_template or validate_recipe, so exclusion guidance is missing.

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.