brc_create_purchase
Create a purchase record with structured fields. Requires user confirmation of a plain-English draft and explicit counterparty verification before posting.
Instructions
Creates a BRC purchase using structured MCP fields. Requires a reference when the company is configured for manual purchase references; otherwise prefer brc_create_purchase_gen_ref. First call without confirmWrite: true returns confirmation_required and a payload preview — show a plain-English draft in chat, then retry with confirmWrite: true only after explicit user confirmation in a later message. Passing preflight is not confirmation. Also requires confirmCounterpartyExplicit: true once the user has explicitly named or confirmed the customer/supplier in the current conversation. Do not reuse a counterparty from an earlier draft without that confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | Purchase note. | |
| acCode | Yes | Supplier account code, for example SUP001. | |
| procDate | Yes | Processing date in ISO format. | |
| entryDate | Yes | Entry date in ISO format. | |
| netAmount | Yes | Net amount before VAT. | |
| reference | No | Required when the company is configured for manual purchase references. | |
| vatRateId | Yes | VAT rate id. | |
| supplierId | Yes | Supplier id, for example 26180406. | |
| accountCode | Yes | Nominal/account code. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| description | Yes | Analysis line description. | |
| confirmWrite | No | Must be true only after a plain-English draft has been shown in the current conversation and the user explicitly confirmed posting (for example yes, create it / post it now / confirm). Never set true on the first call or because the user initially asked to create something. | |
| vatPercentage | Yes | VAT percentage. | |
| bookTranTypeId | Yes | Purchase book transaction type id. | |
| analysisCategoryId | Yes | Purchases analysis category id. | |
| confirmCounterpartyExplicit | No | Must be true only after the user explicitly named or confirmed the customer, supplier, or other counterparty in the current conversation. Never set true because a customer or supplier appeared in an earlier draft, was inferred from context, or was filled in without the user's explicit choice in this conversation. |