Skip to main content
Glama

ccpcrate — Canadian CCPC corporate tax

Resolve the CCPC rate stack for one taxation year

ccpcrate_resolve
Read-onlyIdempotent

Compute the federal Part I / Part IV / refundable / RDTOH / dividend-refund lines and the provincial layer for one CCPC and one taxation year. Returns a readable summary plus the structured result: lines (rounded, as printed), unrounded audit values, facts, warnings, layers, balances carried forward, the inputs still missing, engine and rules versions and a request hash. Deductions are negative, taxes positive. A missing required input is an error, not a default. Free during the launch period; the planned price is 0.25 USDC per call.

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_resolve"
  }
}

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.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it enumerates the returned structure (lines, unrounded audit values, facts, warnings, layers, carry-forwards, missing inputs, engine and rules versions, request hash), fixes the sign convention ('deductions are negative, taxes positive'), and declares failure semantics ('a missing required input is an error, not a default'). It also discloses commercial terms (free in launch period, planned 0.25 USDC per call), which is genuine operational context.

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?

Four sentences, front-loaded with the computation scope, then outputs, then conventions, then pricing. Dense but every sentence carries information; the pricing sentence is the weakest for invocation purposes but still operationally relevant.

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 a 33-parameter nested computation tool with no output schema, the description covers what is computed, what comes back, sign conventions, error behavior on missing inputs, and cost. The schema itself carries the per-field semantics, so nothing an agent needs to call this correctly is absent.

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%, so the baseline is 3; the description adds cross-cutting meaning the schema cannot express evenly — the global sign convention for all monetary inputs and the rule that omissions are errors rather than defaults. It does not restate individual parameters, which is appropriate given the schema's richness.

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?

States a specific verb ('Compute') plus the exact tax lines covered (Part I / Part IV / refundable / RDTOH / dividend-refund plus the provincial layer) and constrains scope to 'one CCPC and one taxation year', which implicitly separates it from the group sibling. An agent can identify the operation and the unit of work without opening the schema.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: 'one CCPC' hints at when to prefer this over a group computation, and 'Omit for a holdco and supply the income lines instead' gives real conditional guidance for one input path. However, no sibling is named as an alternative, no when-not guidance is given, and an agent must infer routing from the sibling names alone.

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