Skip to main content
Glama
ifrs15-revenue-agent

ifrs15-revenue-agent

by jabran

IFRS 15: Step 4: allocation (73-86)

ifrs15_allocation
Read-onlyIdempotent

Allocates a transaction price to performance obligations under IFRS 15 using relative stand-alone selling prices, handling discounts, residual amounts, and variable consideration.

Instructions

Allocates the transaction price to performance obligations on a relative stand-alone selling price basis (74-80), with the residual approach for one obligation where permitted (79(c)), a discount allocated proportionately or to specific obligations when observable evidence supports it (81-83), and variable consideration allocated entirely to one obligation when its terms relate specifically to it (84-86).

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": {
      "transactionPrice": "<transactionPrice>",
      "obligations": "<obligations>"
    },
    "name": "ifrs15_allocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNoContractContract
obligationsYesObligations
variableAmountNoVariable consideration to allocate specifically (0 if none) [IFRS 15.85]
transactionPriceYesTransaction price (including variable amount)
discountRelatesToNoObligations the discount relates to (comma-separated)
discountAllocationNoDiscount allocation Options: proportionate (Proportionately to all obligations (81)); specific (To specific obligations (82: observable evidence))proportionate
variableAllocatedToNoObligation the variable amount relates to

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?

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds meaningful behavioral context beyond annotations by explaining the allocation logic, conditions for residual approach, discount allocation methods, and variable consideration treatment, though it does not discuss error handling or output format.

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?

The description is a single dense sentence that front-loads the main purpose and then enumerates the specific allocation rules. Every clause corresponds to a distinct IFRS 15 provision and earns its place, though the sentence is long and could be slightly easier to scan with internal structure.

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 complex accounting allocation tool with seven parameters and no output schema, the description covers the major allocation methods and conditions well enough for correct invocation. It does not explain the return value structure or edge-case behavior (e.g., what happens if residual is set on multiple obligations), but the input logic is largely complete.

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%, so the schema already documents all seven parameters thoroughly, including enums and defaults. The description mentions key concepts like residual approach and discount allocation, but adds no syntax, format, or validation details beyond what the schema already provides. Baseline 3 applies.

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 states a specific verb ('Allocates') and resource ('transaction price to performance obligations'), with precise scope covering IFRS 15 paragraphs 73-86. It does not explicitly differentiate from sibling tools like ifrs15_transaction_price or ifrs15_performance_obligations, but the title and content make its role in Step 4 clear enough for an agent to identify it.

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 description implies when to use the tool by describing its allocation scenarios—relative SSP, residual approach, discount allocation, and variable consideration allocation. However, it provides no explicit when-to-use vs. when-not-to-use guidance or named alternatives, leaving the agent to infer from the accounting context.

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