Build from samples
You have one example of what arrives and the API it has to reach. Nobody wants to write the mapping.
Where you say yes
Publishing replaces what is live, so publish_line_draft is marked destructive and your MCP client can ask before it runs. Or leave the draft and publish it yourself in the panel.
You
Here is a sample order from our shop and the warehouse API’s OpenAPI file. Send every new order to the warehouse.
-
generate_line_draftaddsDrafts an endpoint on line
v1and maps each warehouse field to the order field of the same name.gift_messagehas no match in the sample, so it is listed as unmapped, not guessed. -
preview_line_draftreadsShows the draft. Nothing is published.
-
dry_run_endpointreadsRuns the sample through the mapping and returns the body it builds for the warehouse. Nothing is sent.
-
config_diffreadsOne endpoint added on
v1, with one target. -
publish_line_draftoverwritesPuts the draft live, once you allow it.
Agent
Ready to publish. One question first: should gift_message stay empty, or come from another field in the order?