Skip to main content
Glama

Red by Big Red Cloud

Batch Cash Receipts

brc_batch_cash_receipts
Destructive

Processes a batch of BRC cash receipts. Maximum 20 items per batch request. Requires a valid routeToken issued for the matching action workflow. The token remains valid through lookup, preview and the permitted transaction. Placeholder tokens are invalid. A routeToken does not bypass preview or explicit-confirmation requirements. A call without confirmWrite: true returns confirmation_required and a payload preview. confirmWrite: true applies the previewed change after explicit confirmation. Passing preflight is not confirmation. Requires confirmCounterpartyExplicit: true; confirmation is scoped to the counterparty selected for the current preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesBatch items to process. Maximum 20 items per request.
routeTokenYesOpaque routeToken from brc_route_request for this action workflow. Required for transactional tools. Routing permission only — does not replace preview-before-posting or confirmWrite.
companyNameYesCompany context name, for example YOUR-COMPANY-NAME.
confirmWriteNoMust be true only after a plain-English preview before posting 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. Nothing is written to Big Red Cloud until you confirm.
connectionRefNoOpaque Red connection reference returned by brc_confirm_company_connection. Pass this exact value on every later tool call when the MCP client rotates session ids (for example Vibe/Mistral). Keep reusing the same connectionRef after successful tool calls — do not start a new connection because a lookup returned empty or partial data. It is not an API key and does not contain credentials.
confirmCounterpartyExplicitNoMust 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 preview, was inferred from context, or was filled in without the user's explicit choice in this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / item / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acEntries": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "accountCode": {
      -              "description": "Cash Receipts analysis account code.",
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "analysisCategoryId": {
      -              "description": "Cash Receipts analysis category id.",
      -              "exclusiveMinimum": 0,
      -              "maximum": 9007199254740991,
      -              "type": "integer"
      -            },
      -            "description": {
      -              "description": "Analysis-line description.",
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "id": {
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "value": {
      -              "description": "Positive portion of the receipt total assigned to this analysis entry.",
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "accountCode",
      -            "analysisCategoryId",
      -            "description",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "bookTranTypeId": {
      -        "const": 1,
      -        "description": "Cash Receipt book transaction type id. Must be 1.",
      -        "type": "number"
      -      },
      -      "discount": {
      -        "type": "number"
      -      },
      -      "entryDate": {
      -        "description": "Entry date in ISO format.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "note": {
      -        "description": "Cash Receipt note.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "procDate": {
      -        "description": "Processing date in ISO format.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "reference": {
      -        "type": "string"
      -      },
      -      "total": {
      -        "description": "Positive Cash Receipt total.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "vatEntries": {
      -        "description": "Optional manual VAT split. Removed before transmission when Enable VAT on Cash Receipts is disabled.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "amount": {
      -              "description": "Positive portion of the receipt total assigned to this VAT rate; this is not the VAT amount.",
      -              "exclusiveMinimum": 0,
      -              "type": "number"
      -            },
      -            "id": {
      -              "maximum": 9007199254740991,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "percentage": {
      -              "description": "VAT percentage.",
      -              "type": "number"
      -            },
      -            "vatRateId": {
      -              "description": "BRC VAT rate id.",
      -              "exclusiveMinimum": 0,
      -              "maximum": 9007199254740991,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "vatRateId",
      -            "percentage",
      -            "amount"
      -          ],
      -          "type": "object"
      -        },
      -        "minItems": 1,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "note",
      -      "entryDate",
      -      "procDate",
      -      "bookTranTypeId",
      -      "acEntries"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "oneOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "accountCode": {
      -            "description": "Cash Receipts analysis account code.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "analysisCategoryId": {
      -            "description": "Cash Receipts analysis category id.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "bookTranTypeId": {
      -            "const": 1,
      -            "description": "Cash Receipt book transaction type id. Must be 1.",
      -            "type": "number"
      -          },
      -          "description": {
      -            "description": "Analysis-line description.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "discount": {
      -            "type": "number"
      -          },
      -          "entryDate": {
      -            "description": "Entry date in ISO format.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "note": {
      -            "description": "Cash Receipt note.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "procDate": {
      -            "description": "Processing date in ISO format.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "reference": {
      -            "type": "string"
      -          },
      -          "total": {
      -            "description": "Positive Cash Receipt total.",
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total",
      -          "note",
      -          "entryDate",
      -          "procDate",
      -          "bookTranTypeId",
      -          "analysisCategoryId",
      -          "accountCode",
      -          "description"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "accountCode": {
      -            "description": "Cash Receipts analysis account code.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "analysisCategoryId": {
      -            "description": "Cash Receipts analysis category id.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          },
      -          "bookTranTypeId": {
      -            "const": 1,
      -            "description": "Cash Receipt book transaction type id. Must be 1.",
      -            "type": "number"
      -          },
      -          "description": {
      -            "description": "Analysis-line description.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "discount": {
      -            "type": "number"
      -          },
      -          "entryDate": {
      -            "description": "Entry date in ISO format.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "note": {
      -            "description": "Cash Receipt note.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "procDate": {
      -            "description": "Processing date in ISO format.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "reference": {
      -            "type": "string"
      -          },
      -          "total": {
      -            "description": "Positive Cash Receipt total.",
      -            "exclusiveMinimum": 0,
      -            "type": "number"
      -          },
      -          "vatPercentage": {
      -            "description": "VAT percentage. Must be supplied with vatRateId.",
      -            "type": "number"
      -          },
      -          "vatRateId": {
      -            "description": "BRC VAT rate id.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "total",
      -          "note",
      -          "entryDate",
      -          "procDate",
      -          "bookTranTypeId",
      -          "analysisCategoryId",
      -          "accountCode",
      -          "description",
      -          "vatRateId",
      -          "vatPercentage"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acCode": {
      -        "description": "Customer account code.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "bookTranTypeId": {
      -        "const": 1,
      -        "description": "Cash Receipt book transaction type id. Must be 1.",
      -        "type": "number"
      -      },
      -      "customerId": {
      -        "description": "BRC customer id.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "discount": {
      -        "type": "number"
      -      },
      -      "entryDate": {
      -        "description": "Entry date in ISO format.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "ledger": {
      -        "description": "Customer-ledger amount; must equal total.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "note": {
      -        "description": "Cash Receipt note.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "procDate": {
      -        "description": "Processing date in ISO format.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "reference": {
      -        "type": "string"
      -      },
      -      "total": {
      -        "description": "Positive Cash Receipt total.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "note",
      -      "entryDate",
      -      "procDate",
      -      "bookTranTypeId",
      -      "customerId",
      -      "acCode",
      -      "ledger"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "acEntries": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "accountCode": {
      +              "description": "Cash Receipts analysis account code.",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "analysisCategoryId": {
      +              "description": "Cash Receipts analysis category id.",
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            },
      +            "description": {
      +              "description": "Analysis-line description.",
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "id": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "value": {
      +              "description": "Positive portion of the receipt total assigned to this analysis entry.",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "accountCode",
      +            "analysisCategoryId",
      +            "description",
      +            "value"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "bookTranTypeId": {
      +        "const": 1,
      +        "description": "Cash Receipt book transaction type id. Must be 1.",
      +        "type": "number"
      +      },
      +      "detailCollection": {
      +        "description": "Cash Receipt detail lines, including audit or bank-reference text. An empty array clears the lines.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "discount": {
      +        "type": "number"
      +      },
      +      "entryDate": {
      +        "description": "Entry date in ISO format.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "note": {
      +        "description": "Cash Receipt note.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "procDate": {
      +        "description": "Processing date in ISO format.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "reference": {
      +        "description": "Cash receipts do not support reference in the documented BRC API. Use detailCollection for audit or bank-reference text.",
      +        "type": "string"
      +      },
      +      "total": {
      +        "description": "Positive Cash Receipt total.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "vatEntries": {
      +        "description": "Optional manual VAT split. Removed before transmission when Enable VAT on Cash Receipts is disabled.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "amount": {
      +              "description": "Positive portion of the receipt total assigned to this VAT rate; this is not the VAT amount.",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            },
      +            "id": {
      +              "maximum": 9007199254740991,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "percentage": {
      +              "description": "VAT percentage.",
      +              "type": "number"
      +            },
      +            "vatRateId": {
      +              "description": "BRC VAT rate id.",
      +              "exclusiveMinimum": 0,
      +              "maximum": 9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "vatRateId",
      +            "percentage",
      +            "amount"
      +          ],
      +          "type": "object"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "note",
      +      "entryDate",
      +      "procDate",
      +      "bookTranTypeId",
      +      "acEntries"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "accountCode": {
      +            "description": "Cash Receipts analysis account code.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "analysisCategoryId": {
      +            "description": "Cash Receipts analysis category id.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          },
      +          "bookTranTypeId": {
      +            "const": 1,
      +            "description": "Cash Receipt book transaction type id. Must be 1.",
      +            "type": "number"
      +          },
      +          "description": {
      +            "description": "Analysis-line description.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "detailCollection": {
      +            "description": "Cash Receipt detail lines, including audit or bank-reference text. An empty array clears the lines.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "discount": {
      +            "type": "number"
      +          },
      +          "entryDate": {
      +            "description": "Entry date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "note": {
      +            "description": "Cash Receipt note.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "procDate": {
      +            "description": "Processing date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reference": {
      +            "description": "Cash receipts do not support reference in the documented BRC API. Use detailCollection for audit or bank-reference text.",
      +            "type": "string"
      +          },
      +          "total": {
      +            "description": "Positive Cash Receipt total.",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "note",
      +          "entryDate",
      +          "procDate",
      +          "bookTranTypeId",
      +          "analysisCategoryId",
      +          "accountCode",
      +          "description"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "accountCode": {
      +            "description": "Cash Receipts analysis account code.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "analysisCategoryId": {
      +            "description": "Cash Receipts analysis category id.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          },
      +          "bookTranTypeId": {
      +            "const": 1,
      +            "description": "Cash Receipt book transaction type id. Must be 1.",
      +            "type": "number"
      +          },
      +          "description": {
      +            "description": "Analysis-line description.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "detailCollection": {
      +            "description": "Cash Receipt detail lines, including audit or bank-reference text. An empty array clears the lines.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "discount": {
      +            "type": "number"
      +          },
      +          "entryDate": {
      +            "description": "Entry date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "note": {
      +            "description": "Cash Receipt note.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "procDate": {
      +            "description": "Processing date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reference": {
      +            "description": "Cash receipts do not support reference in the documented BRC API. Use detailCollection for audit or bank-reference text.",
      +            "type": "string"
      +          },
      +          "total": {
      +            "description": "Positive Cash Receipt total.",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          "vatPercentage": {
      +            "description": "VAT percentage. Must be supplied with vatRateId.",
      +            "type": "number"
      +          },
      +          "vatRateId": {
      +            "description": "BRC VAT rate id.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "note",
      +          "entryDate",
      +          "procDate",
      +          "bookTranTypeId",
      +          "analysisCategoryId",
      +          "accountCode",
      +          "description",
      +          "vatRateId",
      +          "vatPercentage"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "acCode": {
      +        "description": "Customer account code.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "bookTranTypeId": {
      +        "const": 1,
      +        "description": "Cash Receipt book transaction type id. Must be 1.",
      +        "type": "number"
      +      },
      +      "customerId": {
      +        "description": "BRC customer id.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "detailCollection": {
      +        "description": "Cash Receipt detail lines, including audit or bank-reference text. An empty array clears the lines.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "discount": {
      +        "type": "number"
      +      },
      +      "entryDate": {
      +        "description": "Entry date in ISO format.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "ledger": {
      +        "description": "Customer-ledger amount; must equal total.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "note": {
      +        "description": "Cash Receipt note.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "procDate": {
      +        "description": "Processing date in ISO format.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "reference": {
      +        "description": "Cash receipts do not support reference in the documented BRC API. Use detailCollection for audit or bank-reference text.",
      +        "type": "string"
      +      },
      +      "total": {
      +        "description": "Positive Cash Receipt total.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "note",
      +      "entryDate",
      +      "procDate",
      +      "bookTranTypeId",
      +      "customerId",
      +      "acCode",
      +      "ledger"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed6 schema fields changed
    • removedInput schema / properties / confirmCrAnalysisCategory
      Removed value: -{
      -  "description": "Applies to every sales document item in this batch. Set true only after the user confirms a CR (customer) sales analysis account code is intentional for these product lines.",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / items / items / additionalProperties
      Previous value: -{}New value: +false
    • addedInput schema / properties / items / items / properties
      Added value: +{
      +  "item": {
      +    "oneOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "acEntries": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "accountCode": {
      +                  "description": "Cash Receipts analysis account code.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "analysisCategoryId": {
      +                  "description": "Cash Receipts analysis category id.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 9007199254740991,
      +                  "type": "integer"
      +                },
      +                "description": {
      +                  "description": "Analysis-line description.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "id": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "value": {
      +                  "description": "Positive portion of the receipt total assigned to this analysis entry.",
      +                  "exclusiveMinimum": 0,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "accountCode",
      +                "analysisCategoryId",
      +                "description",
      +                "value"
      +              ],
      +              "type": "object"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          },
      +          "bookTranTypeId": {
      +            "const": 1,
      +            "description": "Cash Receipt book transaction type id. Must be 1.",
      +            "type": "number"
      +          },
      +          "discount": {
      +            "type": "number"
      +          },
      +          "entryDate": {
      +            "description": "Entry date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "note": {
      +            "description": "Cash Receipt note.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "procDate": {
      +            "description": "Processing date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reference": {
      +            "type": "string"
      +          },
      +          "total": {
      +            "description": "Positive Cash Receipt total.",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          "vatEntries": {
      +            "description": "Optional manual VAT split. Removed before transmission when Enable VAT on Cash Receipts is disabled.",
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "amount": {
      +                  "description": "Positive portion of the receipt total assigned to this VAT rate; this is not the VAT amount.",
      +                  "exclusiveMinimum": 0,
      +                  "type": "number"
      +                },
      +                "id": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "percentage": {
      +                  "description": "VAT percentage.",
      +                  "type": "number"
      +                },
      +                "vatRateId": {
      +                  "description": "BRC VAT rate id.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 9007199254740991,
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "vatRateId",
      +                "percentage",
      +                "amount"
      +              ],
      +              "type": "object"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "note",
      +          "entryDate",
      +          "procDate",
      +          "bookTranTypeId",
      +          "acEntries"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "oneOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "accountCode": {
      +                "description": "Cash Receipts analysis account code.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "analysisCategoryId": {
      +                "description": "Cash Receipts analysis category id.",
      +                "exclusiveMinimum": 0,
      +                "maximum": 9007199254740991,
      +                "type": "integer"
      +              },
      +              "bookTranTypeId": {
      +                "const": 1,
      +                "description": "Cash Receipt book transaction type id. Must be 1.",
      +                "type": "number"
      +              },
      +              "description": {
      +                "description": "Analysis-line description.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "discount": {
      +                "type": "number"
      +              },
      +              "entryDate": {
      +                "description": "Entry date in ISO format.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "note": {
      +                "description": "Cash Receipt note.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "procDate": {
      +                "description": "Processing date in ISO format.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "reference": {
      +                "type": "string"
      +              },
      +              "total": {
      +                "description": "Positive Cash Receipt total.",
      +                "exclusiveMinimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total",
      +              "note",
      +              "entryDate",
      +              "procDate",
      +              "bookTranTypeId",
      +              "analysisCategoryId",
      +              "accountCode",
      +              "description"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "accountCode": {
      +                "description": "Cash Receipts analysis account code.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "analysisCategoryId": {
      +                "description": "Cash Receipts analysis category id.",
      +                "exclusiveMinimum": 0,
      +                "maximum": 9007199254740991,
      +                "type": "integer"
      +              },
      +              "bookTranTypeId": {
      +                "const": 1,
      +                "description": "Cash Receipt book transaction type id. Must be 1.",
      +                "type": "number"
      +              },
      +              "description": {
      +                "description": "Analysis-line description.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "discount": {
      +                "type": "number"
      +              },
      +              "entryDate": {
      +                "description": "Entry date in ISO format.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "note": {
      +                "description": "Cash Receipt note.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "procDate": {
      +                "description": "Processing date in ISO format.",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "reference": {
      +                "type": "string"
      +              },
      +              "total": {
      +                "description": "Positive Cash Receipt total.",
      +                "exclusiveMinimum": 0,
      +                "type": "number"
      +              },
      +              "vatPercentage": {
      +                "description": "VAT percentage. Must be supplied with vatRateId.",
      +                "type": "number"
      +              },
      +              "vatRateId": {
      +                "description": "BRC VAT rate id.",
      +                "exclusiveMinimum": 0,
      +                "maximum": 9007199254740991,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "total",
      +              "note",
      +              "entryDate",
      +              "procDate",
      +              "bookTranTypeId",
      +              "analysisCategoryId",
      +              "accountCode",
      +              "description",
      +              "vatRateId",
      +              "vatPercentage"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "acCode": {
      +            "description": "Customer account code.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "bookTranTypeId": {
      +            "const": 1,
      +            "description": "Cash Receipt book transaction type id. Must be 1.",
      +            "type": "number"
      +          },
      +          "customerId": {
      +            "description": "BRC customer id.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          },
      +          "discount": {
      +            "type": "number"
      +          },
      +          "entryDate": {
      +            "description": "Entry date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "ledger": {
      +            "description": "Customer-ledger amount; must equal total.",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          "note": {
      +            "description": "Cash Receipt note.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "procDate": {
      +            "description": "Processing date in ISO format.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reference": {
      +            "type": "string"
      +          },
      +          "total": {
      +            "description": "Positive Cash Receipt total.",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "note",
      +          "entryDate",
      +          "procDate",
      +          "bookTranTypeId",
      +          "customerId",
      +          "acCode",
      +          "ledger"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  "opCode": {
      +    "const": 1,
      +    "description": "BRC batch create operation code. Must be 1.",
      +    "type": "number"
      +  }
      +}
    • removedInput schema / properties / items / items / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / items / items / required
      Added value: +[
      +  "opCode",
      +  "item"
      +]
    • removedInput schema / properties / priceBasis
      Removed value: -{
      -  "description": "Applies to every sales invoice/credit note item in this batch. Required when Gross Price Entry is enabled. Use `gross` when unit prices are VAT-inclusive/gross. Use `net` when unit prices are VAT-exclusive/net.",
      -  "enum": [
      -    "net",
      -    "gross"
      -  ],
      -  "type": "string"
      -}
  3. Changed2 schema fields changed
    • addedInput schema / properties / routeToken
      Added value: +{
      +  "description": "Opaque routeToken from brc_route_request for this action workflow. Required for transactional tools. Routing permission only — does not replace preview-before-posting or confirmWrite.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "companyName",
      -  "items"
      -]New value: +[
      +  "companyName",
      +  "items",
      +  "routeToken"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / properties / routeToken
      Removed value: -{
      -  "description": "Opaque routeToken from brc_route_request for this action workflow. Required for transactional tools. Routing permission only — does not replace preview-before-posting or confirmWrite.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "companyName",
      -  "items",
      -  "routeToken"
      -]New value: +[
      +  "companyName",
      +  "items"
      +]
  5. Changed2 schema fields changed
    • addedInput schema / properties / routeToken
      Added value: +{
      +  "description": "Opaque routeToken from brc_route_request for this action workflow. Required for transactional tools. Routing permission only — does not replace preview-before-posting or confirmWrite.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "companyName",
      -  "items"
      -]New value: +[
      +  "companyName",
      +  "items",
      +  "routeToken"
      +]
  6. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare destructive write behavior, and the description goes well beyond that: it discloses the 20-item cap, token issuance/validity rules, that routeToken does not bypass preview or confirmation, that preflight is not confirmation, and that counterparty confirmation is scoped to the currently previewed counterparty. This is unusually rich behavioral detail that materially affects correct invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose and the hard limit, then layers the token and confirmation rules. Every sentence is functional, though the confirmation/preview rules are stated with some redundancy ("does not bypass preview" vs. "preflight is not confirmation").

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive batch-write tool with no output schema, the description covers the safety-critical contract (token, preview, confirmation, counterparty scoping) thoroughly. It stops short of explaining failure modes or the actual response shape, which would be the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description does restate the confirmWrite/confirmCounterpartyExplicit semantics, but those exact meanings already live in the schema descriptions, so it adds little beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Processes a batch of BRC cash receipts") and the batch scope distinguishes it from the singular brc_create_cash_receipt sibling. It does not, however, explicitly name alternatives for single vs. batch creation, so the differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives strong conditional guidance on the write workflow: routeToken must come from the matching action workflow, placeholder tokens are invalid, preview is mandatory, and confirmWrite/confirmCounterpartyExplicit are only set after explicit user confirmation. It lacks explicit routing to sibling batch tools (e.g., why this vs. brc_batch_payments) and no stated when-not-to-use, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.