Select active company for the TallyPrime session
tally_set_active_company sets the target company for all subsequent queries in your session, ensuring report outputs match the selected entity. It modifies session context only.
Example Prompt for AI Agents (Claude, ChatGPT, Cursor)
Switch active company to 'ABC Traders Pvt Ltd'.How to Use tally_set_active_company 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_set_active_company 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
{
"company": "str"
}Expected Output Format
{
"active_company": "str",
"success": "bool"
}Specification & Description
Set the active company for read queries in this session. Use when: switch active company, select company, set context. READ-ONLY.
Frequently Asked Questions
Does this alter Tally data?
No. It only sets the target company in the local MCP session.
What if the company name doesn't match?
It returns an error listing the available loaded companies.