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: Hedge effectiveness & accounting

ifrs9_hedge_accounting
Read-onlyIdempotent

Checks IFRS 9 hedge qualifying criteria and computes periodic fair value or cash flow hedge accounting, including OCI, ineffectiveness, and basis adjustments.

Instructions

Checks the IFRS 9 qualifying criteria (6.4.1: designation and documentation, economic relationship, credit risk not dominant, hedge ratio) and computes, period by period, the accounting for a fair value hedge (6.5.8: instrument and hedged item gains or losses in profit or loss, basis adjustment) or a cash flow hedge (6.5.11: 'lower of' test for the cash flow hedge reserve, OCI and ineffectiveness in profit or loss). Shows a dollar-offset ratio as a diagnostic only.

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": {
      "periods": "<periods>"
    },
    "name": "ifrs9_hedge_accounting"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodsYesPeriods
hedgeTypeNoType [IFRS 9.6.5.2] Options: cash_flow (Cash flow hedge); fair_value (Fair value hedge)cash_flow
relationshipNoHedge relationshipInterest rate swap hedge
creditRiskDominatesNoEffect of credit risk dominates the value changes [IFRS 9.6.4.1(c)(ii), IFRS 9.B6.4.7]
hedgeRatioMatchesRiskManagementNoHedge ratio equals that used for risk management (no deliberate imbalance) [IFRS 9.6.4.1(c)(iii), IFRS 9.B6.4.9]
economicRelationshipDemonstratedNoEconomic relationship demonstrated (values move in opposite directions due to the hedged risk) [IFRS 9.6.4.1(c)(i), IFRS 9.B6.4.4]
designatedAndDocumentedAtInceptionNoFormally designated and documented at inception [IFRS 9.6.4.1(b)]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so safety needs no restating. The description adds genuine behavioral value beyond that: it names the two parallel accounting paths driven by hedgeType, discloses the 'lower of' test for the cash flow hedge reserve, and explicitly frames the dollar-offset ratio as diagnostic only rather than a determinant of the accounting — a material distinction. It stops short of saying what is returned when criteria fail, which is the one real behavioral gap.

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 criteria check before the computation, and the closing caveat about the dollar-offset ratio is short and well placed. The first sentence is long and citation-dense, but each clause carries distinct information, so it is dense rather than wasteful.

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

Completeness3/5

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

This is a 7-parameter computational tool with no output schema, so the description bears extra weight. It explains the computation logic and mentions one output (the dollar-offset ratio) but never sketches the returned structure for the P&L, OCI or basis-adjustment amounts, nor what happens when the 6.4.1 criteria fail — leaving an agent unable to predict the response shape.

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?

Schema description coverage is 100% and each parameter already carries its IFRS citation and default, so the baseline of 3 applies. The description adds only light context — that hedgeType selects the fair value versus cash flow computational path and that the four booleans correspond to the 6.4.1 criteria — rather than new syntax or format detail.

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 and resource: it checks IFRS 9.6.4.1 qualifying criteria and computes period-by-period hedge accounting under 6.5.8 (fair value) or 6.5.11 (cash flow, lower-of test). This is unmistakably distinct from the sibling tools (classification, derecognition, ECL, modification), none of which cover hedge effectiveness or hedge accounting mechanics.

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 only implied: an agent can infer it applies when hedge relationship data (periods, hedgeType, criteria flags) is available. There is no explicit statement of when to prefer this over alternatives, and no guidance on what to do if the qualifying criteria are not met or how to handle a hedging relationship that fails the criteria mid-life.

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