Skip to main content
Glama

OpenFactory

create_app_from_prompt

Turn a one-sentence brief into a queued immutable app deployment.

The returned app_id can be passed to:

  • iterate_app(app_id, instruction='make the header green') to record an iteration (M2 will actually apply it)

  • get_app_build_status(app_id) to check current state

  • set_app_env(app_id, set={KEY:val}) to inject env vars

  • walk_app(app_url=<url>, mode='hybrid') for self-test

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": {
      "brief": "<brief>",
      "template_git_url": "<template_git_url>"
    },
    "name": "create_app_from_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional display name. Derived from the brief if omitted.
waitNoWait briefly for the asynchronous deployment to finish.
briefYesOne-sentence description of what the app should do. Saved to App.origin.brief for future iteration.
branchNoTemplate repo branch.main
api_keyNoMCP API key
use_obsNoUse OBS when true, the image hook when false, or automatic selection when omitted.
base_imageNoBase variant for the deployment.debian-trixie
visibilityNo'public' (anyone with URL can view) or 'private' (gated by your OpenFactory login).public
session_tokenNoSession token
template_git_urlYesHTTPS git URL of a template repo to bake into a fresh app variant.
wait_timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two important traits: the deployment is queued, i.e. asynchronous, and immutable. It also hints that iteration is only recorded now and applied later. It says nothing about authentication needs (`api_key`, `session_token`), failure modes, what happens when `wait_timeout_seconds` expires, or the consequences of immutability when settings change later, which is a meaningful gap for a mutating tool with zero annotation coverage.

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 core purpose is front-loaded in a single dense sentence, and the bulleted follow-up list is genuinely actionable rather than filler. The list consumes most of the character count, however, and pushes the primary routing guidance about when this tool is the right one to call into the background.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return value need not be explained, and the follow-up list covers the lifecycle after the call. For an 11-parameter mutation tool with no annotations, though, the description omits authentication requirements, what 'immutable' means for later modification, error and timeout behavior, and which parameters matter for the common path. It is adequate but incomplete.

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 91%, so nearly every parameter is already documented, which sets the baseline at 3. The description adds meaning only for `brief`, which is described as a one-sentence intent, and for the `app_id` result. It adds nothing about `visibility`, `base_image`, `use_obs`, the `api_key`/`session_token` pair, or timeout behavior beyond what the schema states.

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?

The first sentence gives a specific verb and resource: it converts a one-sentence brief into a queued, immutable app deployment, and it makes clear that the action is asynchronous and that the resulting deployment is immutable. The gap is sibling differentiation: `create_app`, `create_build_from_prompt`, and `create_recipe_from_template` all appear in the catalog, yet the description never says how this differs or which one to prefer.

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

Usage Guidelines3/5

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

It gives strong downstream guidance by listing exactly which tools accept the returned `app_id` and for what purpose, such as iterating, checking status, injecting env vars, and self-testing. However, it gives no 'when not to use' guidance and no comparison against the closely named create_* alternatives, so the choice of which creation tool to call is left 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.