Skip to main content
Glama

OpenFactory

request_user_decision

Escalate a genuine architectural fork or unsolvable problem to the user.

Reserve this for choices the user must make. Anything the owner cannot act on is scope="platform": the installer driver could not click through the installer, there is no trusted installer manifest, the session VM never came up, or no engine will run. Those go to OpenFactory operators: the severity is always destructive, the build and the goal stop until an operator answers, and the owner is neither mailed nor asked. Never ask the owner to waive a verification phase or to supply a new build or build id.

The response tells you whether anyone is actually waiting, and there are only two cases:

  • status: auto_defaulted — ALREADY ANSWERED. answer.option_id is the option to build; keep working, and never sleep or poll on it. A minor decision that carries a recommendation_option_id comes back this way immediately: your recommendation is the answer, so the build does not pause for it and timeout_at is null because there is no window. A major decision still gets its window.

  • status: pending — a person genuinely has to answer. Finish any deferrable work, then STOP cleanly WITHOUT reporting update_record failed; the platform parks the build as waiting for input.

    WHO RESUMES YOU DEPENDS ON WHO IS DRIVING. A session OpenFactory launched is woken with the answer, so stopping is all it has to do. If you are driving this build yourself from your own MCP client, nobody wakes you, because no platform agent was started for it: poll get_build_status until decision_answers[<decision_id>] appears, and resume from there. The response tells you which case you are in — it carries recommended_next_tool only in the second. Either way, do not wait it out inside one call.

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>",
      "question": "<question>",
      "options": "<options>"
    },
    "name": "request_user_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoarchitecture_fork | unsolvable | clarification.architecture_fork
scopeNobuild | platform. "platform": the blocker is the platform (installer driver, verifier, judge budget, engine); the question goes to OpenFactory operators, the owner is not asked, and the goal waits for an operator.build
api_keyNoOpenFactory MCP API key (optional).
contextNoShort markdown context shown on the card.
optionsYes2-6 options: [{id, label, description, route?}].
build_idYesThe build the decision belongs to.
questionYesThe fork or problem, phrased for the user.
severityNominor | major | destructive. The server coerces UP (unset, no recommendation, drop-scope options, unsolvable → destructive).
session_tokenNoSession token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity.
recommendation_option_idNoWhich option you would pick — required for a minor/major decision to auto-proceed.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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 burden and largely succeeds: it discloses the two response statuses, that auto_defaulted means the build keeps running and timeout_at is null, that pending parks the build, and that platform-scope escalations halt the build and skip the owner entirely. It stops short of describing auth requirements or option validation rules, but the mutation consequences and wait semantics are unusually well covered.

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?

It is front-loaded correctly, leading with the escalation rule before the response taxonomy. Some redundancy creeps in around the waiting theme ('never sleep or poll on it', 'do not wait it out inside one call', and the get_build_status polling instruction) that could be consolidated, 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?

For a 10-parameter mutation tool with no annotations, the description supplies the decision-relevant context an agent needs: what halts the build, who gets asked, how the agent is resumed, and the polling fallback for self-driven sessions. Return values are covered by an output schema, yet the description still summarizes the two status cases, leaving no material ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns one above baseline by explaining the runtime interplay of parameters that the schema states only in isolation — how a minor decision plus recommendation_option_id auto-resolves while a major one still opens a window. It adds little about build_id, context, or options beyond what the schema already says.

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 first sentence names the exact action and its two legitimate triggers: 'Escalate a genuine architectural fork or unsolvable problem to the user.' It also sharply delineates a class of work this tool is NOT for (blockers the owner cannot act on), so an agent can tell it apart from status/progress tools like get_build_status without opening a 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?

Provides explicit when-to-use (genuine forks, unsolvable problems), when-not-to-use (platform blockers with no trusted installer manifest, dead session VM, no engine → scope='platform'), and hard exclusions ('Never ask the owner to waive a verification phase or to supply a new build'). It also gives the alternative path for self-driven builds: poll get_build_status rather than re-call this tool.

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.