Check which TallyPrime version and company the AI is connected to
tally_get_environment reports the TallyPrime version, the open company, whether the edit log is on, and which Tally versions TallyMCP has been tested on, so an AI agent can confirm it is connected correctly before running reports.
Example Prompt for AI Agents (Claude, ChatGPT, Cursor)
Which Tally company is open, and is my TallyPrime version supported?How to Use tally_get_environment with AI
Open TallyPrime with your company loaded. Ensure the HTTP/XML connector is enabled on port 9000 (F1 > Settings > Connectivity).
In Claude Desktop, Cursor, or ChatGPT, paste the prompt above or type your request in natural language. The AI agent calls tally_get_environment automatically.
The assistant returns deterministically structured data directly in chat. All processing runs locally over loopback; zero telemetry.
tallymcp.proComplete AI client setup instructions →Input Parameters
{}Expected Output Format
{
"tally_version": "str",
"company": "str",
"edit_log": "bool|null",
"server_version": "str",
"tested": "list"
}Specification & Description
Get TallyPrime connection status: Tally version, open company, edit-log on/off, server version, tested versions. Use when: check connection, which company is open, version support. READ-ONLY.
Frequently Asked Questions
Which TallyPrime versions are supported?
See the tested-on table on this page; versions not listed are untested.
How does it detect edit log status?
It inspects the company flags returned by TallyPrime's XML interface.