Skip to main content
Glama
Mipiti
by Mipiti

Start Control Build

start_control_build

Start a proposed control build for a threat model: first return an estimate without charging, then confirm with model_version and set_revision to queue the build and consume credits.

Instructions

Start the model's proposed control build. Mutating only with confirm_estimate=True; consumes credits then.

A model's controls are built only by a build someone starts. Generating or refining the model, editing an entity and regenerate_controls each PROPOSE one; get_control_generation_status shows it as proposal.

  1. Call with confirm_estimate=False (the default). Nothing starts and nothing is charged; the answer is {started: false, proposal, message}, the proposal carrying a fresh estimated_credits and the model_version and set_revision the model stands at. Show the user what it would build and cost.

  2. Call again with confirm_estimate=True and those two values once they have reviewed the model. The build starts ({started: true, job_id, model_version, status: "queued", status_detail}) and holds the model until it publishes, fails or is discarded: other writers of the model's controls are refused meanwhile, and reads show the last published controls. Poll get_control_generation_status until terminal; the publish is one step, after which get_controls shows the result.

Refusals come back as data:

  • {started: false, http_status: 404, code: "no_proposal"} — nothing is proposed for the model.

  • {started: false, http_status: 409, code: "review_stale", proposal, model_version, set_revision, estimated_credits} — the model or its controls changed since the values were read (or none were named). Review again and start with the values returned.

  • {started: false, http_status: 409, code: "generation_active", status} — a build already holds the model.

  • {started: false, http_status: 402, ...} — the balance this workspace bills to cannot cover the estimate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesID of the threat model.
set_revisionNoWith ``confirm_estimate=True``: the proposal's ``set_revision``.
model_versionNoWith ``confirm_estimate=True``: the proposal's ``model_version``.
server_versionYes
confirm_estimateNoFalse (default) returns the proposal and its estimate and starts nothing; True starts the build.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.84.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so: credits are consumed only when confirm_estimate=True, the model is locked until publish/fail/discard, other writers are refused meanwhile, and reads show the last published controls. It also enumerates refusal codes (no_proposal, review_stale, generation_active, 402 balance) as structured returns, which an agent could not infer from the schema.

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 critical decision (confirm_estimate gating cost and mutation) is front-loaded in the first sentence, and the numbered two-step flow is easy to scan. The refusal-code list is long but each entry adds actionable recovery information, so little is wasted, though the description is heavier than strictly necessary.

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 two-phase, credit-consuming mutation that locks a model, the description supplies the estimate/confirm loop, the locking semantics, alternate proposers, and the polling path to terminal state. With an output schema present it need not restate return shapes, yet it still documents them concretely, leaving no gap an agent must guess at.

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 coverage is 80% and the schema already documents each parameter, so the baseline is 3; the description goes further by tying model_version and set_revision to the values returned in the proposal and explaining that confirm_estimate=False starts nothing and charges nothing. It does not explain server_version or model_id beyond the schema, keeping this short of a 5.

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 precise verb+resource ('Start the model's proposed control build') and immediately scopes it against siblings by explaining that generate/refine/edit/regenerate_controls only PROPOSE and that this tool is what actually starts a build. An agent can distinguish it from regenerate_controls or resume_control_generation without opening any 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 ordered workflow: first call with confirm_estimate=False to get the estimate, then call with confirm_estimate=True plus model_version and set_revision after user review. It also names the alternatives that merely propose and the poll target (get_control_generation_status), so when-to-use and when-not-to-use are both covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools