Skip to main content
Glama

Set off and carry forward losses

compute_loss_setoff
Read-only

Apply current-year and brought-forward losses in statutory order and report section-wise set-off, carry-forward expiry, and Schedule CYLA/BFLA/CFL rows for tax computation.

Instructions

Apply current-year and brought-forward losses in statutory order (s.70 within a head, s.71 across heads with the Rs 2,00,000 house-property cap and no business loss against salary, then ss.71B/72/73/74 oldest first) and report each step with its section, income by head after set-off, what is carried forward with the last year it can be used (house property 8, business 8, speculative 4, capital 8 years), what expired, what s.80 forfeits on a late return, and Schedule CYLA/BFLA/CFL rows. forComputeTax goes into compute_tax or tax_summary field for field, with nothing added (do not also pass houses there).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "regime": "<regime>",
      "filedByDueDate": "<filedByDueDate>"
    },
    "name": "compute_loss_setoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
fyNoFiscal year, e.g. '2025-26' (AY 2026-27); '2026-27' is tax year 2026-27 under the Income-tax Act 20252025-26
regimeYesTax regime: no house-property loss crosses heads under the new regime (s.115BAC(2)); run once per regime to compare
businessNoBusiness or profession other than speculation (F&O included), net: profit or a NEGATIVE loss, in INR
speculativeNoSpeculative business (intraday equity), net: profit or a NEGATIVE loss, in INR
capitalGainsNoCapital gains and losses of the year
otherSourcesNoIncome from other sources at normal rates, in INR
salaryIncomeNoGross salary before the standard deduction, in INR
housePropertyNoIncome from house property for all houses together, in INR: positive income or a NEGATIVE loss (compute_house_property totals.income)
broughtForwardNoLosses brought forward from earlier years: one entry per kind and origin year, from last year's Schedule CFL
filedByDueDateYesThe return for THIS year is filed by the s.139(1) due date. If not, s.80 stops this year's business, speculative and capital losses from being carried forward (house property survives, s.71B). list_tax_years `status` says whether the date has passed.
housePropertyTypeNoWhich kind of house a house-property LOSS comes from; 'letOut' for a figure from compute_house_property (its caps are already applied)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With only readOnlyHint/openWorldHint annotations and no output schema, the description carries the full burden and does so: it enumerates the reported artifacts — per-step section, income by head after set-off, carry-forward with expiry horizons (8/8/4/8 years), expired losses, s.80 forfeiture on a late return, and Schedule CYLA/BFLA/CFL rows. It also embeds substantive rules (Rs 2,00,000 house-property cap, no business loss against salary) that an agent cannot infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary action is front-loaded in the first clause and there is no filler or marketing language. It is, however, a single very long sentence with heavy nested parentheticals, which costs some readability even though every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter tool with nested objects and no output schema, the description is unusually complete: it explains computation order, edge rules, output composition, and the downstream hand-off contract to compute_tax/tax_summary. An agent can call it and use the result without further clarification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents every field and baseline is 3. The description earns above baseline by adding meaning the schema lacks — the statutory ordering that governs how inputs are consumed and the carry-forward expiry durations that give the `broughtForward` entries their significance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ('Apply current-year and brought-forward losses') and immediately specifies the statutory ordering (s.70 within head, s.71 across heads, then ss.71B/72/73/74 oldest first). It also distinguishes itself from sibling tools by naming where its `forComputeTax` output must be fed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly positions the tool as a pre-step whose result is passed 'field for field' into compute_tax or tax_summary, and warns not to also pass houses there — a real usage constraint against a sibling. It stops short of an explicit 'use this instead of X when...' routing statement, so it is clear context rather than full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.