{"success":true,"service":"AutoCount AI Agent Tools","total":116,"tools":[{"name":"get_authenticated_profile","title":"Get Authenticated Profile","description":"Get the authenticated user's profile and stable identity.","scope":"ac_ai_agent.access","module":"none","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"profile","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"list_account_books","title":"List AutoCount Account Books","description":"List AutoCount Account Books authorized for the signed-in AI Agent user, including online and permission status.","scope":"ac_ai_agent.access","module":"none","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"list-account-books","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"get_support_contact","title":"Get Support and Feedback Contact","description":"Get contact details for the KSL Support Team to ask questions, report issues, or provide suggestions and feedback regarding AI Agent.","scope":"ac_ai_agent.access","module":"none","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"support","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}},{"name":"compare_account_books_financials","title":"Compare Account Book Financials","description":"Compare P&L and Balance Sheet summaries side by side across authorized AutoCount Account Books. This is a management comparison only: it does not convert currencies, eliminate intercompany balances, or create statutory consolidated accounts.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"multi-account-financials","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookIds":{"description":"Authorized Account Books to compare. Omit to use every authorized Account Book.","minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"asOfDate":{"description":"Balance Sheet date. Defaults to toDate.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["fromDate","toDate"],"additionalProperties":false}},{"name":"search_debtors","title":"Search Debtors","description":"Search debtors in one online AutoCount Account Book. Pass empty query or '*' to list all debtors. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"query":{"default":"","description":"Search keyword for customer code or company name. Leave empty or pass '*' to list all debtors.","type":"string","maxLength":200},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId","query"],"additionalProperties":false}},{"name":"get_debtor","title":"Get Debtor","description":"Get the profile, credit terms and addresses for a debtor. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","debtorCode"],"additionalProperties":false}},{"name":"get_debtor_types","title":"List Debtor Types","description":"List debtor types defined in AutoCount. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"search_creditors","title":"Search Creditors","description":"Search suppliers or creditors in one Account Book. Pass empty query or '*' to list all creditors. Read-only.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"query":{"default":"","description":"Search keyword for supplier code or company name. Leave empty or pass '*' to list all creditors.","type":"string","maxLength":200},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId","query"],"additionalProperties":false}},{"name":"get_creditor","title":"Get Creditor","description":"Get the profile, credit terms and addresses for a creditor. Read-only.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","creditorCode"],"additionalProperties":false}},{"name":"get_creditor_types","title":"List Creditor Types","description":"List creditor types defined in AutoCount. Read-only.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_creditor_balance","title":"Get Creditor Balance","description":"Get outstanding payable balance, credit limit and invoice count for a creditor/supplier. Read-only.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","minLength":1,"maxLength":100},"asOfDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId","creditorCode"],"additionalProperties":false}},{"name":"get_outstanding_ap_invoices","title":"Get Outstanding A/P Invoices","description":"List unpaid supplier bills / purchase invoices, optionally filtered by creditor. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","maxLength":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_debtor_balance","title":"Get Debtor Balance","description":"Get a debtor balance as of an optional date. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","minLength":1,"maxLength":100},"asOfDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId","debtorCode"],"additionalProperties":false}},{"name":"get_outstanding_invoices","title":"Get Outstanding Invoices","description":"List outstanding invoices, optionally filtered by debtor. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_ar_payments","title":"Get A/R Payments","description":"List customer payments received in Accounts Receivable. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_invoice","title":"Get Sales Invoice","description":"Get one Sales Invoice by document number. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentNo":{"type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","documentNo"],"additionalProperties":false}},{"name":"list_invoices","title":"List Sales Invoices","description":"List or search Sales Invoices with optional filters. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_sales_summary","title":"Get Sales Summary","description":"Get a sales summary for an inclusive date range. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId","fromDate","toDate"],"additionalProperties":false}},{"name":"get_sales_orders","title":"List Sales Orders","description":"List or query Sales Orders. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_delivery_orders","title":"List Delivery Orders","description":"List or query Delivery Orders. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_quotations","title":"List Sales Quotations","description":"List or query Sales Quotations. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_purchase_orders","title":"List Purchase Orders","description":"List or query Purchase Orders issued to suppliers with net total and status. Read-only.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_purchase_invoices","title":"List Purchase Invoices","description":"List or query Purchase Invoices received from suppliers with net total and status. Read-only.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","maxLength":100},"docNo":{"type":"string","maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"search_items","title":"Search Stock Items","description":"Search inventory items and stock codes. Pass empty string, omit, or pass '*' to list all items. Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"query":{"default":"","description":"Search keyword for item code or description. Leave blank, omit, or pass '*' to list all items.","type":"string","maxLength":200},"limit":{"description":"Maximum number of items to return.","default":50,"type":"integer","minimum":1,"maximum":200}},"required":["accountBookId","query"],"additionalProperties":false}},{"name":"get_item","title":"Get Stock Item","description":"Get details, UOM pricing and specifications for an item. Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"itemCode":{"type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","itemCode"],"additionalProperties":false}},{"name":"get_price_history","title":"Get Customer Price History","description":"Get historical selling prices, discounts and UOMs for a customer and/or stock item from recent sales invoices and cash sales. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"description":"Optional debtor code in AutoCount.","type":"string","maxLength":100},"itemCode":{"description":"Optional stock item code in AutoCount.","type":"string","maxLength":100},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_stock_balance","title":"Get Stock Balance","description":"Get real-time stock balances. Can query a single item or across all inventory items. Supports finding backorders / oversold items with negative stock (balanceFilter: 'negative'), out-of-stock items (balanceFilter: 'zero' or zeroBalanceOnly: true), below reorder level, or by location. Returns ItemCode, Description, UOM, Location, BalanceQuantity, Cost, Price, and ReorderLevel. Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"itemCode":{"description":"Optional stock item code. Leave blank, omit, or pass '*' to query across all items without item-level restriction.","type":"string","maxLength":100},"location":{"description":"Optional stock location filter (e.g. 'HQ').","type":"string","maxLength":100},"zeroBalanceOnly":{"default":false,"description":"Set true to return ONLY items with 0 stock balance (perfect for identifying out-of-stock items needing purchase).","type":"boolean"},"belowReorderLevel":{"default":false,"description":"Set true to return items where stock balance is at or below the reorder level, or stock is 0.","type":"boolean"},"balanceFilter":{"default":"all","description":"Filter items by balance status: 'negative' (BalQty < 0, backorders, oversold negative inventory needing stock adjustment), 'zero' (BalQty = 0, out of stock), 'positive' (BalQty > 0), 'low_stock' (BalQty <= ReorderLevel or <= 0), or 'all'.","type":"string","enum":["all","zero","positive","negative","low_stock"]},"limit":{"description":"Maximum number of records to return (default 50, max 200).","default":50,"type":"integer","minimum":1,"maximum":200}},"required":["accountBookId","zeroBalanceOnly","belowReorderLevel","balanceFilter"],"additionalProperties":false}},{"name":"get_cash_bank_balances","title":"Get Cash and Bank Balances","description":"Get real-time balances for all cash and bank accounts (e.g. Maybank, Public Bank, Petty Cash). Read-only.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"search_chart_of_accounts","title":"Search Chart of Accounts","description":"Search general ledger accounts in AutoCount (e.g. expenses, revenues, assets, liabilities) with account numbers and descriptions. Pass empty query or '*' to list all accounts. Useful before preparing journal entries or vouchers. Read-only.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"query":{"default":"","description":"Search keyword for account number or description. Leave empty or pass '*' to list all accounts.","type":"string","maxLength":200},"accType":{"description":"Optional account type filter, e.g. CA (Current Asset), CL (Current Liability), EP (Expenses), SL (Sales).","type":"string","maxLength":20},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId","query"],"additionalProperties":false}},{"name":"get_tax_codes","title":"Get SST Tax Codes","description":"List active SST tax codes (e.g. SV-8, SST-0, TX) configured in AutoCount with rates and supply/purchase classifications. Read-only.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_tax_entity","title":"Get Tax Entity / LHDN Profile","description":"Get the Tax Entity master profile (TIN, BRN, MSIC code, SST registration numbers, address, linked customers/suppliers) for Malaysia LHDN e-Invoice compliance. Can query by taxEntityId, TIN, BRN/IdentityNo, debtorCode, creditorCode, or for the company's own profile.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"taxEntityId":{"description":"Internal AutoCount TaxEntityID.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"tin":{"description":"Tax Identification Number (TIN or FullTIN).","type":"string","maxLength":30},"identityNo":{"description":"Business Registration No (BRN) or NRIC / Passport.","type":"string","maxLength":30},"debtorCode":{"description":"Customer debtor code to look up linked Tax Entity.","type":"string","maxLength":100},"creditorCode":{"description":"Supplier creditor code to look up linked Tax Entity.","type":"string","maxLength":100},"isCompanyProfile":{"description":"Set true to get the Account Book company's own Tax Entity profile.","type":"boolean"}},"required":["accountBookId"],"additionalProperties":false}},{"name":"search_tax_entities","title":"Search Tax Entities","description":"Search registered Tax Entities in AutoCount by company name, TIN, BRN/IdentityNo, phone, or email. Pass empty query or '*' to list all. Read-only.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"query":{"default":"","description":"Keyword for company name, TIN, BRN, phone or email. Leave empty or pass '*' to list all.","type":"string","maxLength":200},"limit":{"default":20,"type":"integer","minimum":1,"maximum":50}},"required":["accountBookId","query"],"additionalProperties":false}},{"name":"list_payment_methods","title":"List Payment Methods","description":"List active AutoCount payment methods and their linked bank accounts. Use before preparing cash, receipt, refund or payment documents.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_currencies","title":"List Currencies","description":"List currencies and configured bank buy/sell rates in the Account Book.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_exchange_rate","title":"Get Exchange Rate","description":"Get the configured AutoCount currency rate effective on a specific date.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"currencyCode":{"type":"string","minLength":1,"maxLength":10},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId","currencyCode"],"additionalProperties":false}},{"name":"list_locations","title":"List Stock Locations","description":"List active AutoCount stock locations. Use before preparing stock or item documents.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_projects","title":"List Projects","description":"List active AutoCount projects and their parent project codes.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_departments","title":"List Departments","description":"List active AutoCount departments and their parent department codes.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_payment_terms","title":"List Payment Terms","description":"List AutoCount payment terms, due days and early-payment discounts.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_sales_agents","title":"List Sales Agents","description":"List active AutoCount sales agents.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_purchase_agents","title":"List Purchase Agents","description":"List active AutoCount purchase agents.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_shipping_methods","title":"List Shipping Methods","description":"List active AutoCount shipping methods.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_areas","title":"List Areas","description":"List AutoCount area codes used by customers, suppliers and delivery addresses.","scope":"ac_ai_agent.access","module":"master","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_debtor_aging","title":"Get Debtor Invoice Aging","description":"Get open A/R invoice aging by due date (Current, 1-30, 31-60, 61-90, 91-120, >120 days overdue) for one or all customers. Use document inquiry for A/R credit notes and other adjustments. Read-only.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"description":"Optional debtor code.","type":"string","maxLength":100},"asOfDate":{"description":"Aging as-of date (YYYY-MM-DD). Defaults to today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_unbilled_delivery_orders","title":"Get Unbilled Delivery Orders","description":"List Delivery Orders that have been delivered to customers but have not yet been invoiced. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_unfulfilled_sales_orders","title":"Get Unfulfilled Sales Orders","description":"List pending / backorder Sales Orders that have not yet been fully delivered or invoiced, including outstanding quantities. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","maxLength":100},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_profit_and_loss_summary","title":"Get Profit and Loss Summary","description":"Get a management P&L summary from posted G/L transactions for an inclusive date range, including Sales, COGS, Gross Profit, Operating Expenses, Taxation, and Net Profit. Reconcile material decisions to Trial Balance and official AutoCount reports. Read-only.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Start date (YYYY-MM-DD)."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"End date (YYYY-MM-DD)."}},"required":["accountBookId","fromDate","toDate"],"additionalProperties":false}},{"name":"get_balance_sheet_summary","title":"Get Balance Sheet Summary","description":"Get a management Balance Sheet summary from posted G/L transactions, including other assets, retained earnings, current-period profit and a balance-difference control. Reconcile material decisions to Trial Balance and official AutoCount reports. Read-only.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"asOfDate":{"description":"As-of date (YYYY-MM-DD). Defaults to today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_trial_balance","title":"Get Trial Balance","description":"Get opening balance, period debit/credit and closing balance by G/L account. Use this as the accounting control base before giving CFO-level advice.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"accountNo":{"type":"string","minLength":1,"maxLength":30},"includeZero":{"default":false,"type":"boolean"}},"required":["accountBookId","fromDate","toDate","includeZero"],"additionalProperties":false}},{"name":"get_general_ledger","title":"Get General Ledger","description":"Drill down one G/L account to its transactions, source references, projects, departments and running balance.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"accountNo":{"type":"string","minLength":1,"maxLength":30},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":100,"type":"integer","minimum":1,"maximum":500},"offset":{"default":0,"type":"integer","minimum":0,"maximum":1000000}},"required":["accountBookId","accountNo","fromDate","toDate","limit","offset"],"additionalProperties":false}},{"name":"get_ap_aging","title":"Get Supplier Invoice Aging","description":"Get open A/P invoice aging in local currency by supplier and due date. Use document inquiry for A/P credit notes and other adjustments.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","minLength":1,"maxLength":100},"asOfDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_ap_payments","title":"Get A/P Payments","description":"List supplier payments, applied amount and unapplied amount.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","minLength":1,"maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":100,"type":"integer","minimum":1,"maximum":500}},"required":["accountBookId","limit"],"additionalProperties":false}},{"name":"get_customer_ledger","title":"Get Customer Ledger","description":"Get the G/L-backed customer subledger with opening and running balances.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","minLength":1,"maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":200,"type":"integer","minimum":1,"maximum":500}},"required":["accountBookId","debtorCode","fromDate","toDate","limit"],"additionalProperties":false}},{"name":"get_supplier_ledger","title":"Get Supplier Ledger","description":"Get the G/L-backed supplier subledger with opening and running balances.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"creditorCode":{"type":"string","minLength":1,"maxLength":100},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":200,"type":"integer","minimum":1,"maximum":500}},"required":["accountBookId","creditorCode","fromDate","toDate","limit"],"additionalProperties":false}},{"name":"get_cash_flow_summary","title":"Get Cash Flow Classification Summary","description":"Return a management cash-flow movement summary grouped by AutoCount G/L CashFlowCategory. This is clearly marked as non-statutory when accounts are unclassified.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId","fromDate","toDate"],"additionalProperties":false}},{"name":"get_accounting_period_status","title":"Get Accounting Period Status","description":"List fiscal years and locked accounting period numbers before preparing back-dated documents.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"search_documents","title":"Search Documents","description":"Search allowlisted Sales, Purchase, A/R and A/P document types through one consistent inquiry tool.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","APInvoice","APPayment","APDebitNote","APCreditNote"]},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"partyCode":{"type":"string","maxLength":100},"query":{"description":"Search keyword for DocNo or Reference. Leave empty or pass '*' to list all documents.","type":"string","maxLength":200},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200}},"required":["accountBookId","documentType","limit"],"additionalProperties":false}},{"name":"get_document","title":"Get Document","description":"Get one allowlisted Sales, Purchase, A/R or A/P document. Item-document results include detail lines.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","APInvoice","APPayment","APDebitNote","APCreditNote"]},"documentNo":{"type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","documentType","documentNo"],"additionalProperties":false}},{"name":"get_einvoice_status","title":"Get LHDN e-Invoice Status","description":"Check the official LHDN e-Invoice validation status, UUID, validation link, and error message for a sales invoice. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"docNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount invoice document number (e.g. IV-00001)."}},"required":["accountBookId","docNo"],"additionalProperties":false}},{"name":"get_sales_by_agent","title":"Get Sales Performance by Agent","description":"Analyze sales performance, invoice counts, and total sales grouped by Sales Agent for an optional date range. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_project_summary","title":"Get Project Profitability Summary","description":"Analyze revenue, direct costs, expenses, and net profit grouped by Project No. Read-only.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"projectNo":{"description":"Optional project code filter.","type":"string","maxLength":30}},"required":["accountBookId"],"additionalProperties":false}},{"name":"get_low_stock_alert","title":"Get Low Stock Reorder Alert","description":"List stock items needing replenishment. Flags items where stock balance is negative (backorders / oversold), zero, or <= reorder level (includeZeroBalance: true). Perfect for identifying items that need Purchase Orders, Purchase Invoices, or Stock Adjustments. Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"includeZeroBalance":{"default":true,"description":"Whether to include items with negative balance (backorders) or 0 balance even if Reorder Level is not configured (default true).","type":"boolean"},"limit":{"description":"Maximum number of items to return.","default":50,"type":"integer","minimum":1,"maximum":200}},"required":["accountBookId","includeZeroBalance"],"additionalProperties":false}},{"name":"get_stock_card","title":"Get Stock Card / Movement Ledger","description":"Get transaction history (in, out, costs, documents) for a stock item across an optional date range and location. Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","maxLength":100},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId","itemCode"],"additionalProperties":false}},{"name":"check_bom_material_availability","title":"Check BOM Material Availability","description":"Check if there is sufficient raw material stock to produce a given quantity of a finished good according to its Bill of Material (BOM). Read-only.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"Finished good stock item code with BOM."},"quantity":{"default":"1","description":"Exact quantity of finished goods to produce.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"}},"required":["accountBookId","itemCode","quantity"],"additionalProperties":false}},{"name":"list_report_designs","title":"Choose Report Design","description":"List every AutoCount System and custom report design available for a document type. Before generating a PDF, call this tool and show the exact design names so the user can freely choose one. Read-only.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"default":"SalesInvoice","description":"Document type, e.g. SalesInvoice, CashSale, DebtorStatement.","type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","documentType"],"additionalProperties":false}},{"name":"get_document_pdf","title":"Get Official Document PDF","description":"Generate an official AutoCount document PDF using the report design selected by the user. If no design has been selected, call list_report_designs first and present the choices. Returns a secure 7-day view/download link.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"report","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["SalesInvoice","Invoice","IV","CashSale","CS","CreditNote","CN","DebitNote","DN","DeliveryOrder","DO","SalesOrder","SO","Quotation","QT","PurchaseOrder","PO","PurchaseInvoice","PI"],"description":"AutoCount document type, e.g. SalesInvoice, CashSale, CreditNote, SalesOrder, Quotation."},"documentNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount document number."},"reportName":{"description":"Exact report design name returned by list_report_designs. Ask the user to choose; omit only when the user explicitly requests the default design.","type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","documentType","documentNo"],"additionalProperties":false}},{"name":"get_debtor_statement_pdf","title":"Get Debtor Statement PDF","description":"Generate an official AutoCount Debtor Statement PDF using the report design selected by the user. If no design has been selected, call list_report_designs first and present the choices. Returns a secure 7-day view/download link.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"report","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"Debtor code in AutoCount."},"asOfDate":{"description":"Statement as-of date (YYYY-MM-DD). Defaults to today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reportName":{"description":"Exact report design name returned by list_report_designs. Ask the user to choose; omit only when the user explicitly requests the default design.","type":"string","minLength":1,"maxLength":100}},"required":["accountBookId","debtorCode"],"additionalProperties":false}},{"name":"validate_document_draft","title":"Validate Document Draft","description":"Validate one document draft against its document-specific rules and live AutoCount master data without creating an Inbox request.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","StockTake","StockAdjustment","StockIssue","StockReceive","StockWriteOff","StockTransfer","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","ARRefund","ARDeposit","APInvoice","APPayment","APDebitNote","APCreditNote","APRefund","ReceiptVoucher","PaymentVoucher","JournalEntry"]},"draft":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountBookId","documentType","draft"],"additionalProperties":false}},{"name":"preview_document_draft","title":"Preview Document Draft","description":"Return an exact-decimal summary, calculated totals, validation messages and duplicate warnings without creating an Inbox request.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","StockTake","StockAdjustment","StockIssue","StockReceive","StockWriteOff","StockTransfer","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","ARRefund","ARDeposit","APInvoice","APPayment","APDebitNote","APCreditNote","APRefund","ReceiptVoucher","PaymentVoucher","JournalEntry"]},"draft":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountBookId","documentType","draft"],"additionalProperties":false}},{"name":"detect_duplicate_documents","title":"Detect Duplicate Documents","description":"Check the Account Book Inbox and posted AutoCount documents for likely duplicates before preparation.","scope":"ac_ai_agent.access","module":"dynamic-document","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","StockTake","StockAdjustment","StockIssue","StockReceive","StockWriteOff","StockTransfer","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","ARRefund","ARDeposit","APInvoice","APPayment","APDebitNote","APCreditNote","APRefund","ReceiptVoucher","PaymentVoucher","JournalEntry"]},"draft":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["accountBookId","documentType","draft"],"additionalProperties":false}},{"name":"list_inbox_requests","title":"List AI Agent Inbox Requests","description":"Query redacted Inbox request summaries by status, document type, requester and date. Read-only.","scope":"ac_ai_agent.access","module":"inbox","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"status":{"type":"string","enum":["Approved","PendingApproval","Expired","Rejected","Failed"]},"documentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder","SalesInvoice","CashSale","CreditNote","DebitNote","SalesConsignment","SalesConsignmentReturn","PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice","CashPurchase","PurchaseReturn","GoodsReturn","PurchaseConsignment","PurchaseConsignmentReturn","StockTake","StockAdjustment","StockIssue","StockReceive","StockWriteOff","StockTransfer","ARInvoice","ARPayment","ARDebitNote","ARCreditNote","ARRefund","ARDeposit","APInvoice","APPayment","APDebitNote","APCreditNote","APRefund","ReceiptVoucher","PaymentVoucher","JournalEntry"]},"requestedBy":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"limit":{"default":50,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId","limit"],"additionalProperties":false}},{"name":"get_inbox_request","title":"Get AI Agent Inbox Request","description":"Get one Inbox request, its current status and audit timeline by Request ID or Inbox ID. Read-only.","scope":"ac_ai_agent.access","module":"inbox","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inboxId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["accountBookId"],"additionalProperties":false}},{"name":"convert_sales_document","title":"Prepare Sales Document Conversion","description":"Prepare a full AutoCount sales document conversion in Inbox. AutoCount performs the official transfer only after user review and save.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100},"sourceDocumentType":{"type":"string","enum":["Quotation","SalesOrder","DeliveryOrder"]},"sourceDocumentNos":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"targetDocumentType":{"type":"string","enum":["SalesOrder","DeliveryOrder","SalesInvoice"]},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"description":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"fullTransferOption":{"default":"FullDetails","type":"string","enum":["FullDetails","OneDocumentToOneItem","ManyDocumentToOneItem"]},"allowPotentialDuplicate":{"default":false,"type":"boolean"}},"required":["accountBookId","idempotencyKey","sourceDocumentType","sourceDocumentNos","targetDocumentType","documentDate","fullTransferOption","allowPotentialDuplicate"],"additionalProperties":false}},{"name":"convert_purchase_document","title":"Prepare Purchase Document Conversion","description":"Prepare a full AutoCount purchase document conversion in Inbox. AutoCount performs the official transfer only after user review and save.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100},"sourceDocumentType":{"type":"string","enum":["PurchaseRequest","RequestQuotation","PurchaseOrder","GoodsReceivedNote"]},"sourceDocumentNos":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"targetDocumentType":{"type":"string","enum":["RequestQuotation","PurchaseOrder","GoodsReceivedNote","PurchaseInvoice"]},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"description":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"fullTransferOption":{"default":"FullDetails","type":"string","enum":["FullDetails","OneDocumentToOneItem","ManyDocumentToOneItem"]},"allowPotentialDuplicate":{"default":false,"type":"boolean"}},"required":["accountBookId","idempotencyKey","sourceDocumentType","sourceDocumentNos","targetDocumentType","documentDate","fullTransferOption","allowPotentialDuplicate"],"additionalProperties":false}},{"name":"prepare_quotation","title":"Prepare Sales Quotation","description":"Prepare Sales Quotation in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_sales_order","title":"Prepare Sales Order","description":"Prepare Sales Order in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_delivery_order","title":"Prepare Delivery Order","description":"Prepare Delivery Order in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_sales_invoice","title":"Prepare Sales Invoice","description":"Prepare Sales Invoice in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_cash_sale","title":"Prepare Cash Sale","description":"Prepare Cash Sale in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_credit_note","title":"Prepare Sales Credit Note","description":"Prepare Sales Credit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_debit_note","title":"Prepare Sales Debit Note","description":"Prepare Sales Debit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_sales_consignment","title":"Prepare Sales Consignment","description":"Prepare Sales Consignment in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}},"location":{"type":"string","maxLength":100}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_sales_consignment_return","title":"Prepare Sales Consignment Return","description":"Prepare Sales Consignment Return in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"description":"Optional currency code (e.g. 'USD', 'SGD'). Omit to use the debtor's default currency in AutoCount.","type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override (e.g. '4.60'). Omit to use AutoCount's configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin (e.g. 'Customer requested 10% discount on WhatsApp'). Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}},"location":{"type":"string","maxLength":100}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_request","title":"Prepare Purchase Request","description":"Prepare Purchase Request in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"Optional preferred creditor code."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_request_quotation","title":"Prepare Request Quotation","description":"Prepare Request Quotation in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_order","title":"Prepare Purchase Order","description":"Prepare Purchase Order in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_goods_received_note","title":"Prepare Goods Received Note","description":"Prepare Goods Received Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_invoice","title":"Prepare Purchase Invoice","description":"Prepare Purchase Invoice in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_cash_purchase","title":"Prepare Cash Purchase","description":"Prepare Cash Purchase in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_return","title":"Prepare Purchase Return","description":"Prepare Purchase Return in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_goods_return","title":"Prepare Goods Return","description":"Prepare Goods Return in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_consignment","title":"Prepare Purchase Consignment","description":"Prepare Purchase Consignment in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}},"location":{"type":"string","maxLength":100}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_purchase_consignment_return","title":"Prepare Purchase Consignment Return","description":"Prepare Purchase Consignment Return in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"purchase","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"description":"Optional exchange rate override. Omit to use configured currency rate.","type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$"},"description":{"type":"string","maxLength":500},"agentRemark":{"description":"Optional internal note from AI to the AutoCount admin. Not printed on customer document.","type":"string","maxLength":500},"attention":{"type":"string","maxLength":200},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"unitPrice":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"uom":{"type":"string","maxLength":50},"discount":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["itemCode","quantity","unitPrice"],"additionalProperties":false}},"location":{"type":"string","maxLength":100}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_take","title":"Prepare Stock Take","description":"Prepare Stock Take in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","minLength":1,"maxLength":100,"description":"Stock-take location."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","location","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_adjustment","title":"Prepare Stock Adjustment","description":"Prepare Stock Adjustment in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","minLength":1,"maxLength":100,"description":"Adjustment location."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","location","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_issue","title":"Prepare Stock Issue","description":"Prepare Stock Issue in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","minLength":1,"maxLength":100,"description":"Issue location."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","location","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_receive","title":"Prepare Stock Receive","description":"Prepare Stock Receive in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","minLength":1,"maxLength":100,"description":"Receiving location."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","location","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_write_off","title":"Prepare Stock Write-Off","description":"Prepare Stock Write-Off in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"location":{"type":"string","minLength":1,"maxLength":100,"description":"Write-off location."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["itemCode","quantity"],"additionalProperties":false}}},"required":["documentDate","location","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_stock_transfer","title":"Prepare Stock Transfer","description":"Prepare Stock Transfer in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"stock","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"fromLocation":{"type":"string","minLength":1,"maxLength":100,"description":"Default source location."},"toLocation":{"type":"string","minLength":1,"maxLength":100,"description":"Default destination location."},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"itemCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount stock item code."},"quantity":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"uom":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"unitCost":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100},"fromLocation":{"type":"string","minLength":1,"maxLength":100,"description":"Source stock location."},"toLocation":{"type":"string","minLength":1,"maxLength":100,"description":"Destination stock location."}},"required":["itemCode","quantity","fromLocation","toLocation"],"additionalProperties":false}}},"required":["documentDate","fromLocation","toLocation","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_invoice","title":"Prepare A/R Invoice","description":"Prepare A/R Invoice in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_payment","title":"Prepare A/R Payment","description":"Prepare A/R Payment in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"paymentMethod":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount payment method code."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"paymentBy":{"type":"string","maxLength":200},"chequeNo":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["paymentMethod","amount"],"additionalProperties":false}},"allocations":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"documentType":{"type":"string","enum":["ARInvoice","ARIV","ARDebitNote","ARDN"]},"documentNo":{"type":"string","minLength":1,"maxLength":100,"description":"Outstanding A/R document number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["documentType","documentNo","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines","allocations"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_debit_note","title":"Prepare A/R Debit Note","description":"Prepare A/R Debit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_credit_note","title":"Prepare A/R Credit Note","description":"Prepare A/R Credit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_refund","title":"Prepare A/R Refund","description":"Prepare A/R Refund in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"paymentMethod":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount payment method code."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"paymentBy":{"type":"string","maxLength":200},"chequeNo":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["paymentMethod","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ar_deposit","title":"Prepare A/R Deposit","description":"Prepare A/R Deposit in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ar","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"debtorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount debtor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"paymentMethod":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount payment method code."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"paymentBy":{"type":"string","maxLength":200},"chequeNo":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["paymentMethod","amount"],"additionalProperties":false}}},"required":["debtorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ap_invoice","title":"Prepare A/P Invoice","description":"Prepare A/P Invoice in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ap_payment","title":"Prepare A/P Payment","description":"Prepare A/P Payment in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"paymentMethod":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount payment method code."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"paymentBy":{"type":"string","maxLength":200},"chequeNo":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["paymentMethod","amount"],"additionalProperties":false}},"allocations":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"documentType":{"type":"string","enum":["APInvoice","APIV","APDebitNote","APDN"]},"documentNo":{"type":"string","minLength":1,"maxLength":100,"description":"Outstanding A/P document number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."}},"required":["documentType","documentNo","amount"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines","allocations"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ap_debit_note","title":"Prepare A/P Debit Note","description":"Prepare A/P Debit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ap_credit_note","title":"Prepare A/P Credit Note","description":"Prepare A/P Credit Note in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_ap_refund","title":"Prepare A/P Refund","description":"Prepare A/P Refund in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"ap","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"creditorCode":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount creditor code."},"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"yourReference":{"type":"string","maxLength":200},"lines":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"paymentMethod":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount payment method code."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"paymentBy":{"type":"string","maxLength":200},"chequeNo":{"type":"string","maxLength":100},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["paymentMethod","amount"],"additionalProperties":false}}},"required":["creditorCode","documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_receipt_voucher","title":"Prepare Receipt Voucher","description":"Prepare Receipt Voucher in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"receiveFrom":{"type":"string","minLength":1,"maxLength":100,"description":"Person or company received from."},"dealWith":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["documentDate","receiveFrom","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_payment_voucher","title":"Prepare Payment Voucher","description":"Prepare Payment Voucher in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"payTo":{"type":"string","minLength":1,"maxLength":100,"description":"Person or company paid to."},"dealWith":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"amount":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo","amount"],"additionalProperties":false}}},"required":["documentDate","payTo","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"prepare_journal_entry","title":"Prepare Journal Entry","description":"Prepare Journal Entry in AI Agent Inbox. It remains Awaiting Approval until an authorized AutoCount user reviews and saves it through AutoCount Business Logic.","scope":"ac_ai_agent.access","module":"gl","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"prepare","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100,"description":"Unique caller-generated retry key."},"allowPotentialDuplicate":{"default":false,"description":"Set true only after the user reviews duplicate warnings and explicitly chooses to continue.","type":"boolean"},"draft":{"type":"object","properties":{"documentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date in YYYY-MM-DD format."},"currencyCode":{"type":"string","minLength":3,"maxLength":10},"currencyRate":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"agentRemark":{"type":"string","maxLength":500},"lines":{"minItems":2,"maxItems":500,"type":"array","items":{"type":"object","properties":{"accountNo":{"type":"string","minLength":1,"maxLength":100,"description":"AutoCount G/L account number."},"debit":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"credit":{"type":"string","minLength":1,"maxLength":64,"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d{1,28})?$","description":"Exact decimal represented as a JSON string, e.g. \"1234.50\". Never send a JSON number."},"description":{"type":"string","maxLength":500},"taxCode":{"type":"string","maxLength":50},"project":{"type":"string","maxLength":100},"department":{"type":"string","maxLength":100}},"required":["accountNo"],"additionalProperties":false}}},"required":["documentDate","lines"],"additionalProperties":false}},"required":["accountBookId","idempotencyKey","allowPotentialDuplicate","draft"],"additionalProperties":false}},{"name":"get_whatsapp_connection_status","title":"Get WhatsApp Connection Status","description":"Check if the specified AutoCount Account Book has an active WhatsApp Business connection, including the connected phone number, verified business name, and connection health. Read-only.","scope":"ac_ai_agent.access","module":"none","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"whatsapp-status","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."}},"required":["accountBookId"],"additionalProperties":false}},{"name":"list_whatsapp_logs","title":"List WhatsApp Delivery Logs","description":"Query recent WhatsApp document delivery logs for an Account Book, including recipient phone number, document type, document number, status (Queued=1, Sending=2, Delivered=3, Read=4, Failed=5, Cancelled=6), request time, and error notes. Read-only.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"description":"Optional document type filter, e.g. SalesInvoice, Quotation, DebtorStatement.","type":"string","maxLength":64},"documentNo":{"description":"Optional document number filter.","type":"string","maxLength":128},"recipient":{"description":"Optional phone number filter.","type":"string","maxLength":32},"status":{"description":"Optional numeric status code (1=Queued, 2=Sending, 3=Delivered, 4=Read, 5=Failed, 6=Cancelled).","type":"integer","minimum":1,"maximum":6},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100}},"required":["accountBookId"],"additionalProperties":false}},{"name":"send_document_via_whatsapp","title":"Send Document via WhatsApp","description":"Queue an AutoCount document (Sales Invoice, Quotation, Sales Order, Delivery Order, or Debtor Statement) to be delivered to the customer via WhatsApp. If recipient phone number is not specified, AutoCount automatically resolves it from the debtor's profile in the Account Book.","scope":"ac_ai_agent.access","module":"sales","annotations":{"readOnlyHint":false,"destructiveHint":false,"openWorldHint":false},"behaviorKind":"agent","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accountBookId":{"type":"string","minLength":1,"maxLength":100,"description":"Stable AI Agent AccountBookId, not the SQL database name."},"documentType":{"type":"string","enum":["SalesInvoice","Quotation","SalesOrder","DeliveryOrder","DebtorStatement"],"description":"Document type to deliver via WhatsApp."},"documentNo":{"type":"string","minLength":1,"maxLength":128,"description":"Document number (e.g. IV-00123) or Debtor Code for DebtorStatement."},"recipient":{"description":"Recipient WhatsApp phone number in international format without leading '+' (e.g. 60123456789). If omitted, AutoCount automatically looks up the debtor's registered phone number.","type":"string","maxLength":32},"reportDesign":{"description":"Optional report design name configured in AutoCount.","type":"string","maxLength":256}},"required":["accountBookId","documentType","documentNo"],"additionalProperties":false}}],"generatedAt":"2026-10-09T18:37:13.568Z"}