mcg_stage
Create a DRAFT simulation whose input files are uploaded before pricing. FREE. Takes the same kind, spec, study, material and conditions as mcg_quote plus inputs: one entry per file the run needs, each with a name and, for small text files, the text inline (staged immediately). Entries without text come back in uploads as presigned PUT URLs (valid 15 minutes, 4 GiB per file): upload each with a plain HTTP PUT of the file bytes, no key or header. Then call mcg_quote with draft_id to price; it REJECTS with inputs_missing until every declared input has arrived.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Simulation kind from mcg_catalog. | |
| name | Yes | A human label for the simulation. | |
| spec | Yes | The spec object; params drive the eventual price. | |
| study | No | The study (project) this simulation joins, by exact name; created if absent. | |
| engine | No | Optional engine id override. | |
| inputs | Yes | The input files the run needs. | |
| material | No | The material or formula simulated. | |
| conditions | No | Physical conditions: numbers, strings or lists of up to 16 of them (on an adapter engine, any value its conditions schema allows). On a traced run whose engine fixes its own conditions, a key or value its record does not hold is refused; the error names what to send or omit. |