Skip to main content
Glama

ccpcrate — Canadian CCPC corporate tax

Explain a resolution

ccpcrate_explain
Read-onlyIdempotent

Free diagnostic pass over the same input as ccpcrate_resolve: which layers run, the defaults the engine would apply, every warning with its meaning (grind binding, provincial asymmetries, missing inputs), the rule rows in force for the year with sources and verification status, the open verifications, and what the paid computation would return. Contains no computed amounts — the numbers are in ccpcrate_resolve.

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": {
      "taxYear": "<taxYear>",
      "province": "<province>"
    },
    "name": "ccpcrate_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
qcNoQuébec inputs (CO-771)
taxYearYes
provinceYesProvince of the permanent establishment (two-letter code)
cdaOpeningNoCapital dividend account opening balance (returns cda_closing)
gripOpeningNoGRIP carried into the year: Schedule 53 line 100 less the eligible dividends paid in the previous year (line 300 net of 310). Returns the GRIP at the end of the year, against which this year's eligible dividends are tested, and what is left to carry forward
rdtohOpeningNoOpening ERDTOH / NERDTOH in T2 terms. Omitted = 0 with a warning when it matters
taxableIncomeNoPart I taxable income (T2 line 360). Omit for a holdco and supply the income lines instead; the engine derives it
netIncomeForTaxNoHoldco: net income for tax purposes (Sch 1 result) — overrides the derivation
propertyExpensesNoHoldco: deductible property expenses of the year (total)
groupAaiiPriorYearNoT2 line 417: Σ Sch 7 line 745 of the associated group for taxation years ending in the preceding calendar year. REQUIRED whenever a business limit is claimed
netIncomeAccountingNoHoldco: net income per financial statements
otherPropertyIncomeNoHoldco: property income other than dividends and capital-gains dividends
taxableCapitalGainsNoSch 6: taxable capital gains (the included half)
activeBusinessIncomeNoT2 line 400: income from an active business carried on in Canada
lossesByYearOfOriginNoSch 4 Part 6: opening balances by year of origin, e.g. {"2011": 263564}
provincialProportionNoShare of taxable income allocated to the province (Reg. 402). Default 1
capitalGainsDividendsNoCapital-gains dividends received (full amount; half to CDA)
dividendsPaidEligibleNoEligible dividends paid (designated) in the year
allowableCapitalLossesNoSch 6: allowable capital losses of the year
businessLimitAllocatedNoBusiness limit allocated to this corporation (Sch 23 line 410 if associated, else the statutory limit). 0 = allocation zero
foreignInvestmentIncomeNoT2 line 445: foreign investment income
nonCapitalLossesOpeningNoSch 4: non-capital loss pool at the start of the year
dividendsPaidNonEligibleNoNon-eligible taxable dividends paid in the year
foreignBusinessTaxCreditNoT2 line 636: foreign business income tax credit
aggregateInvestmentIncomeNoT2 line 440: aggregate investment income (s.129(4))
dividendsReceivedConnectedNoDividends from connected corporations (s.186(4)) — Part IV only through the payer's refund
foreignNonBusinessTaxCreditNoT2 line 632: foreign non-business income tax credit
taxableCapitalGroupPriorYearNoT2 line 415: taxable capital employed in Canada of the group, prior year. Omit when under 10 M
dividendsPaidOfWhichConnectedNoHow much OF the dividends paid above went to connected corporations — a portion of dividendsPaidEligible + dividendsPaidNonEligible, never an amount on top of them. Raises the cascade warning on the payer side. In a ccpcrate_group call the recipients' own dividendsReceivedConnected amounts govern the 186(1)(b) share; this field is then cross-checked against them
dividendsReceivedPortfolioEligibleNoEligible taxable dividends from non-connected payers (Part IV → ERDTOH)
nonCapitalLossesClaimedAgainstPartINoNon-capital losses claimed against Part I income
nonCapitalLossesClaimedAgainstPartIVNoNon-capital / farm losses claimed against Part IV (s.186(1)(c),(d)) — the loss amount
dividendsReceivedPortfolioNonEligibleNoNon-eligible taxable dividends from non-connected payers (Part IV → NERDTOH)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / gripOpening
      Added value: +{
      +  "description": "GRIP carried into the year: Schedule 53 line 100 less the eligible dividends paid in the previous year (line 300 net of 310). Returns the GRIP at the end of the year, against which this year's eligible dividends are tested, and what is left to carry forward",
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, but the description adds substantial behaviour of its own: the call is free versus the paid computation, it computes no amounts, and it surfaces warnings (grind binding, provincial asymmetries, missing inputs), rule rows with sources and verification status, and open verifications. That is exactly the kind of diagnostic-output disclosure an agent cannot get from the structured fields.

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

Conciseness5/5

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

One front-loaded sentence establishes the free/diagnostic framing and the input equivalence, followed by a compact enumeration of outputs and the closing contrast with ccpcrate_resolve. Every clause carries distinct information; there is no restatement of the name or filler.

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?

There is no output schema and the tool is complex (33 parameters, nested objects, a tax engine with layers and verification states), so the description must carry the return-value burden — and it does, listing each category of diagnostic output. Combined with the 97%-documented schema, an agent has enough to call it and interpret the result correctly.

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 description coverage is 97% across 33 parameters, so the schema already carries parameter meaning and the baseline is 3. The description adds one genuinely useful semantic fact beyond the schema: the inputs are the same as ccpcrate_resolve's, so an agent can reuse or reason about an existing payload and interpret outputs against the same field names.

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 specific verb+resource: a free diagnostic pass over the same input as ccpcrate_resolve, then enumerates exactly what it returns (layers run, defaults, warnings with meanings, rule rows with sources and verification status, open verifications). It explicitly distinguishes itself from ccpcrate_resolve by stating it contains no computed amounts, so an agent can separate it from its sibling without opening either schema.

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 gives clear routing context: use this to inspect which layers and rules are in force and why, and go to ccpcrate_resolve for the actual numbers ('Contains no computed amounts — the numbers are in ccpcrate_resolve'). What's missing is any explicit prerequisite or exclusion, such as whether it should be run before resolve or whether the input must be identical, so it stops short of a full when/when-not statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources