← MetalCONTENT HISTORY
WHAT CHANGED
Update to Metal
Snapshot Nov 23, 2026 · 18:22 UTC · version 0.2.8
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Metal and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Use to start, test or reproduce a Metal workflow through the Metal MCP, resolve its declared inputs, rerun a terminal run from a selected step, cancel a run, or approve or reject a paused human-review step. Use workflow-fixing for a requested repair of a failed workflow and workflow-debugging for read-only run diagnosis.",
"included_files": [
{
"relative_path": "references/input-resolution.md",
"size_in_bytes": 8099
}
],
"name": "running-workflows",
"skill_md_contents": "---\nname: running-workflows\ndescription: \"Use to start, test or reproduce a Metal workflow through the Metal MCP, resolve its declared inputs, rerun a terminal run from a selected step, cancel a run, or approve or reject a paused human-review step. Use workflow-fixing for a requested repair of a failed workflow and workflow-debugging for read-only run diagnosis.\"\n---\n\n# Metal Workflow Running\n\nBefore starting, read [Safety and confirmation](../../references/safety.md) and apply it throughout this task.\n\nThis skill is a reference for the caller side of running a Metal workflow: given a workflow's declared `inputSchema`, how to resolve real user-supplied values into a valid `run_workflow` payload, start the run, and report basic status. The central concern is turning the user's request into values that satisfy the workflow's complete declared schema.\n\nFor the resolved runtime shapes a workflow step sees *after* a resource input is resolved, use the `workflow-building` skill's `references/inputs-and-resources.md`. For diagnosing run behavior beyond a basic status check (failed steps, iterator drill-down, HITL state, definition drift), use the `workflow-debugging` skill.\n\n## Metal MCP Tools\n\nSchema/discovery: `list_workflows`, `get_workflow` (fetch `inputSchema`; `overview`/`steps` when a `string`/`text` field's purpose isn't clear from its description alone).\n\nResolution: `search_companies` / `get_company` (`company`), `search_people` (`person`), `search_documents` / `get_document` (`dataEntity`, `dataEntityMulti`), `list_lists` / `get_list` / `get_list_entries` (`resourceList`). No workflow tool resolves `folder` or `workspace`; see `references/input-resolution.md`.\n\nRun tool: `run_workflow` creates a run. Set its per-run `dryRun` value according to the Run Mode rules below. A dry run records and executes the workflow under dry-run policy; it is not a definition preview.\n\nRun-action tool: `review_workflow_hitl_step` resolves a run paused at `AWAITING_APPROVAL` by approving or rejecting its review items. It is mutative like `run_workflow`; call it only on explicit user direction and confirm before submitting. Review authority follows reviewer assignment (see the `workflow-building` skill's `references/human-review.md`).\n\nCancel tool: `cancel_workflow_run` moves a nonterminal run (`QUEUED`, `PENDING`, `RUNNING`, or `AWAITING_APPROVAL`) to `CANCELED`. It rejects a terminal run with a conflict and does not undo actions already performed. It is destructive; call it only on explicit user direction and confirm before submitting. On an ambiguous failure, check `get_workflow_run` before you retry.\n\nRerun tool: `rerun_workflow_run_from_step` starts a new run from a terminal one. Apply the same Run Mode rules as a new run. The optional `dryRun` override is set-only: `true` makes the rerun dry, while omission preserves the source run's mode. It cannot turn a dry source run into a non-dry rerun. The new run reuses the source input with the workflow's current definition. Every preceding top-level step must be `COMPLETED`; preceding siblings in the selected branch arm must be `COMPLETED` or `SKIPPED`. The target can be a top-level step or a descendant of the branch path recorded by the source run. A target in an untaken arm is not found, and iterator children cannot be targeted. A target inside a selected arm re-enters its enclosing branches with their recorded decisions and carries untaken-arm state forward; the target itself is not seeded. Targeting the branch step reevaluates its condition and may choose a different arm. On an ambiguous failure, check `list_workflow_runs` for a newly created run before retrying.\n\nStatus: `get_workflow_run` for status/output checks after a run starts; `get_workflow_run_step` with `view: \"hitl\"` to inspect a paused approval step before any review action.\n\n## Run Mode\n\n- dryRun: true controls one Run. It does not sandbox Workflow-definition edits, create a staging revision, or authorize a separate Workflow.\n- Starting any run requires explicit user intent. An explicit dry-run request uses `dryRun: true`.\n- Development and testing intent defaults to dry-run execution with `dryRun: true`.\n- For a real-outcome request, propose `dryRun: false`; for development or testing, propose `dryRun: true`. Confirm the resolved inputs, mode and side effects under the shared safety rules before starting either mode.\n- Before the first run in an autonomous loop, establish a concrete maximum run count. If the request supplies no run count, ask for one. Count each `run_workflow` or `rerun_workflow_run_from_step` call that may have created a run, including successful or ambiguous calls. Input-validation rejections create no run, so do not count them.\n- Confirm the dry-run inputs, scenarios, review decisions and maximum run count before a bounded loop. Continue only within that confirmed scope; an unplanned edit, input change or review decision needs confirmation.\n- If dry-run execution cannot validate the goal, explain why and request authorization for a specific non-dry run.\n- For a dry run, verify `summary.dryRun` in the `run_workflow` response is true and `dryRun` in the `get_workflow_run` read-back is true; stop if either value is false or absent.\n- Dry runs execute reads and persist run state, artifacts, output records, and completion post-processing. Write suppression depends on the tools in the workflow, so inspect the planned actions and explain remaining side effects before confirmation. Dry-run mode is not a guarantee of no writes.\n\n## Process\n\n1. **Confirm the workflow.** Use `list_workflows` to find it and `get_workflow` to fetch its `inputSchema`, `inputUiSchema`, `outputConfig`, `outcomeConfig`, and `accessHints`. If a field's purpose is not obvious from its schema and description, `get_workflow`'s `overview` or `steps` can supply context but cannot replace the declared contract. Treat access hints as separate signals. `accessHints.canExecute: false` is decisive, so do not call `run_workflow`. When `canExecute` is absent or null, run creation remains the permission gate. `isExecutable` reports deprecation state, not final manual-run permission: `false` means the workflow is deprecated and cannot run. A workflow whose steps use a retired work-product template dependency, such as a `generateDocument` step, cannot run even when `isExecutable` is true; `run_workflow` returns a 403 with code `work_product_templates_retired`. Automatic dispatch also requires an organization workflow. To determine whether its automation is live, read `trigger.enabled`, or each schedule's `enabled` for a schedule trigger. Absent or `true` means enabled; only an explicit `false` pauses automation. A pause does not prevent a manual run.\n2. **Resolve every input field.** Walk `inputSchema` field by field. The declared JSON type decides the raw value shape, and resource selectors require ObjectID values before `run_workflow` accepts them. Honor every declared constraint, including `enum`, `pattern`, `format`, numeric or length bounds, nested `properties`, and `items`. `effectiveInputSchema` reports each field's `presence`: supply every `required` entry and omit an `optional` one when the user has no value. Presence and defaults are independent. Omit a defaulted field when the user wants the default; the server fills absent keys before validation and does not replace a submitted value. An empty string, `null`, or an empty array does not satisfy a required field. `false`, `0`, and `{}` satisfy presence but can still fail another declared constraint. See `references/input-resolution.md` for the authoring selectors, runtime types, resolution steps, defaults, and ambiguity rule.\n3. **Run.** Apply Run Mode, then call `run_workflow` with the resolved `input` object and chosen `dryRun` value, plus the optional `visibility` override (`public` or `private`) when the user wants this run's readability to differ from the workflow's default; see the `workflow-building` skill's `references/permissions-and-run-policy.md` for what run visibility governs. Report the run ID and that the run is asynchronous unless the returned status is already terminal. If input validation fails, repair against the returned `effectiveInputSchema`, which carries every input with its `source` and `presence`, including trigger keys and manual-run stand-ins the stored `inputSchema` knows nothing about; the `inputSchema`/`inputUiSchema` that ride along beside it are the stored shapes. Correct the field the structured error names and retry. Do not treat policy, not-found, rate-limit, or server errors as input-validation retries. A 403 with code `work_product_templates_retired` is a permanent retirement refusal: do not retry it, rerun from a step, or try to repair it through input values.\n4. **Monitor and review.** The mutation response carries `feedback.pollAfterSeconds`, `feedback.nextActions`, and the stop condition for polling. Wait for the requested interval, call `get_workflow_run`, and evaluate the returned status against that stop condition. Poll responses do not carry another `feedback` object. In a dry-run loop, `AWAITING_APPROVAL` is intermediate: inspect the active step with `get_workflow_run_step` `view: \"hitl\"`, collect the evidence needed, then submit only the review decision the user confirmed for that exact test case and continue polling. If the decision or another definition edit and rerun is outside the confirmed scope, ask the user and wait. Treat the rendered HITL as a user-facing acceptance surface: raw IDs, object strings, unreadable dates or money, excessive unchanged fields, misleading summaries, or unclear approve/reject choices fail the test. Fix the definition, start another dry run, and repeat until the stated acceptance criteria pass. Use the server's requested poll interval and a bounded wait loop; do not wait for another user prompt between ordinary run states. For a live run, require explicit user direction before `review_workflow_hitl_step`. Its mutation response supplies the next polling guidance, and another approval pause can follow.\n5. **Report the outcome.** A dry-run test case is complete only when its asserted behavior has been inspected and every downstream dry-run step needed by that assertion has finished. Reaching HITL alone is completion only when HITL rendering is the stated test endpoint. Report the run mode and any dry-run limitations with status, run ID, `outcome` and `outcomeSource` when present, `errorReason`, diagnostic error evidence, artifacts, output files, output sections, and supporting citations that matter to the request. For `HALTED`, report `haltReason` and explain that an executing step requested a clean stop through `halt_workflow`; later steps do not run, and the normal success output and notification path is skipped. A completed run can contain a degraded HTML output section: read `outputs.sections[].type` and inspect `outputs.sections[].error` when HTML validation cleared the content. For failed-step diagnosis, iterator drill-down, or definition drift, hand off to the `workflow-debugging` skill instead of diagnosing it here.\n\n## Executing A Test Matrix\n\nWhen given a structured test matrix (a set of scenarios, each with resolved inputs and expected outcomes), execute each scenario as a dry run in sequence. For each scenario:\n\n1. Resolve the inputs per the scenario specification. Follow the input resolution rules in the Process section above.\n2. Start a dry run with `dryRun: true`. Verify `summary.dryRun` in the response.\n3. Monitor through completion, resolving HITL steps per the scenario's expected outcome (approve, reject, or edit). Submit a HITL decision only when the user confirmed it for that scenario; otherwise ask and wait.\n4. Record the run ID, terminal status, and any errors.\n5. If the scenario has assertions (e.g., \"output section X contains company name\"), evaluate them against the run evidence from `get_workflow_run`.\n\nAfter all scenarios complete, report a per-scenario pass/fail summary. Do not stop at the first failure -- run every scenario unless the user says otherwise.\n\nIf a dry run fails to start, repair against `effectiveInputSchema` and retry once. If it still fails, mark the scenario as \"blocked\" and move to the next one.\n\nIf a dry run hangs, apply the standard polling rules. On timeout, mark the scenario as \"timeout\" and move to the next one. Do not cancel the run unless the user asked you to cancel timed-out scenarios.\n\n## Core Rules\n\n- A field's declared `type` in `inputSchema`, never its name or description, decides its runtime JSON shape. Resource selectors require ObjectIDs. Passing an ObjectID into a plain `string` field is as wrong as passing a literal name into a `company` field.\n- Never guess or submit a best-effort ID for an ambiguous, zero-match, or unresolvable resource input. Ask the user. See the shared rule in `references/input-resolution.md`.\n- Treat `folder` and `workspace` inputs as blocked when no ID is already in hand; no workflow tool browses or searches either type. Ask the user for the ID directly rather than inventing a workaround.\n- Apply Run Mode to every new run and rerun.\n- Apply every constraint present on the field's JSON Schema. Do not invent a constraint that the schema omits or infer one from the field name or description. Ask the user when the intended value remains ambiguous after reading the declared schema and workflow context.\n\n## Lifecycle Actions Outside These Tools\n\nThe Metal app and workflow run API support actions this MCP does not expose:\n\n- Retry a failed run.\n- Rerun a completed, canceled, rejected, or halted run from the beginning.\n\nTwo run actions are exposed and described above: `rerun_workflow_run_from_step` reruns a terminal run from a selected step, and `cancel_workflow_run` cancels a nonterminal run.\n\nRoute the other actions to the Metal app. Do not imply that `run_workflow` or `review_workflow_hitl_step` can perform them, and do not invent MCP calls for them.\n\n## References\n\n- `references/input-resolution.md`: authoring selectors, runtime JSON types, resource resolution steps, and the shared ambiguity rule.\n"
}SHA-256 of public snapshot: 6eed4516a3e4920bc9e7f1b1e43c478a2f065b4c9bef2bd8b5c266ce1c429be1