Skip to content

Production cost estimate

Cost drivers and known quoted ranges; missing prices remain unknown.

All action kinds · Project workflow

  • Kind: production_cost_estimate
  • Availability: available
  • Registry cost category: one_call
  • Lifecycle stage IDs: mass_production_estimate

The cost category describes model work in the registry; it is not a manufacturing price or a monetary quote. Read maglev actions kinds --json for current availability and schemas.

Returns a draft for review against the project brief and supporting evidence. A completed action does not establish that a physical test, production gate or engineering review has passed.

Send these fields inside the request’s input object. Use only facts you have, and keep unresolved requirements explicit. Optional fields with defaults can be omitted.

Field Type Required Details
bomSummary string Yes Min length 1. Max length 20000
quantities integer[] No Min items 1. Max items 6. Default: [100,300]
toolingExpected boolean No
Input JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"bomSummary": {
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"quantities": {
"default": [
100,
300
],
"minItems": 1,
"maxItems": 6,
"type": "array",
"items": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"toolingExpected": {
"type": "boolean"
}
},
"required": [
"bomSummary"
]
}

Prepare action.json with kind: "production_cost_estimate" and an input object matching the schema above.

Replace PROJECT_ID with your saved project ID. Use a new idempotency key for new work and retain it for an identical retry.

Terminal window
maglev actions request PROJECT_ID --input action.json \
--idempotency-key example-production-cost-estimate-001 --json

Read action.status, action.output, deliveries and any task in the response. Model actions can take several minutes. After a timeout, check saved actions before retrying. See request and recovery behavior.

The schema below describes action.output.result. The saved action.output envelope also contains draft: true and a note. It can be null while an action is running or after a failure; check the status before reading the result. Null or missing facts are unknown; preserve source references and open questions.

Field Type Required Details
costDrivers object[] Yes The three to six lines where the money is
costDrivers[].line string If parent supplied
costDrivers[].whyItDrivesCost string If parent supplied
priceBand object[] Yes
priceBand[].quantity integer If parent supplied Minimum -9007199254740991. Maximum 9007199254740991
priceBand[].lowUsd number,null If parent supplied
priceBand[].highUsd number,null If parent supplied
priceBand[].basis string If parent supplied
oneOffLines object[] Yes Tooling, setup, fixtures, certification, samples: what is one off and who owns it, no amounts unless a passage states one
oneOffLines[].label string If parent supplied
oneOffLines[].note string If parent supplied
dutyExposure object Yes
dutyExposure.htsCandidates string[] If parent supplied
dutyExposure.note string If parent supplied
assumptions string[] Yes What was assumed in order to write this draft
openQuestions string[] Yes What only the founder, a factory or a lab can answer
sources string[] Yes Repo paths of the passages actually relied on
Output JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"costDrivers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"line": {
"type": "string"
},
"whyItDrivesCost": {
"type": "string"
}
},
"required": [
"line",
"whyItDrivesCost"
],
"additionalProperties": false
},
"description": "The three to six lines where the money is"
},
"priceBand": {
"type": "array",
"items": {
"type": "object",
"properties": {
"quantity": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"lowUsd": {
"type": [
"number",
"null"
]
},
"highUsd": {
"type": [
"number",
"null"
]
},
"basis": {
"type": "string"
}
},
"required": [
"quantity",
"lowUsd",
"highUsd",
"basis"
],
"additionalProperties": false
}
},
"oneOffLines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [
"label",
"note"
],
"additionalProperties": false
},
"description": "Tooling, setup, fixtures, certification, samples: what is one off and who owns it, no amounts unless a passage states one"
},
"dutyExposure": {
"type": "object",
"properties": {
"htsCandidates": {
"type": "array",
"items": {
"type": "string"
}
},
"note": {
"type": "string"
}
},
"required": [
"htsCandidates",
"note"
],
"additionalProperties": false
},
"assumptions": {
"type": "array",
"items": {
"type": "string"
},
"description": "What was assumed in order to write this draft"
},
"openQuestions": {
"type": "array",
"items": {
"type": "string"
},
"description": "What only the founder, a factory or a lab can answer"
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Repo paths of the passages actually relied on"
}
},
"required": [
"costDrivers",
"priceBand",
"oneOffLines",
"dutyExposure",
"assumptions",
"openQuestions",
"sources"
],
"additionalProperties": false
}