Price parts
price_partsPrice CAD parts (STEP or DXF, base64) and buy their manufacturing cost: EUR 0.89 per made part per environment, VAT included, no account; bought and catalogue parts are free. One file (file_base64) or many (items), at most 16 MB a call as base64 (more: POST /pay/price); offer_id alone: an earlier offer, without the file; neither: the environments, parameters, limits and unit price, free. Answers: unpaid, an error whose structured content is the x402 payment requirement with offer.offer_id and pay_url (pay in _meta['x402/payment'] with the same arguments, or over HTTP at pay_url); paid, status paid with purchase_id and result_token, or status running or settling to read with get_result; status pricing: call again. Billable only when paid; a failed calculation is not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "price_parts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Many files in one offer and one payment, each with its own file_base64, filename, material and sheet_gauge_mm. | |
| vat_id | No | Your EU VAT ID, for an invoice that names it. The price is the same; the VAT inside it follows where you are (a VAT ID is not verified yet). | |
| country | No | Your country, ISO 3166-1 alpha-2. | |
| currency | No | ISO 4217: each environment states its prices in it with its own rates. Default: each environment's own. | |
| filename | No | Its name, e.g. bracket.step. | |
| lot_size | No | Pieces per lot the run is priced at. Default: 1. | |
| material | No | The material. | |
| offer_id | No | An earlier offer. | |
| lot_sizes | No | The lots the answer states, at most 12. Default: 1, 10, 100 and 1000. | |
| invoice_to | No | Who the invoice names: name and address. The price is the same. | |
| file_base64 | No | The CAD file (STEP or DXF) as base64, or a data: URI; gzip-compressed is accepted. | |
| costing_date | No | Not used yet: an offer is priced as of the day it runs. | |
| environments | No | Up to 16 environments to price in, in order (the first is the baseline): ids price_parts lists when called with no arguments, `id@version`, or `{id, version}`. Default: DE-BY. | |
| annual_volume | No | Pieces a year. | |
| drawing_base64 | No | A drawing of the part: not read and not kept, the price is the geometry's (the offer's item says so in `drawing`). | |
| sheet_gauge_mm | No | Sheet thickness in millimetres: with `material`, required for a DXF flat pattern. |