Skip to main content
Glama

Start a build run

start_run
Idempotent

Runs a registered recipe. THIS IS THE TOOL THAT DOES THE REAL WORK: it reads the sources and can run for a long time. Start builds in full mode: full runs use one progressive acquisition with an inspection checkpoint after about five minutes and continue automatically. The checkpoint is not an approval gate or a second run. Four modes: full (the whole build), sample (an explicitly requested bounded experiment), refresh (forward from where the last run reached), backfill (one exact window). Example: {"recipe_id": "…", "recipe_digest": "…", "mode": "full"}. A sample must state at least one ceiling (max_rows, max_source_bytes or window); a backfill must state window {start, end}. For full builds, use the approved recipe source limits: do not automatically copy optional sample run clamps (max_rows or max_source_bytes) into a full run. Some source adapters cannot enforce those additional run clamps and will refuse before acquisition. Never remove a user-required bound to work around that refusal; ask whether the existing recipe limits meet their intent. Returns {run_id, status, mode, version, dashboard_url}. A run larger than the size that starts on its own comes back status "held" with projected_bytes and projected_runtime_seconds — show those to the user and call confirm_run only if they agree. If an earlier run failed for a platform reason, inspect get_run first, then pass retry_of_run_id with that failed run id to request a fresh attempt of the SAME recipe and limits. Repeating start_run without it replays the original run. The service refuses retries of active runs, other recipes/workspaces, and non-retryable failures. A retry still needs the normal user approval. Three optional members, each only when there is a reason: reuse_saved_answers: false (full only) reads every per-row answer fresh instead of reusing what the table's last full saved, when explain_recipe or a stale answer says so; discard_snapshot_history: true (full or sample) is the consent a start refused snapshot_history_would_be_discarded waits for — it replaces a snapshot table's day-by-day history with the one day this run reads, so pass it only when the person agreed to lose that history; resume_capture_run_id (full only) resumes a failed or cancelled full instead of starting the acquisition again. Next: run_events to watch it, then query_run to check the rows it built.

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": {
      "recipe_id": "<recipe_id>",
      "recipe_digest": "<recipe_digest>",
      "mode": "<mode>"
    },
    "name": "start_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
windowNo
max_rowsNo
recipe_idYes
recipe_digestYes
resource_classNo
retry_of_run_idNo
max_source_bytesNo
reuse_saved_answersNo
resume_capture_run_idNo
discard_snapshot_historyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / discard_snapshot_history
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / resume_capture_run_id
      Added value: +{
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / reuse_saved_answers
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / retry_of_run_id
      Added value: +{
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare non-read-only, idempotent, open-world, non-destructive, but the description adds what they cannot: the run is long-lived, the ~5-minute checkpoint is not an approval gate, oversized runs return status "held" with projected_bytes/projected_runtime_seconds, repeating without retry_of_run_id replays the original run (consistent with idempotentHint), and the service refuses retries of active runs or foreign recipes. It also discloses the real data-loss risk behind discard_snapshot_history — replacing a snapshot table's day-by-day history — which sits in mild tension with destructiveHint=false even though the discard is opt-in and consent-gated.

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?

Front-loaded with the core verb and the "does the real work" warning, then ordered as modes, example, clamps, return shape, held/confirm flow, retry, optional members, next steps. It is dense rather than padded, but it arrives as one long paragraph block and runs ~300 words, so some of the optional-member detail could be tightened without losing meaning.

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?

Covers the hard parts an agent needs for an 11-parameter, long-running mutation: mode gating, held/confirm handshake, retry preconditions, snapshot-history consent, and the return fields {run_id, status, mode, version, dashboard_url} despite there being no output schema. The only meaningful hole is the unexplained resource_class and recipe_digest semantics.

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?

With 0% schema description coverage the description does the heavy lifting, giving meaning, mode restrictions, and defaults for mode, window, max_rows, max_source_bytes, retry_of_run_id, reuse_saved_answers, discard_snapshot_history, and resume_capture_run_id, plus a worked example payload. The gap: recipe_id, recipe_digest, and especially resource_class are never explained, so an agent must infer digest pinning and resource_class semantics from the schema alone.

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?

States a specific verb and resource ("Runs a registered recipe") and immediately scopes its role against siblings: it names confirm_run, get_run, run_events, and query_run as the follow-on tools. The sentence "THIS IS THE TOOL THAT DOES THE REAL WORK" plus the four-mode enumeration makes it unambiguously distinguishable from confirm_run/approve_full_run.

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?

Explicitly routes each mode: full for the whole build, sample for an explicitly requested bounded experiment, refresh forward from the last run, backfill for one exact window. It also states when NOT to copy sample clamps into a full run, when to call confirm_run (only if the user agrees to the held projection), and when to use retry_of_run_id versus just repeating the call — the alternatives are named and conditioned.

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.

Resources