create_stock_item
Add a new stock item to TallyPrime with group, unit, GST/HSN, valuation, and opening balance details. Use it to create inventory masters programmatically through the MCP server.
Instructions
Create a new stock item in TallyPrime
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the new stock item | |
| unit | Yes | Unit of measure, e.g. 'Nos', 'Kg', 'Box' | |
| group | Yes | Stock group, e.g. 'Primary' (use 'Primary' if there are no custom stock groups) | |
| hsnCode | No | India HSN/SAC code for this item, e.g. '85071000'. Lives in Tally's own date-versioned GST Details list (confirmed live) — setting this or taxability writes a new GST Details entry effective from gstDetailsApplicableFrom. | |
| rateOfVat | No | VAT rate percentage for this item, e.g. 5. | |
| partNumber | No | Part number for this item, e.g. a manufacturer's catalogue number. | |
| taxability | No | India GST taxability for this item — 'Taxable', 'Exempt', or 'Nil Rated'. Same GST Details entry as hsnCode. | |
| description | No | Free-text description of the item. | |
| extraFields | No | Escape hatch for any other native Tally stock item field not covered above — pass exact Tally XML tag names as keys. Not validated; use exact field names from a master export. | |
| openingRate | No | Opening rate per unit (optional, defaults to 0) | |
| costingMethod | No | Stock valuation method for this item, e.g. 'Avg. Cost', 'FIFO', 'LIFO Perpetual', 'Std.Cost'. Plain text matching Tally's own dropdown options exactly. | |
| openingBalance | No | Opening quantity (optional, defaults to 0) | |
| gstTypeOfSupply | No | India GST type of supply for this item — 'Goods' or 'Services'. Confirmed live as a real, independently settable field (flat, not part of the GST Details list). | |
| gstIneligibleItc | No | Whether input tax credit on this item is ineligible under GST. Same date-versioned GST Details entry as hsnCode/taxability — setting this alone also creates/updates that entry. | |
| ignoreNegativeStock | No | Allow this item's stock to go negative without a warning/block. | |
| gstDetailsApplicableFrom | No | Date in DD-MM-YYYY format from which this hsnCode/taxability entry is effective. Defaults to today if either field is set and this is omitted — required internally by Tally for the entry to persist (it's a date-versioned list). | |
| isReverseChargeApplicable | No | Whether reverse-charge GST applies to this item. Same date-versioned GST Details entry as hsnCode/taxability — setting this alone also creates/updates that entry. |