Skip to main content
Glama
PNPC-MCP-Tally-Prime

PNPC-MCP-Tally-Prime

Latest release Downloads Tools Clients License

Local desktop install · JSON config for OpenCode Desktop · remote HTTPS for claude.ai, ChatGPT and Grok

Prerequisites · Install · Tools · Cloud setup · Playbook

Built and maintained by Lokesh Sparrow. Public so anyone can use or self-host it for their own TallyPrime setup. New here? The Tool Playbook shows what to actually type in chat, before you get to the full reference below.

Prerequisites

  • TallyPrime (Silver / Gold — avoid the Educational edition, its date-range limitation feeds partial/invalid data to the LLM and causes degraded, incorrect answers)

  • Claude Desktop (Pro / Team / Max / Enterprise recommended — MCP makes many calls to Tally per question, which can exhaust a Free plan's limits quickly)

  • TallyPrime's XML/HTTP gateway enabled: F1 (Help) → Settings → Connectivity → Client/Server configuration

    • TallyPrime acts as = Server (or Both)

    • Port = 9000

You do not need Node.js installed to run this — Claude Desktop bundles its own Node.js runtime for extensions. You only need Node.js if you're building from source (see Building from source).

Related MCP server: Tally MCP Server

Download

Get the latest release — no cloning or building required:

  • Latest release — download the .mcpb (one-click installer extension for Claude Desktop) from the Assets section

Supported platforms

Platform

Local

Remote

Claude Desktop

✔️

✔️

Claude web (claude.ai)

—

✔️

ChatGPT (Developer Mode)

—

✔️

Grok (SuperGrok / X Premium+)

—

✔️

OpenCode Desktop (includes free models)

✔️

—

(Remote/cloud deployment runs via the HTTP entry point, confirmed live against all three remote clients above — see docs/HTTP_DEPLOYMENT.md and docs/OAUTH_CONNECTORS.md. Local is still the simpler, recommended path if you're only using Claude Desktop. Claude Desktop and OpenCode Desktop both run the server locally on your PC — Claude Desktop through the one-click .mcpb extension, OpenCode Desktop through a short config file (see OpenCode Desktop below). OpenCode Desktop also offers free models, so the connector can be used without a paid AI subscription. claude.ai, ChatGPT, and Grok all connect only to remote HTTPS MCP endpoints — none of them can run a local stdio server on your PC the way Claude Desktop does, so remote deployment is the only path into any of them.)

Setup (Local)

Use this when Claude Desktop and TallyPrime are both on the same PC — Claude Desktop runs the MCP server internally for you.

One-click installation (via Extension)

  1. Claude Desktop → menu → File → Settings

  2. Extensions → Advanced settings

  3. Click Install Extension

  4. Browse to and select PNPC-MCP-Tally-Prime.mcpb (downloaded above)

  5. A dialog will appear asking "Do you want to install PNPC-MCP-Tally-Prime?" — click Install

  6. It'll prompt for the TallyPrime Gateway URL (leave as http://localhost:9000 unless your gateway runs elsewhere), Read-only mode (on by default — this connector can look but not change anything until you turn this off), and an optional Disabled tools list

  7. Verify by clicking the Tools (hammer) icon in a chat — PNPC-MCP-Tally-Prime should appear in the list

Read-only mode is on by default. A fresh install can read reports, ledgers, and vouchers immediately, but every write tool (create_*, update_*, delete_*) will be refused until you go to this connector's settings, turn Read-only mode off, and fully quit and reopen Claude Desktop — saving the settings screen alone isn't enough.

If step 4–5 don't produce that confirmation dialog (accepted silently, nothing visible happens), see Troubleshooting below — clone this repo, run npm install && npm run build (Building from source), then use Install Unpacked Extension on the same screen, pointed at the repo folder itself.

Other MCP clients (no .mcpb support)

Clients without a one-click extension format read a plain JSON config pointing at the built server directly. First clone this repo and run npm install && npm run build (Building from source) — dist/index.js only exists after that build step. Then add:

{
  "mcpServers": {
    "PNPC-MCP-Tally-Prime": {
      "command": "node",
      "args": ["D:\\Path\\To\\PNPC-MCP-Tally-Prime\\dist\\index.js"]
    }
  }
}

(Use double backslashes in the path, as shown.) Where this config file lives, and how to reload it, depends on the client — check its own docs.

OpenCode Desktop

OpenCode Desktop works with this connector, including with its free models. Build the server first as above, then add this to OpenCode's config file — C:\Users\<you>\.config\opencode\opencode.json on Windows — and restart OpenCode Desktop:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "tally": {
        "type": "local",
        "command": [
          "node",
          "D:\Path\To\PNPC-MCP-Tally-Prime\dist\index.js"
        ],
        "cwd": "D:\Path\To\PNPC-MCP-Tally-Prime",
        "environment": {
          "TALLY_URL": "http://localhost:9000"
        }
      }
    }
  }
}

If node isn't on your PATH, put the full path to node.exe in place of node. Writes are allowed by default in this setup — add "TALLY_READ_ONLY": "true" under environment to keep it read-only (see Environment variables).

Setup (Cloud)

For browser-based or mobile LLM clients that can't reach a TallyPrime instance running on your local PC (claude.ai, ChatGPT, Grok), the server can run as a small web service instead. The underlying credential is still a single bearer token you set yourself (TALLY_MCP_TOKEN) — treat it like a password — but this server also supports a real OAuth login flow on top of it, since that's what those clients' "Add custom connector" flows expect. This is more involved and puts your Tally gateway on the network — see docs/HTTP_DEPLOYMENT.md for running it, docs/CLOUDFLARE_TUNNEL.md for exposing it without opening a router port, and docs/OAUTH_CONNECTORS.md for the OAuth login flow itself.

Available tools (87 total)

You don't call these directly — just describe what you want in chat and Claude picks the right one. For a plain-English example prompt per tool, grouped by what they're for, see the Tool Playbook.

Dates use DD-MM-YYYY format, matching Tally's own convention. Other common spellings (2026-03-31, 31/03/2026, 31-Mar-2026) are accepted and converted; a date that isn't real is rejected with a clear message. Full machine-readable schemas: docs/TOOLS.md.

Read

Tool

Input

Output

get_ledgers

query?

All ledgers (including VAT TRN, VAT dealer type, state, country, GSTIN, PAN, GST registration type, GST type of supply, contact person), or (with query) a fuzzy-ranked shortlist of the closest-matching ledger names — top 20, best match first. GSTIN/PAN/GST registration type/GST type of supply are India's tax fields, trn/VAT dealer type are UAE's — a ledger normally has one country's set or the other

get_stock_items

—

All stock items (name, parent, closing balance, description, part number, costing method, GST type of supply, GST applicable (read-only), plus GSTDETAILS: {hsnCode, taxability, applicableFrom, isReverseChargeApplicable, gstIneligibleItc} or null) — the latest dated GST Details entry from Tally's own date-versioned list, set via create_stock_item's/update_stock_item's hsnCode/taxability/isReverseChargeApplicable/gstIneligibleItc fields

get_groups

—

Account groups (e.g. Sundry Debtors, Fixed Assets)

get_voucher_types

—

Configured voucher types (Payment, Sales, Journal, ...)

get_cost_centres

—

All cost centres

get_company_info

—

Currently open company's details

get_vouchers

from, to

Day Book — vouchers in that date range

get_ledger_vouchers

ledgerName, from, to

Voucher entries posted to one ledger

get_profit_and_loss

from, to

P&L statement

get_trial_balance

from, to

Trial Balance

get_balance_sheet

asOf

Balance Sheet as of a date

get_stock_summary

asOf

Stock Summary as of a date

get_bills_receivable

asOf

Outstanding Bills Receivable

get_bills_payable

asOf

Outstanding Bills Payable

get_cash_flow

from, to

Cash Flow statement — Tally's own canned report

get_funds_flow

from, to

Funds Flow statement — Tally's own canned report

get_ratio_analysis

from, to

Standard ratios (Current Ratio, Quick Ratio, Inventory/Debtors/Creditors Turnover, etc.) — Tally's own canned report

get_sales_register

from, to

Month-by-month Sales voucher summary — Tally's own canned report

get_purchase_register

from, to

Month-by-month Purchase voucher summary — Tally's own canned report

get_journal_register

from, to

Month-by-month Journal voucher summary — Tally's own canned report

get_payment_register

from, to

Month-by-month Payment voucher summary — Tally's own canned report

get_receipts_and_payments

from, to

Combined cash/bank Receipts and Payments view — the closest reachable equivalent to Cash Book/Bank Book, which aren't reachable as standalone reports

get_reorder_status

from, to

Stock items that actually have a reorder level configured, and how their quantity stands against it — filtered down from Tally's own report, which returns every item regardless (confirmed live on a 10,770-item company)

get_vat_liability_summary

from, to

UAE VAT liability for a period — Input/Output/RCM/other VAT ledgers found via Tally's own tax-type field or name pattern (whichever actually catches this company's real ledgers), plus a net total

get_gst_liability_summary

from, to

India GST liability for a period — same hybrid approach as VAT, for CGST/SGST/IGST input/output/payable/receivable/RCM ledgers

Write — vouchers

Every write tool below reads back what it just wrote and reports the actual values Tally now has (or, for a delete, confirms it's really gone) — not just whether Tally accepted the request. See docs/TOOLS.md for details.

All three of TallyPrime's voucher entry modes are supported: Item Invoice (the sales/purchase invoice and note tools, under any voucher type of yours), Accounting Invoice (create_voucher with mode: 'Accounting Invoice', filling the party's details and line VAT amounts the way Tally does on screen) and As Voucher. See Voucher entry modes.

Tool

Input

Output

create_voucher

voucherType, date, voucherNumber?, reference?, narration?, debitLedger/creditLedger/amount (simple 2-leg) or entries? (3+ legs), plus debitBillName?, debitBillType?, creditBillName?, creditBillType?, debitCostCentre?, creditCostCentre?, costCategory?, debitDescription?, creditDescription?

Creates a Payment/Receipt/Journal/Contra voucher — either a simple debit+credit pair, or any number of lines via entries (e.g. one payment split across three expense ledgers). Bill-wise allocation (New Ref / Agst Ref) requires maintainBillWise to have been set on the ledger. voucherNumber overrides Tally's auto-numbering; reference sets Tally's voucher-level <REFERENCE> field (e.g. a supplier's bill number) debitDescription/creditDescription (and description on each entries item) set Tally's built-in "Additional Descriptions for Ledgers" text — one array entry per line, shown under that ledger line. Confirmed live on a Journal: written through Tally's own UserDescription custom field and read back, regardless of voucher type. mode ('Accounting Invoice' with partyLedger, or 'As Voucher') picks Tally's voucher entry mode — see Voucher entry modes. buyerName prints a different name in the voucher's Buyer (Bill to) box without changing the ledger — see Buyer name on a voucher.

create_vouchers_batch

vouchers (array, same shape as create_voucher but narration required and unique per voucherType across the batch), chunkSize? (default 10, max 50)

Posts many vouchers in one call for bulk work (hundreds of adjustment journals, etc). Splits into chunks and bulk-verifies each chunk against Tally afterward by (voucherType, narration) — not voucherNumber, confirmed live to be silently reassigned by Tally's own auto-series even when set explicitly — even on a client-side error/timeout, since that doesn't prove Tally didn't still create some of them — reporting exactly which vouchers landed and which didn't, so a partial failure can be retried precisely rather than blindly resending everything Each voucher also accepts the same debitDescription/creditDescription and per-entry description as create_voucher.

update_voucher

voucherType, voucherNumber, date, reference?, narration?, debitLedger/creditLedger/amount or entries?, debitDescription?, creditDescription?

Replaces an existing voucher's entries/reference in place — matched by type + date + voucher number Pass debitDescription/creditDescription (or description per entries item) again to keep a line's additional descriptions — confirmed live that an update which omits them clears them.

delete_voucher

voucherType, voucherNumber, date

Permanently deletes a voucher — no trace left, distinct from cancelling (which keeps it visible, marked Cancelled)

create_stock_journal

date, narration?, sources (array of stockItem, qty, rate, unit, godown?, batchName?), destinations (same shape), additionalCosts? (array of ledgerName, amount, allocationType?), voucherType?, voucherNumber?

Creates a Stock Journal (or Manufacturing Journal, via voucherType) voucher moving inventory from one or more source items to one or more destination items — supports multiple raw materials in and multiple finished/by-products out in a single voucher, plus optional additional costs (labour, freight) folded into the produced items' valuation. Inventory-only, no ledger balance effect from additionalCosts itself — see the note below

update_stock_journal

Same fields as create_stock_journal, plus required voucherNumber

Replaces an existing Stock Journal/Manufacturing Journal's source/destination lines in place

create_material_in

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, godown?, batchName?), voucherNumber?

Creates a Material In voucher — stock received back from a job worker, tracked against their ledger without a real accounting posting. Verified live: stock quantity increases and the party ledger's balance stays unchanged

update_material_in

Same fields as create_material_in, plus required voucherNumber

Replaces an existing Material In voucher's item lines in place

create_material_out

Same shape as create_material_in

Creates a Material Out voucher — stock sent out to a job worker. Mirror of create_material_in, same verified-live behavior

update_material_out

Same fields as create_material_out, plus required voucherNumber

Replaces an existing Material Out voucher's item lines in place

create_rejections_in

date, narration?, items (array of stockItem, qty, rate, unit, godown?, batchName?), voucherNumber?

Creates a Rejections In voucher — goods rejected and returned to you. Inventory-only. Verified live: stock quantity increases correctly

update_rejections_in

Same fields as create_rejections_in, plus required voucherNumber

Replaces an existing Rejections In voucher's item lines in place

create_rejections_out

Same shape as create_rejections_in

Creates a Rejections Out voucher — goods you're rejecting outward. Mirror of create_rejections_in, same verified-live behavior

update_rejections_out

Same fields as create_rejections_out, plus required voucherNumber

Replaces an existing Rejections Out voucher's item lines in place

create_sales_invoice

voucherType?, date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, salesLedger, godown?, batchName?, discountPercent?, vatLedger?, vatRatePercent?, description?), vatLedger?, vatRatePercent?, billName?, billType?, voucherNumber?

Creates a real item-invoice Sales voucher (Item Invoice mode; pass voucherType for your own type such as Tax Invoice — the purchase and note tools take it too; each item's description lines print under that stock line) — stock item lines with quantity/rate/discount, each posted to its own Sales ledger, grouped into one VAT line per distinct rate. Distinct from create_voucher, which has no stock item support. voucherNumber: some Tally configurations stop auto-numbering item-invoice vouchers via the XML gateway — pass it explicitly if creation fails with a blank EXCEPTIONS:1. Note: using the same party ledger/stock item in both a Sales and a Purchase invoice can make it return Cannot be deleted! afterward — a Tally Company Data → Rewrite clears this (not a permanent lock)

update_sales_invoice

Same fields as create_sales_invoice, plus required voucherNumber

Replaces an existing Sales invoice's item lines/party/narration in place, instead of delete+recreate

create_purchase_invoice

Same shape as create_sales_invoice, with purchaseLedger per item instead of salesLedger

Creates a real item-invoice Purchase voucher — the buying-side mirror of create_sales_invoice. Same dual-role deletion caveat applies

update_purchase_invoice

Same fields as create_purchase_invoice, plus required voucherNumber

Replaces an existing Purchase invoice's item lines in place

create_credit_note

Same shape as create_sales_invoice, billType defaults to 'Agst Ref'

Creates a Sales-return Credit Note — sign convention mirrors Purchase's. Returning 5 units increases book quantity by 5

update_credit_note

Same fields as create_credit_note, plus required voucherNumber

Replaces an existing Credit Note's item lines in place

create_debit_note

Same shape as create_purchase_invoice, billType defaults to 'Agst Ref'

Creates a Purchase-return Debit Note — sign convention mirrors Sales's. Returning 3 units decreases book quantity by 3

update_debit_note

Same fields as create_debit_note, plus required voucherNumber

Replaces an existing Debit Note's item lines in place

create_delivery_note

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, salesLedger, godown?, batchName?, discountPercent?), voucherNumber?

Creates a Delivery Note — item-line dispatch of goods before/without a full Sales invoice. ⚠️ The voucher type must be active in the company first (a company-level toggle) — once active, get_vouchers/delete_voucher find it correctly; get_ledger_vouchers never shows it, by design. ⚠️ Can also silently stop auto-numbering — pass voucherNumber explicitly if a create call fails with a blank EXCEPTIONS:1

update_delivery_note

Same fields as create_delivery_note, plus required voucherNumber

Replaces an existing Delivery Note's item lines in place. Same voucher-type-active and auto-numbering caveats

create_receipt_note

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, purchaseLedger, godown?, batchName?, discountPercent?), voucherNumber?

Creates a Receipt Note — buying-side mirror of create_delivery_note, same caveats

update_receipt_note

Same fields as create_receipt_note, plus required voucherNumber

Replaces an existing Receipt Note's item lines in place

create_sales_order

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, salesLedger, dueDate, godown?, batchName?, discountPercent?), orderNumber, voucherNumber?

Creates a Sales Order — a future commitment to sell, no stock/ledger movement yet. orderNumber and each item's dueDate are required (Tally rejects an Order-class voucher without them). Same voucher-type-active caveat as create_delivery_note. Tally silently reassigns its own voucher number for Order-class vouchers regardless of what's passed — check the real number via get_vouchers after creating one

update_sales_order

Same fields as create_sales_order, plus required voucherNumber (the existing voucher's number to match by)

Replaces an existing Sales Order's item lines, party, and order number in place

create_purchase_order

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, purchaseLedger, dueDate, godown?, batchName?, discountPercent?), orderNumber, voucherNumber?

Creates a Purchase Order — buying-side mirror of create_sales_order, same caveats

update_purchase_order

Same fields as create_purchase_order, plus required voucherNumber

Replaces an existing Purchase Order's item lines, party, and order number in place

create_sales_quotation

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, salesLedger, dueDate, godown?, batchName?, discountPercent?), orderNumber, voucherNumber?

Creates a Sales Quotation — a pre-order price quote, one step before create_sales_order. Tally treats it as an Order-class voucher, so orderNumber and each item's dueDate are required, same as create_sales_order. Same voucher-type-active caveat

update_sales_quotation

Same fields as create_sales_quotation, plus required voucherNumber

Replaces an existing Sales Quotation's item lines, party, and order number in place

create_job_work_in_order

date, narration?, partyLedger, items (array of stockItem, qty, rate, unit, dueDate, godown?, batchName?, components — array of stockItem, qty, rate, unit, godown?, batchName?), orderNumber, voucherNumber?

Creates a Job Work In Order — this company is the job worker, booking an order to process raw materials a customer will supply into a finished item delivered back. Each item's components list is the raw material the customer is expected to supply. orderNumber and each item's dueDate are required

update_job_work_in_order

Same fields as create_job_work_in_order, plus required voucherNumber

Replaces an existing Job Work In Order's item lines (and their component lists), party, and order number in place

create_job_work_out_order

Same fields as create_job_work_in_order

Creates a Job Work Out Order — mirror image: this company is the principal, sending raw materials (each item's components) out to a job worker and expecting a finished item back

update_job_work_out_order

Same fields as create_job_work_out_order, plus required voucherNumber

Replaces an existing Job Work Out Order's item lines (and their component lists), party, and order number in place

create_physical_stock

date, narration?, items (array of stockItem, actualQty, unit, godown?, batchName?), voucherNumber?

Creates a Physical Stock voucher — updates the item's book quantity to match a physical count (that's the point of the voucher). Counting 95 of an item with 100 in stock closes it at 95. Doesn't post any monetary write-off for the shortage/excess value itself — see Troubleshooting if you're on an older build than this

update_physical_stock

Same fields as create_physical_stock, plus required voucherNumber

Replaces an existing Physical Stock voucher's counted lines in place

ℹ️ additionalCosts on create_stock_journal/update_stock_journal: this does not post a real transaction against the named ledger — its balance stays unchanged. It's a costing/valuation instruction only, telling Tally's stock valuation reports to fold that amount into the produced item's effective cost. The actual expense (e.g. paying labour) still needs recording separately, e.g. via create_voucher.

ℹ️ Voucher type collision: update_voucher, update_sales_invoice, update_purchase_invoice, update_credit_note, update_debit_note, update_stock_journal, update_physical_stock, and delete_voucher all check for date+number ambiguity across voucher types before touching anything, and refuse rather than risk altering/deleting the wrong one. If you hit that refusal, see Troubleshooting for why it happens and how to resolve it in Tally.

Write — masters

Tool

Input

Output

create_ledger

name, oldName?, parent, openingBalance?, maintainBillWise?, trn?, email?, website?, phone?, mobile?, contactPerson?, gstin?, pan?, gstRegistrationType?, gstTypeOfSupply?, vatDealerType?, billCreditPeriod?, creditLimit?, address?, state?, country?, pincode?, mailingName?, addressApplicableFrom?, extraFields?

Creates a ledger under the given group — or, if oldName is passed, alters/renames that existing ledger instead. gstin/pan/gstRegistrationType/gstTypeOfSupply are India's tax fields, distinct from trn/vatDealerType (UAE). extraFields is an escape hatch for any other native Tally ledger field by exact tag name

create_group

name, oldName?, parent

Creates an account group nested under a parent — or renames/reparents an existing one if oldName is passed

create_stock_group

name, parent

Creates a Stock Group (the category create_stock_item's group field references) — distinct from create_group's account groups

create_stock_item

name, group, unit, openingBalance?, openingRate?, description?, partNumber?, costingMethod?, hsnCode?, taxability?, gstDetailsApplicableFrom?, gstTypeOfSupply?, isReverseChargeApplicable?, gstIneligibleItc?, rateOfVat?, ignoreNegativeStock?, extraFields?

Creates a stock item. hsnCode/taxability/isReverseChargeApplicable/gstIneligibleItc write to Tally's date-versioned GST Details list; gstTypeOfSupply is a separate flat field. extraFields is an escape hatch for any other native field by exact tag name

update_stock_item

name, group?, unit?, description?, partNumber?, costingMethod?, hsnCode?, taxability?, gstDetailsApplicableFrom?, gstTypeOfSupply?, isReverseChargeApplicable?, gstIneligibleItc?, rateOfVat?, ignoreNegativeStock?, extraFields?

Updates any subset of an existing stock item's fields — same coverage as create_stock_item, all optional except name

delete_stock_item

name

Deletes a stock item (fails if it has transactions posted)

create_unit

symbol, formalName?, decimalPlaces? or baseUnit+additionalUnit+conversion for a compound unit

Creates a Unit of Measure — simple (e.g. 'Kg') by default, or compound (e.g. 'Box of 12 Nos') when baseUnit is passed. Both simple units must already exist before creating the compound unit that references them — required before using a unit that doesn't exist yet

set_bill_of_materials

stockItem, componentListName?, basicQty?, unit?, components (array of stockItem, qty, unit, natureOfItem?, godown?)

Attaches a recipe to an existing finished-goods stock item. Pure convenience layer over create_stock_journal — doesn't move stock or post anything itself. Verified live: attaches without error and causes no stock movement on its own. natureOfItem's four values (Component/Co-Product/By-Product/Scrap) were each checked against Tally's own BoM screen — all map to the matching "Type of Item" label

create_godown

name, parent?

Creates a Godown/Location, optionally nested under a parent godown — pass the parent's plain name, not a dotted path

create_cost_category

name, allocateToRevenue?, allocateToNonRevenue?

Creates a Cost Category (grouping of cost centres)

create_cost_centre

name, category?, parent?

Creates a Cost Centre for tagging voucher entries (see create_voucher's cost centre fields)

create_voucher_type

name, oldName?, parent, numberingMethod?, abbreviation?, preventDuplicates?, useAsManufacturingJournal?, extraFields?

Creates a custom Voucher Type derived from a base type (e.g. 'Bank Payment' from 'Payment', or a proper 'Manufacturing Journal' type from 'Stock Journal' via useAsManufacturingJournal) — or renames/reconfigures an existing one if oldName is passed. Pass the resulting name as voucherType to create_stock_journal/update_stock_journal to post against it

delete_master

collection, names

Deletes one or more masters of any type — LEDGER, GROUP, STOCKGROUP, STOCKITEM, VOUCHERTYPE, UNIT, GODOWN, COSTCATEGORY, COSTCENTRE, etc. — by exact name

⚠️ create_ledger / update_voucher / delete_stock_item / delete_master / delete_voucher modify or remove existing data. Keep a Tally backup before letting the model use these on data you care about — delete_master and delete_voucher in particular have no undo.

Context switching

Tool

Input

Output

set_company

companyName

Switches TallyPrime's active company — affects every subsequent call until changed again

set_period

from, to

Switches TallyPrime's active reporting period — affects every subsequent report until changed again

These change global, persistent state in Tally itself (the same as switching company/period from Tally's own UI) — not a per-call parameter. If you're running multiple tools/sessions against the same Tally instance, a set_company/set_period call from one affects what every other caller sees next.

set_company can only switch to a company that is already open in Tally (multiple companies can be open at once) — naming one that isn't loaded returns an error rather than silently doing nothing. Open it in Tally first (File → Select Company), then switch to it via this tool.

SQL cache

Tool

Input

Output

sync_to_sql

—

Pulls ledgers, groups, and stock items into a session-only, in-memory SQL cache

sync_vouchers_to_sql

from, to

Pulls voucher headers (date, type, number, party, amount, narration — not line items) for one date range into the same cache. Call it once per chunk (e.g. per quarter) to build up full multi-year history within a session — each call only replaces vouchers in its own date range, so calling it for 2024 then 2025 gives you both

sync_voucher_items_to_sql

from, to

Pulls voucher inventory line items (stock item, qty, rate, amount, godown, batch — one row per item per batch allocation) for one date range into the same cache. This is the raw data for movement analysis, godown-wise stock, and batch detail — there's no separate report tool for those, it's a query_sql SELECT over this table. qty/amount are unsigned as Tally stores them; use is_deemed_positive with voucher_type to work out inward vs outward

sync_voucher_ledger_entries_to_sql

from, to

Pulls voucher ledger lines (which ledger, amount, cost centre, bill allocation — one row per ledger line per bill allocation) for one date range into the same cache. This is what fills the gap voucher totals alone can't: splitting a combined ledger's balance apart by voucher (e.g. VAT into Output vs Input), or reconciling a party ledger's movements voucher by voucher. amount is signed — negative for a debit line, positive for a credit line — so it sums directly description carries each line's "Additional Descriptions for Ledgers" text (several lines joined with `

query_sql

sql (SELECT only)

Runs a read-only query against that cache — tables: ledgers(name, parent, closing_balance, trn, state, country), groups(name, parent), stock_items(name, parent, closing_balance), vouchers(guid, date, voucher_type, voucher_number, party_ledger, amount, narration), voucher_items(voucher_guid, date, voucher_type, voucher_number, stock_item, qty, rate, amount, is_deemed_positive, godown, batch), voucher_ledger_entries(voucher_guid, date, voucher_type, voucher_number, ledger, amount, is_deemed_positive, cost_centre, bill_name, bill_type)

get_profit_and_loss, get_stock_summary, get_balance_sheet, get_trial_balance, get_vat_liability_summary, and get_gst_liability_summary also cache themselves into this same store automatically — profit_and_loss(ledger_name, group_name, closing_balance, period_from, period_to), stock_summary(name, parent, opening_qty, closing_qty, opening_value, closing_value, as_of_date), balance_sheet(group_name, amount, as_of_date), trial_balance(name, debit_amount, credit_amount, period_from, period_to), vat_summary(ledger_name, category, match_method, closing_balance, period_from, period_to), and gst_summary (same shape as vat_summary) — no separate sync call needed. Each holds only the most recent call's result, replaced whenever you call that report tool again.

The cache is in-memory and session-scoped only — it's gone as soon as the server process exits, and there's no persistence to disk. This is deliberate: since one Tally connection can be pointed at many different client companies over time (set_company), nothing here tracks which company a cached row came from. If you switch companies, re-sync (or, for the six automatic tables, re-call the report tool) before querying — don't run query_sql against a cache that spans a company switch, since the rows won't be distinguishable by company.

Audit & permissions

Tool

Input

Output

get_audit_log

limit? (default 50), toolFilter?, writesOnly?, fromDate?, toDate?, company?, format? ('json' default or 'summary')

Reads this connector's audit log — every tool call made through it, read or write, with timestamp, arguments, outcome (success/error/denied), and a best-effort company tag. company filters to one Tally company; writesOnly + a date range + format: 'summary' gives a compact reviewer-facing table instead of raw JSON — "what changed between these two dates"

get_health_check

—

Reports whether Tally's gateway is actually reachable (not just "something answered" — this catches cases like Tally's own license server responding on a misconfigured port with an HTML page that looks like success), which company is open, the active TALLY_URL, current read-only/disabled-tools state, and the audit log's file path. Always allowed, even in read-only mode

preview_write

toolName, args

Builds the exact XML any create_*/update_*/delete_*/set_bill_of_materials tool would send — without sending it. Returns a previewId, a plain-English description, and the raw XML, so a batch of changes can be reviewed before anything posts. Runs the same pre-checks the real tool would (e.g. the voucher-collision check on update_*/delete_voucher) at preview time. Never sends a write of its own, so it still works in read-only mode — unlike every other write tool

confirm_write

previewId

Posts a previewed write to Tally, unchanged, using its previewId. The only tool that actually writes when a batch went through preview_write first. Single-use — a previewId already confirmed, or expired (15 minutes), fails rather than reposting

Every tool call — read or write — is appended to a local JSONL log file, so there's always a plain-text record of exactly what an agent did. All companies share this one log file; each entry carries a best-effort company tag (updated whenever get_company_info, get_health_check, or set_company succeeds — not a live lookup on every call). Once per server start, entries older than 90 days are permanently deleted by rewriting the file — this is a hard delete, not an archive. A cheap size check on every write also triggers the same deletion if the file grows past 50MB, so a long-lived process doesn't have to wait for a restart for this to kick in.

Safe by default: a fresh .mcpb install starts in read-only mode — this connector can look at your books but cannot change anything until you deliberately turn writes on. If you installed via the .mcpb, Claude Desktop's Extensions settings screen for this connector shows a "Read-only mode" toggle (on by default) and an optional "Disabled tools" field directly — no config editing required either way.

⚠️ Settings changes take effect only after you fully quit and reopen Claude Desktop — saving the settings screen alone does not apply the new value. This connector runs as a long-lived child process that only reads its configuration once, at startup; Claude Desktop doesn't push new values into an already-running extension. Toggling "Read-only mode" on and expecting it to take effect immediately will fail silently (the next write still goes through) until you restart the app.

Running this outside Claude Desktop (HTTP mode, manual config)? Use the environment variables in the table below instead — see TALLY_PERMISSION_MODE and TALLY_DISABLED_TOOLS.

Environment variables

Variable

Default

Purpose

TALLY_URL

http://localhost:9000

Tally's HTTP gateway address. Installed via .mcpb? This is the "Tally Gateway URL" field in Claude Desktop's Extensions settings — no manifest editing needed

TALLY_READ_ONLY

true for .mcpb installs via Claude Desktop's Extensions UI (safe-by-default); false if unset entirely (e.g. bare HTTP/manual deployments)

Set to true to block every write tool before it reaches Tally. This is the "Read-only mode" toggle in Claude Desktop's Extensions settings for .mcpb installs, on by default — you have to deliberately turn it off before this connector can write anything

TALLY_PERMISSION_MODE

read_write

String-form equivalent of TALLY_READ_ONLY, for HTTP/manual deployments — set to read_only for the same block. Either variable blocks writes; you don't need to set both

TALLY_DISABLED_TOOLS

(unset)

Comma-separated exact tool names to block regardless of mode, e.g. delete_voucher,delete_master to allow writes but forbid deletion. This is the "Disabled tools (advanced)" field in Claude Desktop's Extensions settings for .mcpb installs

TALLY_AUDIT_LOG_PATH

audit.log.jsonl next to the installed package

Where the append-only audit log is written. Point multiple connector instances at one shared path if you want a single combined log

PORT

3939

Port for npm run start:http (remote mode only)

TALLY_MCP_TOKEN

(unset)

Bearer token required on the HTTP server's /mcp endpoint if set (remote mode only)

PUBLIC_URL

http://localhost:<PORT>

This server's externally-reachable HTTPS address (remote mode only) — required for the OAuth login flow in docs/OAUTH_CONNECTORS.md to work

Running this alongside another Tally MCP connector? Each connector needs its own gateway port open in TallyPrime (F1 → Settings → Connectivity) — two connectors can't share port 9000. If you already have one connector using 9000, open a second gateway on e.g. 9001 for this one, edit mcp_config.env.TALLY_URL in manifest.json to match before packing, or set TALLY_URL directly wherever your MCP client lets you configure this server's environment.

Building from source

Only needed if you're modifying the code rather than using the downloaded .mcpb.

npm install --omit=dev   # production deps only
npm run build             # compiles src/ -> dist/

Node version note: if your system node --version reports something ancient, check where node (Windows) / which -a node (macOS/Linux) for a newer install elsewhere on PATH and use it explicitly for the commands above — Claude Desktop's own bundled Node is what runs the installed extension regardless of your system PATH, so this only affects building.

Packing a .mcpb yourself

npm install -g @anthropic-ai/mcpb   # one-time
mcpb validate manifest.json
mcpb pack . PNPC-MCP-Tally-Prime.mcpb

Troubleshooting

The most common issues at a glance:

  • "Could not reach TallyPrime" — Tally isn't running, or the gateway isn't enabled on port 9000.

  • "Tally returned an empty response" — Tally is running but no company is open.

  • A write call returns CREATED:0/EXCEPTIONS:1 with no error text — most often a missing godown on a company with location tracking enabled.

  • create_ledger / create_voucher fails — parent group / ledger names must match Tally exactly (case- and whitespace-sensitive).

For the full FAQ and every other real-world gotcha (shared-server port conflicts, silent write failures, deletion quirks, voucher-numbering surprises, the audit log, extension install issues, and more), see docs/TROUBLESHOOTING.md.

Project structure

src/
  tally.ts        Tally HTTP client: sends XML, handles connection/timeout errors
  clean.ts        Normalizes Tally's raw XML->JSON into predictable JSON
  templates.ts    Renders the Nunjucks XML templates in templates/
  db.ts           PGLite SQL cache: sync_to_sql / sync_vouchers_to_sql / query_sql
  audit.ts        Append-only JSONL audit log (every tool call, read or write)
  permissions.ts  Write-scoping via TALLY_PERMISSION_MODE / TALLY_DISABLED_TOOLS
  tools.ts        MCP tool definitions + XML request builders
  server.ts       Shared MCP Server construction (used by both entry points) — wires audit logging + permission checks around every call
  index.ts        stdio entry point (local Claude Desktop)
  http-server.ts  HTTP entry point (remote clients)
templates/
  *.xml.njk       Nunjucks templates for each Tally XML request shape
manifest.json     Claude Desktop Extension manifest (manifest_version 0.3)

Docs

Roadmap / not yet supported

  • GST/VAT-specific statutory reports (e.g. GSTR-1, GSTR-3B, VAT return format)

  • One-click packaging (a .mcpb equivalent) for clients other than Claude Desktop — claude.ai, ChatGPT, and Grok are already reachable via the remote/OAuth setup above, but only through manual connector configuration; there's no installer for them the way .mcpb is for Claude Desktop

License

ISC — see LICENSE. Early development was inspired by ideas from vaijaaaaa/Tally-MCP-Server and dhananjay1405/tally-mcp-server.


Available Tools

87 tools
confirm_writeA
Destructive

Post a previously-built preview to Tally — this is the only tool that actually writes, when the batch went through preview_write first. Takes the previewId from a prior preview_write call and sends that exact XML, unchanged, to Tally. A previewId can only be confirmed once — reusing an already-confirmed or expired one fails rather than silently reposting or reusing stale data.

Inputs: previewId (required).

create_cost_categoryA

Create a new Cost Category in TallyPrime (a grouping of cost centres, e.g. 'Branch', 'Project'). Required before creating a cost centre under a category that doesn't exist yet.

Inputs: name (required), allocateToRevenue, allocateToNonRevenue.

create_cost_centreA

Create a new Cost Centre in TallyPrime (e.g. a department, branch, or project used to tag voucher entries for cost tracking — see create_voucher's costCentre fields).

Inputs: name (required), parent, category.

create_credit_noteA

Create an item-invoice Credit Note in TallyPrime — a Sales return, reversing stock and revenue for returned items. Same shape as create_sales_invoice but with the debit/credit convention flipped, matching Purchase's sign pattern (a Credit Note is structurally a reverse Sales entry). Confirmed live on a real company: returning 5 units correctly increased the item's book quantity by exactly 5. Same godown and dual-role deletion caveats as create_sales_invoice apply.

Inputs: date (required), items (required), partyLedger (required), billName, +14 more.

create_debit_noteA

Create an item-invoice Debit Note in TallyPrime — a Purchase return, reversing stock and expense for returned items. Same shape as create_purchase_invoice but with the debit/credit convention flipped, matching Sales's sign pattern (a Debit Note is structurally a reverse Purchase entry). Confirmed live on a real company: returning 3 units correctly decreased the item's book quantity by exactly 3. Same godown and dual-role deletion caveats as create_purchase_invoice apply.

Inputs: date (required), items (required), partyLedger (required), billName, +14 more.

create_delivery_noteA

Create a Delivery Note in TallyPrime — an item-line inventory voucher recording goods dispatched to a customer before or without a full Sales invoice (e.g. against a Sales Order). Same item-line shape as create_sales_invoice (stock item, quantity, rate, Sales ledger per line) but ISINVOICE is set to No and there's no VAT/tax line — a Delivery Note doesn't invoice the customer, it just moves stock out and records the reference. Distinct from create_rejections_out, which has no party/ledger amount at all. IMPORTANT (confirmed live): the Delivery Note voucher type must be active in the company first — check in Tally's UI (voucher types can be turned off per company) — otherwise the API still reports CREATED:1 even though the voucher won't show up in any report or be findable by get_vouchers/delete_voucher until the type is turned on. Once active, get_vouchers and delete_voucher find it correctly. get_ledger_vouchers will still never show it, by design, not a gap — that tool deliberately excludes inventory-classified vouchers (see its own description). ALSO confirmed live: Delivery Note can silently stop auto-numbering via the gateway, same failure mode as item-invoice types (Sales/Purchase/Credit Note/Debit Note) — symptom is a blank EXCEPTIONS:1 with no useful error text (the real cause, 'Voucher No. is missing', only shows in Tally's own Import Data UI). If creation fails this way, pass voucherNumber explicitly (check get_vouchers for the next free number of this voucher type).

Inputs: date (required), items (required), partyLedger (required), buyerTrn, +8 more.

create_godownA

Create a new Godown/Location in TallyPrime, optionally nested under a parent godown (e.g. a sub-location under a main warehouse). Required before referencing a godown that doesn't exist yet on an invoice/voucher line — those fail with 'Godown does not exist!' otherwise. Pass the parent's plain name, not a dotted path (confirmed live: 'MAIN LOCATION.DUBAI' is invalid, 'MAIN LOCATION' as parent + 'DUBAI' as name is correct).

Inputs: name (required), parent.

create_groupA

Create a new account group in TallyPrime, nested under a parent group, or rename/reparent an existing one by passing oldName.

Inputs: name (required), parent (required), oldName.

create_job_work_in_orderA

Create a Job Work In Order in TallyPrime — used when this company is the job worker, booking an order to process raw materials a customer will supply, into a finished item the company will deliver back. Each item line is the finished item expected to be delivered eventually, plus a nested list of components — the raw materials the customer is expected to supply for that item. Reverse-engineered from a real manually-created Job Work In Order's own export (same technique used for Sales Order): the component list lives nested two levels deep, inside each item's own order allocation (VOUCHERCOMPONENTLIST.LIST inside BATCHALLOCATIONS.LIST inside ALLINVENTORYENTRIES.LIST), each component carrying its own nested BATCHALLOCATIONS.LIST with a PARENTITEM back-reference to the item it belongs to. Confirmed live: this structure creates cleanly (no VAT/tax lines, no per-item ledger allocation — just the one balancing party ledger entry for the total). Same voucher-type-active prerequisite as other Order-class vouchers, and orderNumber + each item's dueDate are REQUIRED (same reasoning as create_sales_order). Distinct from create_job_work_out_order, which is for the opposite direction (sending materials out to a job worker).

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

create_job_work_out_orderA

Create a Job Work Out Order in TallyPrime — used when this company is the principal, sending raw materials out to a job worker (subcontractor) and expecting a finished item back. Mirror image of create_job_work_in_order: each item line is the finished item expected to be received from the job worker, plus a nested list of components — the raw materials this company will send out for that item. Same nested XML structure as create_job_work_in_order, with the accounting direction flipped (matching the existing Sales-side vs Purchase-side sign convention already used by create_sales_order vs create_purchase_order in this connector) since this voucher represents an inward expected receipt rather than an outward delivery. Confirmed live: creates cleanly with no exceptions. Same voucher-type-active prerequisite and required orderNumber/dueDate as create_job_work_in_order.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

create_ledgerB

Create a new ledger (account) in TallyPrime, or rename/update an existing one by passing oldName

Inputs: name (required), parent (required), pan, trn, +21 more.

create_material_inA

Create a Material In voucher in TallyPrime — records stock received back from a job worker (or any party holding your material for processing), tracked against that party's ledger without a real accounting posting (this is Tally's job-work memorandum tracking, not a purchase). Uses Tally's native 'Multi Consumption Voucher View' shape. EXTRAPOLATED from a genuine Tally-exported XML template for this exact voucher type, not verified against a real manually-created example in this project — verify carefully after use, especially on a company with godown/batch tracking enabled (pass godown on every item). If creation fails with LINEERROR 'Voucher date is missing' even though the date field is set correctly, the date is outside Tally's active period (Alt+F2) — call set_period to cover it and retry (confirmed live).

Inputs: date (required), items (required), partyLedger (required), narration, +1 more.

create_material_outA

Create a Material Out voucher in TallyPrime — records stock sent out to a job worker for processing, tracked against that party's ledger without a real accounting posting (job-work memorandum tracking, not a sale). Mirror of create_material_in. Same EXTRAPOLATED caveat and godown requirement apply. If creation fails with LINEERROR 'Voucher date is missing' even though the date field is set correctly, the date is outside Tally's active period (Alt+F2) — call set_period to cover it and retry (confirmed live).

Inputs: date (required), items (required), partyLedger (required), narration, +1 more.

create_physical_stockA

Create a Physical Stock voucher in TallyPrime — records a physical count and updates the stock item's book quantity to match it (that's the point of the voucher). Confirmed live against a real Tally-exported XML template (uses DIFFACTUALQTY=Yes at voucher level, not a per-line flag) after an earlier version of this tool was found to corrupt the closing balance to a nonsensical negative number — fixed and re-verified: counting 95 of an item that had 100 correctly closed the item at 95. It does not post any monetary/ledger write-off for the resulting shortage or excess value — do that separately with create_voucher if needed.

Inputs: date (required), items (required), narration, voucherNumber.

create_purchase_invoiceA

Create an item-invoice Purchase voucher in TallyPrime — mirror of create_sales_invoice for the buying side. A real invoice with stock item lines (quantity, rate), each posted to its own Purchase ledger, plus one optional VAT/tax line on the total. WARNING (confirmed live, same as create_sales_invoice): if the same party ledger or stock item is used in BOTH a Sales and a Purchase item-invoice, it can become undeletable via the API afterward — using it in only one of the two is fine and stays deletable. If it does happen, running Company Data → Rewrite in Tally itself clears it (confirmed live) — this is not a permanent lock.

Inputs: date (required), items (required), partyLedger (required), billName, +14 more.

create_purchase_orderA

Create a Purchase Order in TallyPrime — a future commitment to buy, before any goods move or invoicing happens. Same item-line shape as create_purchase_invoice/create_receipt_note but VCHTYPE is 'Purchase Order' and Tally classifies it as an Order-class voucher. Follow up with create_receipt_note (goods in) and/or create_purchase_invoice (billing) against the same party once goods actually arrive. Same voucher-type-active prerequisite as create_delivery_note (confirmed live). orderNumber and each item's dueDate are REQUIRED — same reasoning as create_sales_order: reverse-engineered from a real Sales Order export, confirmed the same live errors and Auto Retain numbering behavior apply here too.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

create_receipt_noteA

Create a Receipt Note in TallyPrime — an item-line inventory voucher recording goods received from a supplier before or without a full Purchase invoice (e.g. against a Purchase Order). Same item-line shape as create_purchase_invoice (stock item, quantity, rate, Purchase ledger per line) but ISINVOICE is set to No and there's no VAT/tax line — mirror of create_delivery_note on the buying side. Same caveat as create_delivery_note: the voucher type must be active in the company first, or it won't show up in get_vouchers/delete_voucher until it is. get_ledger_vouchers will still never show it, by design. If creation fails with LINEERROR 'Voucher date is missing' even though the date field is set correctly, the date is outside Tally's active period (Alt+F2) — call set_period to cover it and retry (confirmed live).

Inputs: date (required), items (required), partyLedger (required), buyerTrn, +9 more.

create_rejections_inA

Create a Rejections In voucher in TallyPrime — records goods rejected and returned to you (e.g. by a customer or a job worker returning defective components). Inventory movement only, same shape as a Sales/Purchase item line but with no party ledger. EXTRAPOLATED: no confirmed real-world XML example was available for this exact voucher type — built by analogy to Tally's other inventory-only voucher shapes (Physical Stock). Verify carefully after use — godown is required on every item unless the company has exactly one godown, in which case it auto-fills. If creation fails with LINEERROR 'Voucher date is missing' even though the date field is set correctly, the date is outside Tally's active period (Alt+F2) — call set_period to cover it and retry (confirmed live).

Inputs: date (required), items (required), narration, voucherNumber.

create_rejections_outA

Create a Rejections Out voucher in TallyPrime — records goods you're rejecting and returning outward (e.g. back to a supplier, or components you're sending back to a job worker as defective). Mirror of create_rejections_in. Same EXTRAPOLATED caveat and godown requirement apply. If creation fails with LINEERROR 'Voucher date is missing' even though the date field is set correctly, the date is outside Tally's active period (Alt+F2) — call set_period to cover it and retry (confirmed live).

Inputs: date (required), items (required), narration, voucherNumber.

create_sales_invoiceA

Create an item-invoice Sales voucher in TallyPrime — a real invoice with stock item lines (quantity, rate), each posted to its own Sales ledger, plus one optional VAT/tax line on the total. Distinct from create_voucher, which only supports plain ledger-to-ledger entries with no stock items. WARNING (confirmed live): if the same party ledger or stock item is used in BOTH a Sales and a Purchase item-invoice, it can become undeletable via the API afterward (returns 'Cannot be deleted!' even with zero balance) — using it in only one of the two is fine and stays deletable. If it does happen, running Company Data → Rewrite in Tally itself clears it (confirmed live) — this is not a permanent lock.

Inputs: date (required), items (required), partyLedger (required), billName, +14 more.

create_sales_orderA

Create a Sales Order in TallyPrime — a future commitment to sell, before any goods move or invoicing happens. Same item-line shape as create_sales_invoice/create_delivery_note but VCHTYPE is 'Sales Order' and Tally classifies it as an Order-class voucher, structurally different from Delivery Note's inventory-class. Follow up with create_delivery_note (dispatch) and/or create_sales_invoice (billing) against the same party once goods actually move. Same voucher-type-active prerequisite as create_delivery_note (confirmed live) — check it's on in the company before relying on this. orderNumber and each item's dueDate are REQUIRED (unlike other item-invoice tools, where the equivalent fields are optional): confirmed live that Tally rejects an Order-class voucher with 'Order No. is missing in Item Allocations' and separately 'Due Date of Order is missing in Item Allocations' without them. Reverse-engineered from a real manually-created Sales Order's own export: the UI's 'Order no.' field is backed by the voucher-level REFERENCE tag (independent of the voucher number — the real example had voucherNumber '1' and Order no. '12345' as genuinely different values), while the per-item Order No. and Due Date both live nested inside each item's BATCHALLOCATIONS.LIST, not as direct ALLINVENTORYENTRIES fields as their names might suggest. Also confirmed live: Tally silently reassigns its own voucher number for Order-class vouchers regardless of an explicit voucherNumber passed in (its 'Auto Retain' numbering style for this voucher type) — check the actual assigned number via get_vouchers after creating one, don't assume the value you passed was used.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

create_sales_quotationA

Create a Sales Quotation in TallyPrime — a pre-order price quote to a prospective customer, one step before create_sales_order. Same item-line shape as create_sales_order, including the same orderNumber (REFERENCE) and per-item dueDate requirements — confirmed live that Tally classifies Sales Quotation as an Order-class voucher (PARENT 'Sales Order' in get_voucher_types) and rejects it the same way without them. Same voucher-type-active prerequisite as create_delivery_note. Follow up with create_sales_order once the customer accepts.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

create_stock_groupA

Create a new Stock Group in TallyPrime, nested under a parent stock group. Distinct from create_group (account groups like Sundry Debtors) — this is the category stock items are filed under (create_stock_item's 'group' field). Required before creating a stock item under a brand-new category that doesn't exist yet.

Inputs: name (required), parent (required).

create_stock_itemC

Create a new stock item in TallyPrime

Inputs: name (required), unit (required), group (required), hsnCode, +13 more.

create_stock_journalA

Create a Stock Journal voucher in TallyPrime, moving inventory from one or more source stock items to one or more destination stock items (transfer, manufacturing-style conversion with multiple raw materials consumed and/or multiple finished/by-products produced, etc). Inventory-only — no ledger entries. Every source/destination line's godown is auto-filled only when this company has exactly one godown; if it has more than one (e.g. Dubai/Sharjah/Ajman), godown is required on each line and the call fails naming the available godowns rather than guessing (previously an omitted godown was silently dropped — blank EXCEPTIONS:1, no error text — this is now caught explicitly instead of guessing wrong).

Inputs: date (required), sources (required), destinations (required), narration, +3 more.

create_unitA

Create a new Unit of Measure in TallyPrime — a simple unit (e.g. 'Kg', 'Box', 'Ltr') by default, or a compound unit (e.g. 'Box of 12 Nos') by passing baseUnit/additionalUnit/conversion. Required before creating or invoicing a stock item in a unit that doesn't exist yet — stock item/invoice tools fail with 'Unit does not exist!' otherwise. For a compound unit, both baseUnit and additionalUnit must already exist as simple units first (confirmed live pattern: create both simple units, then the compound unit referencing them). A simple unit's symbol (and baseUnit/additionalUnit, since those reference existing simple units' symbols) cannot contain whitespace — confirmed live: Tally rejects that with 'Master name contains invalid characters', checked client-side before this ever reaches Tally. A compound unit's own display name (e.g. 'Box of 12 Nos') can still contain spaces.

Inputs: symbol (required), baseUnit, conversion, formalName, +2 more.

create_voucherA

Create a new voucher (e.g. Payment, Receipt, Sales, Purchase, Journal) in TallyPrime. Either pass debitLedger/creditLedger/amount for a simple 2-leg voucher, or pass 'entries' for a voucher with 3+ lines (e.g. one payment split across several expense ledgers). Normally omit voucherNumber and let Tally auto-number — but if Tally's numbering series doesn't pick up correctly (confirmed live: a company on a 'PNPC/2026/...' series silently restarted from '1' instead of continuing it), pass voucherNumber explicitly to force the value you want; check get_vouchers for the correct next number first.

Inputs: date (required), voucherType (required), mode, amount, +23 more.

create_vouchers_batchA

Post many vouchers (Journal, Payment, Receipt, etc. — same shape as create_voucher, one entry per voucher) in one call, for bulk work where posting one at a time is impractical (e.g. hundreds of balance-confirmation adjustment journals). Internally splits into chunks (default 10, max 50 — Tally's own gateway has a 10-second timeout per request, and a bigger single import risks silently exceeding it) and, after each chunk posts, runs ONE bulk query to confirm exactly which vouchers in that chunk actually exist in Tally now — this always runs, even if the post itself errored or timed out, because a client-side timeout does not mean Tally didn't still create some or all of them server-side; retrying without checking first risks posting duplicates. Verification matches each voucher back by (voucherType, narration) — NOT voucherNumber, confirmed live to be unreliable even when set explicitly (Tally silently reassigned its own auto-series number instead for a Journal voucher); reference was tried next and also came back empty on read. narration is what's confirmed live to persist exactly as sent, so it's REQUIRED and must be non-empty on every voucher, and must be unique per voucherType across the whole batch — two vouchers sharing the same (voucherType, narration) can't be told apart afterward and are rejected up front as invalid rather than silently mismatched (e.g. embed each row's own reference/id in the narration text). The result names exactly which vouchers were confirmed and which were not, per chunk, so a partial failure can be retried by resending only the ones that didn't land — never blindly resend the whole batch. Does not go through preview_write/confirm_write given the scale involved; sending a small batch (2-3 vouchers) first to confirm shape/ledger names before a large run is recommended.

Inputs: vouchers (required), chunkSize.

create_voucher_typeA

Create a new custom Voucher Type in TallyPrime (e.g. 'Bank Payment' as a sub-type of 'Payment', with its own numbering series/abbreviation) — or rename/reconfigure an existing one by passing oldName. Base types to derive from: 'Payment', 'Receipt', 'Journal', 'Contra', 'Sales', 'Purchase', 'Credit Note', 'Debit Note', 'Stock Journal', 'Physical Stock', etc. — must be an exact existing voucher type name (check get_voucher_types first). Setting numberingMethod explicitly is useful given the confirmed-live issue where some Tally configurations stop auto-numbering item-invoice-mode voucher types via the XML gateway unless a voucherNumber is supplied on every create call — see create_sales_invoice's voucherNumber note. Confirmed live separately: a brand-new custom voucher type created WITHOUT numberingMethod set can accept vouchers with a completely blank voucher number (not even '1') — pass numberingMethod: 'Automatic' explicitly to avoid ending up with unreferenceable vouchers you can only look up/delete by date.

Inputs: name (required), parent (required), oldName, extraFields, +4 more.

delete_masterA
DestructiveIdempotent

Delete one or more masters (ledger, group, stock item, voucher type, unit, godown, cost centre, etc.) from TallyPrime by name. If a master was used in a voucher you're also deleting, delete the voucher first and confirm it succeeded before calling this — doing both in the same parallel batch can race (the master delete reaching Tally before the voucher delete has committed), confirmed live. If a ledger/stock item was used in both a Sales AND a Purchase item-invoice, it may return 'Cannot be deleted!' permanently even with no transactions left — this is fixed by running Company Data → Rewrite in Tally itself (confirmed live), not by retrying or sequencing.

Inputs: names (required), collection (required).

delete_stock_itemA
DestructiveIdempotent

Delete a stock item from TallyPrime. Fails if it has transactions posted against it. If deleting a voucher that used this item in the same turn, delete the voucher first and confirm it succeeded before calling this — doing both in parallel can race (confirmed live). If this item was used in both a Sales AND a Purchase item-invoice, it may return 'Cannot be deleted!' even with zero balance and no transactions left — fixed by Company Data → Rewrite in Tally itself (confirmed live), not by retrying.

Inputs: name (required).

delete_voucherA
DestructiveIdempotent

Permanently delete an existing voucher from TallyPrime — removes it entirely with no trace (distinct from cancelling, which keeps it visible but marked Cancelled). The voucher is matched by type + date + voucher number, so that combination must be unique and must exactly match an existing voucher (use get_ledger_vouchers or get_vouchers first to confirm it). This has no undo. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's lookup ignores voucher type and can silently target the wrong one) — resolve the collision in Tally first.

Inputs: date (required), voucherType (required), voucherNumber (required).

get_audit_logA
Read-only

Read this connector's append-only audit log — every tool call made through it (read or write), with timestamp, arguments, outcome (success/error/denied), and a best-effort Tally company tag. Entries older than 90 days are permanently deleted (checked once per server startup, not kept indefinitely) — this is not a full historical record beyond that window. Use this to review what an agent actually did against this Tally company, e.g. before trusting a session's claimed results, or to hand a reviewer a plain record of every write made in a given period.

Inputs: limit, format, toDate, company, +3 more.

get_balance_sheetB
Read-only

Get the Balance Sheet from TallyPrime as of a given date

Inputs: asOf (required).

get_bills_payableA
Read-only

Get outstanding Bills Payable from TallyPrime as of a given date

Inputs: asOf (required).

get_bills_receivableA
Read-only

Get outstanding Bills Receivable from TallyPrime as of a given date

Inputs: asOf (required).

get_cash_flowA
Read-only

Get the Cash Flow statement from TallyPrime for a date range — Tally's own canned report, reachable directly via a plain Export Data request (confirmed live, unlike the VAT/GST return reports). Returns Tally's native monthly-period breakdown shape (DSPPERIOD/DSPACCINFO arrays) as-is.

Inputs: to (required), from (required).

get_company_infoA
Read-only

Get the currently open company info from TallyPrime

Inputs: no named parameters.

get_cost_centresA
Read-only

Get all cost centres from TallyPrime

Inputs: no named parameters.

get_funds_flowA
Read-only

Get the Funds Flow statement from TallyPrime for a date range — Tally's own canned report, reachable directly via a plain Export Data request. Returns Tally's native monthly-period breakdown shape as-is.

Inputs: to (required), from (required).

get_groupsA
Read-only

Get all account groups (e.g. Sundry Debtors, Fixed Assets) from TallyPrime

Inputs: no named parameters.

get_gst_liability_summaryA
Read-only

Get an India GST liability summary for a date range. Same design as get_vat_liability_summary — each row is a GST ledger (CGST/SGST/IGST, input/output/payable/receivable/RCM) with its closing balance for the period, classified as input/output/rcm/other ('rcm' kept separate from input/output — reverse-charge liability is the thing that's easily missed manually), tagged 'structural' (Tally's Type-of-duty/tax field = GST) or 'name_pattern' (matched Input/Output CGST/SGST/IGST or GST Payable/Receivable/RCM naming) — both signals used together for the same reason: confirmed live that Tally's structural tag alone misses every ledger with real activity in a real company file. Deliberately excludes generic expense ledgers that merely mention GST in their name (a freight ledger, a GST write-off/ineligible-ITC ledger) — those aren't tax liability lines and including them would misstate the position. netTotal sums all rows using Tally's own debit/credit sign convention. Not a canned GSTR export — reconstructed from ledger balances. If no matching ledgers exist, returns an explicit note instead of a bare zero.

Inputs: to (required), from (required).

get_health_checkA
Read-only

Check whether this connector is actually safe and working right now: is Tally's gateway reachable, is a company open (and which one), what TALLY_URL it's talking to, whether read-only mode is on, and which tools (if any) are explicitly disabled. Use this before trusting a session, or when something feels off, instead of inferring connector state from a single tool call's success/failure.

Inputs: no named parameters.

get_journal_registerA
Read-only

Get the Journal Register from TallyPrime for a date range — a month-by-month summary of Journal voucher activity, same design as get_sales_register.

Inputs: to (required), from (required).

get_ledgersA
Read-only

Get ledgers (accounts) from TallyPrime. Omit query to get every ledger. Pass query to instead get a fuzzy-ranked shortlist of the closest-matching ledger names — useful when you have a rough or partial name (e.g. from a client document) and need Tally's exact spelling before creating a voucher or a new ledger, without pulling and scanning the entire ledger list yourself. Matches on exact/prefix/substring, then falls back to a loose in-order character match for abbreviations and typos (e.g. 'vro' finds 'VRO Technology'). Returns at most the top 20 matches, ranked best first; an empty result means create the ledger — nothing close enough exists yet. Each ledger includes VATTINNUMBER, VATDEALERTYPE, STATE, and COUNTRY (the values set via create_ledger's trn/vatDealerType/state/country fields, blank if never set), plus GSTIN, PAN, GSTREGISTRATIONTYPE, GSTTYPEOFSUPPLY, and CONTACTPERSON (set via create_ledger's gstin/pan/gstRegistrationType/gstTypeOfSupply/contactPerson fields — GSTIN/PAN/GSTREGISTRATIONTYPE are India's fields, distinct from trn/VATDEALERTYPE which are UAE-specific; a company only uses one country's set or the other, not both) — check the relevant ones before creating a Sales/Purchase invoice (or Credit/Debit Note, Delivery/Receipt Note) for that party: Tally itself defaults a new invoice's Buyer/Place-of-Supply details from the party ledger's own master data, so use these same values for buyerTrn/buyerState/buyerCountry rather than leaving them blank or guessing. Only ask the user to confirm instead of defaulting when the party has multiple registered delivery locations/addresses and it's genuinely unclear which one applies to this specific transaction (confirmed live: a real customer ledger can carry dozens of named addresses, and one invoice's Buyer address and Consignee/Ship-to address can legitimately differ from both the ledger's default and each other).

Inputs: query.

get_ledger_vouchersA
Read-only

Get all voucher entries posted to a specific ledger within a date range

Inputs: to (required), from (required), ledgerName (required).

get_payment_registerA
Read-only

Get the Payment Register from TallyPrime for a date range — a month-by-month summary of Payment voucher activity, same design as get_sales_register. For Receipt vouchers specifically, use get_receipts_and_payments instead — Tally has no separate standalone 'Receipt Register' report reachable this way (confirmed live: 'Could not find Report').

Inputs: to (required), from (required).

get_profit_and_lossB
Read-only

Get the Profit & Loss statement from TallyPrime for a date range

Inputs: to (required), from (required).

get_purchase_registerA
Read-only

Get the Purchase Register from TallyPrime for a date range — a month-by-month summary of Purchase voucher activity, same design as get_sales_register.

Inputs: to (required), from (required).

get_ratio_analysisA
Read-only

Get the Ratio Analysis report from TallyPrime for a date range (Working Capital, Current Ratio, Quick Ratio, Inventory Turnover, Debtors/Creditors Turnover, and similar standard ratios) — Tally's own canned report, reachable directly via a plain Export Data request. Returns Tally's native RATIONAME/value array shape as-is.

Inputs: to (required), from (required).

get_receipts_and_paymentsA
Read-only

Get the Receipts and Payments report from TallyPrime for a date range — a cash/bank-ledger-wise view combining Receipt and Payment activity, Tally's own canned report. This is the closest reachable equivalent to a standalone Cash Book/Bank Book — Tally's actual 'Cash Book'/'Bank Book' menu reports are not reachable via a plain Export Data request (confirmed live: 'Could not find Report'), even though they're registered report names — for a single cash or bank ledger's own transaction history instead, use get_ledger_vouchers with that ledger's name.

Inputs: to (required), from (required).

get_reorder_statusA
Read-only

Get the Reorder Status report from TallyPrime for a date range — stock items with a reorder level configured, and where their current quantity stands against it (closingStock, onPurchaseOrder, onSaleOrder, reorderLevel, shortfall, minimumQty, requiredQty per row). Tally's own report returns every stock item regardless of reorder setup (confirmed live: a 10,770-item company with no reorder levels configured returned a ~1.4MB all-null dump) — this tool filters that down to only rows that actually have a reorder level set, since that's the only subset the report can say anything useful about. An empty rows array with a note means no items have a reorder level configured at all, not an error — use get_stock_summary for a plain quantity view of every item regardless of reorder setup.

Inputs: to (required), from (required).

get_sales_registerA
Read-only

Get the Sales Register from TallyPrime for a date range — a month-by-month summary of Sales voucher activity, Tally's own canned report reachable directly via a plain Export Data request. For individual Sales voucher line detail (not just monthly totals), use get_vouchers or get_ledger_vouchers instead.

Inputs: to (required), from (required).

get_stock_itemsA
Read-only

Get all stock items from TallyPrime. Each item includes NAME, PARENT, CLOSINGBALANCE, plus DESCRIPTION, PARTNUMBER, COSTINGMETHOD (e.g. 'Avg. Cost', 'FIFO'), GSTTYPEOFSUPPLY ('Goods'/'Services') — blank/empty if never set on that item — and GSTAPPLICABLE (read-only: Tally computes this from the item's own GST configuration, it cannot be set directly). Also includes GSTDETAILS: {hsnCode, taxability, applicableFrom, isReverseChargeApplicable, gstIneligibleItc} (or null if no GST Details entry exists at all), taken from Tally's own date-versioned GST Details list — set via create_stock_item's/update_stock_item's hsnCode/taxability/isReverseChargeApplicable/gstIneligibleItc fields. When an item has more than one dated entry (a rate/HSN change over time), this shows only the one with the latest applicableFrom, not the full history.

Inputs: no named parameters.

get_stock_summaryA
Read-only

Get the Stock Summary report from TallyPrime as of a given date

Inputs: asOf (required).

get_trial_balanceA
Read-only

Get the Trial Balance from TallyPrime for a date range

Inputs: to (required), from (required).

get_vat_liability_summaryA
Read-only

Get a UAE VAT liability summary for a date range. Each row is a VAT ledger with its closing balance for the period, classified as input/output/rcm/other — 'rcm' (reverse charge) is kept separate from plain input/output because reverse-charge liability is the thing that's easily missed manually, even though it nets to a wash for most businesses — tagged with how it was found — 'structural' (Tally's own Type-of-duty/tax field is set to VAT on that ledger) or 'name_pattern' (matched Input/Output/Payable/Receivable VAT naming). Both signals are used together, not one alone — confirmed live on real company data that Tally's structural tag is precise but has near-zero recall: every properly-tagged ledger had a zero balance, while the ledgers actually carrying real money were created without that tag set at all. Not filtered by any particular parent group — real companies were confirmed to scatter these ledgers across many different groups, not one standard group. netTotal sums all rows using Tally's own debit/credit sign convention. Not Tally's canned VAT return report (confirmed live it isn't reachable via a plain Export Data request) — reconstructed from ledger balances the same way get_profit_and_loss is. If no matching ledgers exist, returns an explicit note instead of a bare zero — a company with no VAT ledgers (not registered, or unrecognizable naming) is a different fact from a real zero liability period.

Inputs: to (required), from (required).

get_vouchersA
Read-only

Get vouchers (Day Book) from TallyPrime filtered by date range. Returns a flat array of rows (guid, date, voucher_type, voucher_number, reference, party_ledger, amount, narration) — headers only, no stock item or ledger line detail (use get_ledger_vouchers or query_sql for that). Rebuilt on the same Voucher collection query sync_vouchers_to_sql already uses: an earlier version called Tally's canned 'Day Book' report directly, which was confirmed live to silently ignore the date range entirely (returning the same fixed set regardless of what was requested, even for a year before the company's books start) — this version correctly scopes to the requested range.

Inputs: to (required), from (required).

get_voucher_typesA
Read-only

Get all voucher types configured in TallyPrime (e.g. Payment, Sales, Journal)

Inputs: no named parameters.

preview_writeA
Read-only

Build the exact XML for any write tool WITHOUT sending it to Tally — nothing is touched. Returns a previewId plus a plain-English description and the raw XML, so you (or whoever's reviewing) can see precisely what would happen before it happens. Use this instead of calling a create_*/update_*/delete_* tool directly whenever you want a human to review a batch of changes first — e.g. drafting several vouchers from a folder of client documents, where posting the wrong one is costly. Every applicable safety check this tool would normally run (e.g. the voucher-type collision check on update_*/delete_voucher) runs now, at preview time, so the preview already reflects any refusal. A preview expires after 15 minutes and is single-use — call confirm_write with its previewId to actually post it, or just don't confirm it if it's wrong. Never touches Tally with a write of its own (a create_* preview makes no gateway call at all; an update_*/delete_* preview only makes the same read-only collision-check query that tool would normally make) — so unlike every other write tool, preview_write still works even when read-only mode is on. confirm_write is the one that's actually blocked by read-only mode.

Inputs: args (required), toolName (required).

query_sqlA
Read-only

Run a read-only SQL SELECT query against this session's in-memory cache (gone when the session ends). Tables: ledgers(name, parent, closing_balance, trn, state, country), groups(name, parent), stock_items(name, parent, closing_balance), vouchers(guid, date, voucher_type, voucher_number, party_ledger, amount, narration), voucher_items(voucher_guid, date, voucher_type, voucher_number, stock_item, qty, rate, amount, is_deemed_positive, godown, batch), voucher_ledger_entries(voucher_guid, date, voucher_type, voucher_number, ledger, amount, is_deemed_positive, cost_centre, bill_name, bill_type, description) — all six populated only by explicitly calling sync_to_sql/sync_vouchers_to_sql/sync_voucher_items_to_sql/sync_voucher_ledger_entries_to_sql first. Movement analysis, godown-wise stock, and batch/ageing detail are just SELECTs over voucher_items — there is no separate report tool for them. Splitting a ledger's balance apart by voucher (e.g. a combined VAT ledger into Output vs Input), or reconciling a party ledger's movements voucher by voucher, is just a SELECT over voucher_ledger_entries the same way — voucher_ledger_entries.amount is signed (negative debit, positive credit), so GROUP BY ledger, voucher_type with SUM(amount) is the natural query. profit_and_loss(ledger_name, group_name, closing_balance, period_from, period_to), stock_summary(name, parent, opening_qty, closing_qty, opening_value, closing_value, as_of_date), balance_sheet(group_name, amount, as_of_date), trial_balance(name, debit_amount, credit_amount, period_from, period_to), vat_summary(ledger_name, category, closing_balance, period_from, period_to), and gst_summary(ledger_name, category, closing_balance, period_from, period_to) are populated automatically, no separate sync step — every get_profit_and_loss/get_stock_summary/get_balance_sheet/get_trial_balance/get_vat_liability_summary/get_gst_liability_summary call refreshes its table with that call's result, so a follow-up question about the same report can query it here instead of re-fetching from Tally. Each of these six only ever holds the most recent call's data, not a history — re-call the report tool if you need a different period. Every call here checks which company is actually open in Tally right now against what the cache was last synced/queried for, however that company was arrived at (set_company, Tally's own UI, or a connector restart) — a mismatch clears the stale cache and refuses to run, rather than silently answering with a previous company's rows under the new company's name.

Inputs: sql (required).

set_bill_of_materialsA
DestructiveIdempotent

Attach a Bill of Materials (recipe) to an existing finished-goods stock item, so a Manufacturing/Stock Journal producing this item can have its component quantities computed from a fixed ratio instead of typed by hand every time. Uses Tally's native MULTICOMPONENTLIST.LIST structure. This is a pure convenience layer over create_stock_journal — it does not affect stock or post anything by itself; you still call create_stock_journal to actually record a production run, scaling each component's qty by the ratio to basicQty yourself (this tool does not auto-compute that scaling for you). EXTRAPOLATED from a genuine Tally-exported XML template's stock item master shape, not reverse-engineered from a real manually-created BOM — verify carefully after use, especially natureOfItem's accepted values.

Inputs: stockItem (required), components (required), unit, basicQty, +1 more.

set_companyA
Read-only

Switch TallyPrime's active company context. Changes which company subsequent tool calls and reports operate on — validate the name with get_ledgers/get_company_info or the company list first

Inputs: companyName (required).

set_periodA
Read-only

Switch TallyPrime's active reporting period. Changes the global from/to date context used by Tally for subsequent report queries until changed again

Inputs: to (required), from (required).

sync_to_sqlA
Read-only

Pull ledgers, groups, and stock items from TallyPrime into this session's SQL cache (in-memory — gone when this session ends), so query_sql can run fast arbitrary queries without hitting Tally each time. Every sync/query tool checks which company is actually open in Tally right before touching the cache and clears it if that's changed since the last one — however the switch happened (set_company, Tally's own UI, or a connector restart) — so a stale company's rows never silently answer under a new company's name; the return message says so when it happens. Does NOT sync vouchers — use sync_vouchers_to_sql for those, one date range at a time.

Inputs: no named parameters.

sync_voucher_items_to_sqlA
Read-only

Pull voucher INVENTORY LINE ITEMS (stock item, qty, rate, amount, godown, batch — one row per item per batch allocation) for one date range into this session's SQL cache, so query_sql can compute movement analysis, godown-wise stock, or batch detail directly. This is the raw data those analyses need — Tally has no exportable 'Movement Analysis'/'Stock Ageing Analysis'/'Godown Summary' report reachable over the gateway (confirmed live against all 138 registered report names, and confirmed live that per-godown $ClosingBalance/SVGODOWNNAME scoping doesn't work either), so this connector doesn't try to replicate those as report tools — pull the line items with this, then write the aggregation as SQL. qty/amount are UNSIGNED as Tally stores them on the inventory entry; use is_deemed_positive together with voucher_type to work out inward vs outward direction. A voucher with no stock items (Payment, Journal, etc.) contributes zero rows, not an empty one. Same chunked, additive-by-date-range model and same timeout caution as sync_vouchers_to_sql — quarterly/monthly chunks for a busy company. Checks which company is actually open in Tally first and clears the whole cache if it's changed since the last sync/query — however that happened, not just via set_company.

Inputs: to (required), from (required).

sync_voucher_ledger_entries_to_sqlA
Read-only

Pull voucher LEDGER LINES (which ledger each voucher posted to, the amount, cost centre, and bill allocation — one row per ledger line per bill allocation) for one date range into this session's SQL cache. This is the piece get_vouchers/sync_vouchers_to_sql can't give you — those return only each voucher's single overall total, not which ledgers it actually posted to and for how much. Use this whenever a ledger's balance needs to be broken down by the vouchers that make it up — e.g. a combined VAT ledger split into Output vs Input (GROUP BY ledger, voucher_type), or reconciling a party ledger's movements voucher by voucher. amount is SIGNED (negative for a debit line, positive for a credit line — confirmed live: a Sales invoice's party ledger line comes back negative while its Sales/VAT lines come back positive, summing to zero across the voucher) — sum it directly. description carries a ledger line's 'Additional Descriptions for Ledgers' text (several lines joined with ' | ', null where none). Same chunked, additive-by-date-range model and same timeout caution as sync_vouchers_to_sql/sync_voucher_items_to_sql — quarterly/monthly chunks for a busy company. Checks which company is actually open in Tally first and clears the whole cache if it's changed since the last sync/query — however that happened, not just via set_company.

Inputs: to (required), from (required).

sync_vouchers_to_sqlA
Read-only

Pull voucher HEADERS (date, type, number, party ledger, amount, narration — not line items) for one date range into this session's SQL cache (in-memory, gone when the session ends), so query_sql can aggregate/report on them (e.g. sales by customer by month) without re-fetching from Tally. Call this once per chunk to build up full multi-year history for the CURRENTLY OPEN company within this session — re-running for the SAME range just refreshes it (safe to re-run), and each call only touches vouchers within its own date range, so calling it for 2024 then 2025 gives you both, not just the latest. Checks which company is actually open in Tally first and clears the whole cache if it's changed since the last sync/query — however that happened, not just via set_company — so a prior company's vouchers never silently mix into this one's results. IMPORTANT: pick a chunk size that won't time out — a full year (~7,500 vouchers here) took ~6s against the 10s request timeout; prefer quarterly or monthly chunks for a busy company, and back off further if a call times out. Does not include stock item / ledger line detail (see get_ledger_vouchers/get_vouchers for that).

Inputs: to (required), from (required).

update_credit_noteA
DestructiveIdempotent

Update an existing item-invoice Credit Note in TallyPrime, replacing its item lines, party, and narration. Same fields as create_credit_note, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +14 more.

update_debit_noteA
DestructiveIdempotent

Update an existing item-invoice Debit Note in TallyPrime, replacing its item lines, party, and narration. Same fields as create_debit_note, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +14 more.

update_delivery_noteA
DestructiveIdempotent

Update an existing Delivery Note in TallyPrime, replacing its item lines, party, and narration. Same fields as create_delivery_note, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +8 more.

update_job_work_in_orderA
DestructiveIdempotent

Update an existing Job Work In Order in TallyPrime, replacing its item lines (and their component lists), party, order number, and narration. Same fields as create_job_work_in_order, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

update_job_work_out_orderA
DestructiveIdempotent

Update an existing Job Work Out Order in TallyPrime, replacing its item lines (and their component lists), party, order number, and narration. Same fields as create_job_work_out_order, plus voucherNumber. Same matching/collision caveats as update_job_work_in_order.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

update_material_inA
DestructiveIdempotent

Update an existing Material In voucher in TallyPrime, replacing its item lines and narration. Same fields as create_material_in, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +1 more.

update_material_outA
DestructiveIdempotent

Update an existing Material Out voucher in TallyPrime, replacing its item lines and narration. Same fields as create_material_out, plus voucherNumber. Same matching/collision caveats as update_material_in.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +1 more.

update_physical_stockA
DestructiveIdempotent

Update an existing Physical Stock voucher in TallyPrime, replacing its counted item lines and narration. Same fields as create_physical_stock, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), voucherNumber (required), narration.

update_purchase_invoiceA
DestructiveIdempotent

Update an existing item-invoice Purchase voucher in TallyPrime, replacing its item lines, party, and narration. Same fields as create_purchase_invoice, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +14 more.

update_purchase_orderA
DestructiveIdempotent

Update an existing Purchase Order in TallyPrime, replacing its item lines, party, order number, and narration. Same fields as create_purchase_order, plus voucherNumber. Same matching/collision caveats as update_sales_order.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

update_receipt_noteA
DestructiveIdempotent

Update an existing Receipt Note in TallyPrime, replacing its item lines, party, and narration. Same fields as create_receipt_note, plus voucherNumber. Same matching/collision caveats as update_delivery_note.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +9 more.

update_rejections_inA
DestructiveIdempotent

Update an existing Rejections In voucher in TallyPrime, replacing its item lines and narration. Same fields as create_rejections_in, plus voucherNumber. Same matching/collision caveats as update_material_in.

Inputs: date (required), items (required), voucherNumber (required), narration.

update_rejections_outA
DestructiveIdempotent

Update an existing Rejections Out voucher in TallyPrime, replacing its item lines and narration. Same fields as create_rejections_out, plus voucherNumber. Same matching/collision caveats as update_material_in.

Inputs: date (required), items (required), voucherNumber (required), narration.

update_sales_invoiceA
DestructiveIdempotent

Update an existing item-invoice Sales voucher in TallyPrime, replacing its item lines, party, and narration. Same fields as create_sales_invoice, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), items (required), partyLedger (required), voucherNumber (required), +14 more.

update_sales_orderA
DestructiveIdempotent

Update an existing Sales Order in TallyPrime, replacing its item lines, party, order number, and narration. Same fields as create_sales_order (orderNumber and each item's dueDate still REQUIRED), plus voucherNumber to locate the existing voucher. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens. Note voucherNumber here is the existing voucher's own number to match by — Tally may still not let you change it, since Order-class vouchers use 'Auto Retain' numbering (see create_sales_order).

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

update_sales_quotationA
DestructiveIdempotent

Update an existing Sales Quotation in TallyPrime, replacing its item lines, party, order number, and narration. Same fields as create_sales_quotation, plus voucherNumber. Same matching/collision caveats as update_sales_order.

Inputs: date (required), items (required), orderNumber (required), partyLedger (required), +2 more.

update_stock_itemB
DestructiveIdempotent

Update an existing stock item in TallyPrime — same fields as create_stock_item, all optional except name.

Inputs: name (required), unit, group, hsnCode, +11 more.

update_stock_journalA
DestructiveIdempotent

Update an existing Stock Journal voucher in TallyPrime, replacing its source/destination lines and narration. Same fields as create_stock_journal, plus voucherNumber. Matched by date + voucher number — use get_ledger_vouchers or get_vouchers first to confirm it exists and is unique. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), sources (required), destinations (required), voucherNumber (required), +3 more.

update_voucherA
DestructiveIdempotent

Update an existing voucher in TallyPrime, replacing its ledger entries and narration. The voucher is matched by type + date + voucher number, so that combination must be unique and must exactly match an existing voucher (use get_ledger_vouchers or get_vouchers first to confirm it). Either pass debitLedger/creditLedger/amount for a simple 2-leg voucher, or pass 'entries' for 3+ lines, same as create_voucher. Refuses if another voucher type shares the same number on that date (confirmed live: Tally's Alter lookup ignores voucher type and can silently corrupt the wrong one) — resolve the collision in Tally first if that happens.

Inputs: date (required), voucherType (required), voucherNumber (required), mode, +19 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 87 tools

    Disambiguation4/5

    Despite 87 tools, most have a sharply distinct role: each Tally voucher type gets its own create_/update_ pair (Sales Invoice, Purchase Invoice, Credit/Debit Note, Delivery/Receipt Note, Material In/Out, Rejections In/Out, Physical Stock, Stock Journal, Orders, Job Work, Quotation) and the descriptions actively contrast them. A few genuine overlaps remain: delete_master duplicates delete_stock_item's capability, create_vouchers_batch overlaps create_voucher, and adjacent pairs like create_delivery_note vs create_sales_invoice or create_material_in vs create_receipt_note require careful reading to avoid misselection.

    Naming Consistency4/5

    The set follows a strongly predictable verb_noun convention (get_*, create_*, update_*, delete_*, set_*, sync_*), with create_/update_ pairs named identically per voucher type. Minor deviations exist (create_vouchers_batch is plural while its sibling is create_voucher, delete_master is a generic escape hatch alongside delete_stock_item, and preview_write/confirm_write sit outside the CRUD verb set), but none are confusing.

    Tool Count1/5

    87 tools is an extreme surface for one server, well past the point where an agent can hold the set in mind or reliably pick among near-sibling voucher types. Much of the volume comes from exhaustive create_/update_ permutations across ~17 voucher types, which could have been collapsed into a parameterized voucher tool with a type discriminator.

    Completeness4/5

    The surface is remarkably thorough for TallyPrime: masters (ledgers, groups, stock items/groups, units, godowns, cost centres/categories, voucher types), the full voucher lifecycle across every major voucher type, delete_voucher/delete_master, financial reports, tax summaries, SQL sync/query, preview/confirm write safety, and an audit log. Gaps are minor but real: there are create tools for units, godowns, and cost centres without corresponding list/get tools, and rename support is uneven across masters (create_ledger/create_group/create_voucher_type accept oldName but create_godown/create_unit/create_cost_centre/create_stock_group do not document it).

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects Tally Prime ERP data to AI assistants via MCP, enabling natural language queries for financial reports, stock summaries, and ledger balances.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that lets Claude read from and write to TallyPrime via its built-in XML/HTTP gateway.
      23
      3
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects Claude to TallyPrime, allowing natural language queries for reading ledgers, trial balances, and daybooks, and creating vouchers with a dry-run and confirmation safety model.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables LLMs like Claude and ChatGPT to access and interact with Tally Prime ERP data through MCP, including financial reports, ledgers, trial balance, balance sheet, profit and loss, and stock summary.
      AGPL 3.0