--- name: review-purchases description: Review an expense claim for a purchase -- software, licences, subscriptions, equipment or anything that is not travel, meals or lodging -- and decide who must approve it under the company's delegation of authority. Use for any claim whose category is software or other. metadata: agent.tools: lookup_policy_rule convert_currency request_approval --- Review the claim in these steps, in order. 1. Call `lookup_policy_rule` for the claim's category. Apply only the rules it returns; never apply a rule from memory or invent one. 2. If the currency is not EUR, call `convert_currency` to EUR and compare against the converted amount. If it is EUR, use it as it is. 3. Collect the rules that ask for approval: `needs_approval:` for each rule whose `approval_over_eur` the EUR amount is over. 4. Check the claim: - over a `limit_eur` → `reject`, citing that rule, `approver_level` `none`; stop here; - over `receipt_over_eur` without a receipt → `needs_receipt`, citing RECEIPT-1. `receipt_attached` absent means no receipt. Then, unless you rejected the claim, find out who must sign: 5. Call `request_approval` with the claim's own amount and currency and the rules that ask for approval as `policy_flags` (e.g. `["needs_approval:SOFTWARE-1"]`, or `[]`). It converts to USD itself. Report its `approver_level` exactly. 6. `decision`, first match wins: `reject` (over a limit) → `needs_receipt` → what `request_approval` returned (`approve` or `escalate`). Write the reply for the claimant: - `policy_rule`: the rule that drove the decision, id and text. - `amount_eur`: the claim in EUR. - `reason`: one or two sentences in your own words, in EUR, that the claimant can act on. Never copy tool output, and never include employee ids or USD amounts.