Skip to main content
Glama

OpenFactory

iterate_app

Dispatch a natural-language change to an app and have it applied for you.

A repair agent reproduces, applies the change to the app deployed in its sandbox VM, redeploys, and verifies. Works on any app you own that has a git source. Poll get_app_build_status(app_id) for the live thread status (queued -> working -> done/failed). Persisting the change back to your git repo (via a connected GitHub integration) is a follow-up capability.

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": {
      "app_id": "<app_id>",
      "instruction": "<instruction>"
    },
    "name": "iterate_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp ID (from create_app or create_app_from_prompt).
api_keyNoMCP API key
thread_idNoOptional prior thread id to continue an existing request.
instructionYesWhat to change in plain language. Examples: 'make the header green', 'add a CSV export button', 'fix the broken submit button'. A repair agent applies the change to the app in its sandbox VM and redeploys.
session_tokenNoSession token
context_envelopeNoOptional context about where the change applies (route, page, etc.).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/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 well: it discloses the sandbox VM execution model, the redeploy/verify cycle, the required git source, the asynchronous queued -> working -> done/failed lifecycle, and the fact that changes are not written back to the repo. It omits permissions/auth expectations and what happens to prior app state on failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short paragraphs, front-loaded with the action, then the mechanism, then the status-check and persistence caveat. No sentence is filler, and the polling instruction is placed where an agent will read it before acting.

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?

Output schema exists so return shape needn't be described, and the async status flow is covered. What remains thin is guidance on when to reuse thread_id versus starting a fresh thread, and how failures surface in practice, which matters for a long-running mutating 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 coverage is 100%, so every parameter is already documented, including the plain-language instruction with examples and the thread_id continuation semantics. The description adds the environment in which the instruction executes but no parameter-specific 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?

Opens with a specific verb and resource: 'Dispatch a natural-language change to an app and have it applied for you,' then details the mechanism (reproduce, apply in sandbox VM, redeploy, verify). This makes it readily distinguishable from deploy_app or get_app, which do not take natural-language instructions.

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?

States the precondition clearly ('any app you own that has a git source') and routes the agent to get_app_build_status for status polling, plus notes that persisting to the git repo is a separate follow-up capability. It stops short of an explicit contrast with siblings like deploy_app or create_app_from_prompt, so an agent must still infer when this is preferable to those.

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.