Skip to main content
Glama
IFRS 9 and IFRS 7 Credit Loss Agent

IFRS 9 and IFRS 7 Credit Loss Agent

by jabran

IFRS 9: ECL staging & measurement

ifrs9_expected_credit_loss
Read-onlyIdempotent

Classifies exposures into IFRS 9 stages and measures 12-month or lifetime expected credit losses using scenario-weighted PD × LGD × EAD, returning the loss allowance and journal entries.

Instructions

Assigns an exposure to stage 1, 2, 3 or POCI (IFRS 9.5.5.3-5.5.14: significant increase in lifetime PD, 30 days past due presumption, low credit risk simplification, 90 days default presumption, credit-impaired evidence) and measures 12-month and lifetime expected credit losses as probability-weighted PD × LGD × EAD discounted at the effective interest rate across base, upside and downside scenarios (5.5.17-5.5.19). Returns the loss allowance, impairment charge, interest basis and journal.

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": {
      "grossCarryingAmount": "<grossCarryingAmount>",
      "effectiveInterestRate": "<effectiveInterestRate>",
      "lifetimePdAtOrigination": "<lifetimePdAtOrigination>",
      "lifetimePdNow": "<lifetimePdNow>",
      "pdCurve": "<pdCurve>"
    },
    "name": "ifrs9_expected_credit_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
lgdBaseNoLGD: base
pdCurveYesPD curve
lgdUpsideNoLGD: upside
weightBaseNoWeight: base
daysPastDueNoDays past due
lgdDownsideNoLGD: downside
exposureNameNoExposureCorporate loan
weightUpsideNoWeight: upside
lifetimePdNowYesLifetime PD (remaining term) now
sicrPdMultipleNoPolicy: SICR if lifetime PD has multiplied by at least
weightDownsideNoWeight: downside
existingAllowanceNoExisting loss allowance
grossCarryingAmountYesGross carrying amount
effectiveInterestRateYesEffective interest rate (discount rate, decimal) [IFRS 9.B5.5.44]
rebut30DayPresumptionNo30-day presumption rebutted with reasonable and supportable information [IFRS 9.5.5.11]
rebut90DayPresumptionNo90-day default presumption rebutted [IFRS 9.B5.5.37]
creditImpairedEvidenceNoObjective evidence of credit impairment (significant financial difficulty, default, concession, probable bankruptcy) [IFRS 9.Appendix A]
lifetimePdAtOriginationYesLifetime PD (remaining term) expected at origination [IFRS 9.5.5.9]
qualitativeSicrIndicatorNoQualitative SICR indicator (watchlist, forbearance, covenant breach) [IFRS 9.B5.5.17]
lowCreditRiskAtReportingDateNoLow credit risk at the reporting date (e.g. investment grade) [IFRS 9.5.5.10]
originationLifetimeEclForPociNoPOCI: lifetime ECL at initial recognition [IFRS 9.5.5.13, IFRS 9.5.5.14]
purchasedOrOriginatedCreditImpairedNoPurchased or originated credit-impaired (POCI) [IFRS 9.5.5.13]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, closed-world read, so the bar for safety disclosure is low; the description instead adds genuine model behavior — the SICR trigger set, the 30-day and 90-day presumptions and their rebuttal, the low-credit-risk simplification, credit-impaired evidence, and the four returned artifacts (loss allowance, impairment charge, interest basis, journal). It does not disclose how conflicting or non-normalized scenario inputs are handled (e.g. whether scenario weights must sum to 1), which keeps it from a 5.

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?

Two sentences, front-loaded with the staging action before the measurement mechanics, and every clause carries substantive content (stage criteria, calculation method, return values). The dense parenthetical regulatory citations make it heavy to parse but nothing is redundant.

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

Completeness4/5

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

For a 22-parameter model with no output schema, the description names the return payload and lays out the staging determinants the caller needs to understand the result. Remaining gaps are input-consistency rules (weight normalization, PD curve term alignment) that a caller of a 22-param tool would reasonably want stated.

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

Parameters3/5

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

With 22 parameters at 100% schema description coverage, the schema already documents each field including its IFRS 9 citation, so baseline 3 applies. The description adds conceptual grouping — PD curve, scenario weights, LGD set, discount rate — but no per-parameter meaning or format guidance beyond what the schema states.

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

Purpose4/5

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

The description names a precise verb and resource: it stages an exposure (1/2/3/POCI) and measures 12-month and lifetime ECL via PD x LGD x EAD across three scenarios. That is far more specific than the title alone and tells an agent exactly what the tool computes. It stops short of a 5 because a sibling named ifrs9_poci exists and the description embeds POCI handling here without clarifying the boundary between the two.

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 is implied by the regulatory framing (staging plus measurement for an IFRS 9 impairment calculation), but the description never states when to choose this tool over ifrs9_poci, ifrs9_own_credit or ifrs9_modification, nor any prerequisites. The agent must infer routing from the sibling names rather than from the text.

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