Skip to main content
Glama
ifrs15-revenue-agent

ifrs15-revenue-agent

by jabran

IFRS 15: Sale with a right of return (B20-B27)

ifrs15_right_of_return
Read-onlyIdempotent

Recognise revenue only for products not expected to be returned, and calculate the refund liability and right-to-recover asset at former carrying amount less recovery costs under IFRS 15.

Instructions

For products sold with a right of return, recognises revenue only for products not expected to be returned (expected value, subject to the constraint), a refund liability for the consideration expected to be refunded, and an asset for the right to recover products measured at former carrying amount less expected recovery costs, with cost of sales reduced accordingly.

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": {
      "unitsSold": "<unitsSold>",
      "pricePerUnit": "<pricePerUnit>",
      "costPerUnit": "<costPerUnit>",
      "expectedReturnRate": "<expectedReturnRate>"
    },
    "name": "ifrs15_right_of_return"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsSoldYesUnits sold
costPerUnitYesCost per unit (inventory carrying amount)
pricePerUnitYesPrice per unit
expectedReturnRateYesExpected return rate (after applying the constraint) [IFRS 15.56, IFRS 15.B23]
recoveryCostPerUnitNoExpected cost to recover each returned unit, including value impairment [IFRS 15.B25]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral value by stating what the computation yields (net revenue, refund liability, recovery asset, reduced cost of sales), but with no output schema it does not describe the shape or naming of those results, which is what an agent most needs.

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?

A single dense sentence with no filler; the applicability condition is front-loaded and every clause carries accounting content. The run-on structure and heavy jargon make it harder to parse than it needs to be, but nothing is wasted.

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 five-parameter computation tool with no output schema, the description covers the accounting mechanics and the role of the optional recovery cost adequately. It is only slightly short on describing the returned figures or how defaults behave.

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 coverage is 100%, so baseline is 3. The description does add some meaning, tying recoveryCostPerUnit to 'former carrying amount less expected recovery costs' and noting the expected return rate is already 'after applying the constraint', but it does not map the core inputs (unitsSold, pricePerUnit, costPerUnit) to the outputs they drive.

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 specific accounting computation ('recognises revenue only for products not expected to be returned … a refund liability … an asset for the right to recover products') rather than restating the title. An agent can tell this is a right-of-return revenue/liability calculation, distinct from pricing or allocation siblings. It stops short of explicitly contrasting itself with siblings such as ifrs15_transaction_price.

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?

The opening clause 'For products sold with a right of return' implies the applicability condition, which is a weak form of when-to-use. There is no guidance on when to prefer another tool, no stated prerequisites, and no note on what to do when returns are not expected.

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