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.
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": {
"kind": "<kind>",
"name": "<name>",
"spec": "<spec>",
"inputs": "<inputs>"
},
"name": "mcg_stage"
}
}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: the id of a study you own (std_ plus 20 hex), or an exact name, created if absent. A value shaped like a study id never creates a study: one that is not yours is refused. | |
| 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. | |
| potential_from_run | No | A done nep_train or nep_campaign run id whose trained NEP model this draft runs; staged as its potential (with its license notice) beside the inputs. |