Skip to main content
Glama

Simpler.Asia

expense_create

Logs a new expense — amount_cents must be integer CENTS (a decimal string via amount also works, and category resolves to a category_id by name). A same-amount, same-UTC-day duplicate for the same user is refused as CONFLICT unless you resend identically with force: true. Status is honor-or-refuse: admin/owner creators land 'approved' by default (or may request it explicitly), everyone else always starts 'draft'. NEXT: expense_submit sends a draft into the approval queue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
costNoAlias of amount — same decimal money STRING parsing.
dateNoYYYY-MM-DD (omitted = today).
forceNoResend an identical expense_create with force: true to save it despite a same-amount, same-UTC-day duplicate match; omitted or false leaves the duplicate check refusing with CONFLICT.
notesNo
totalNoAlias of amount — same decimal money STRING parsing.
amountNoDecimal money STRING ("23.50") — the platform converts; integer CENTS ($23.50 → 2350) via amount_cents is also accepted.
statusNo
vendorNo
categoryNoCategory by name or slug, e.g. 'food'.
currencyNo
ocr_jsonNo
tax_typeNo
tags_jsonNo
approved_atNo
approved_byNo
category_idNo
descriptionNoAlias of notes — used only when notes is not also supplied.
receipt_keyNo
rejected_atNo
amount_centsNo
expense_dateNo
submitted_atNo
tax_rate_bpsNo
category_nameNoAlias of category — resolves to category_id by name or slug.
recurrence_idNo
reimbursed_atNo
subtotal_centsNo
rejection_reasonNo
tax_amount_centsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources