Skip to main content
Glama

Add or edit a ledger line

save_ledger_item
Destructive

Add a line to a gig's finances as the Finances tab in the app does, or edit an UNPAID one. Without ledger_item_id this adds a line: ledger_type, amount, description and date are required. ledger_type is INCOME (money received), RECEIVABLE (an invoice/what a client owes), EXPENSE (money spent), or PAYABLE (a cost or payout still owed — set counterparty_user_id or counterparty_name). amount is positive in the item's currency (default USD); date is the civil day YYYY-MM-DD. account_id is resolved automatically when the org has one account of the matching type; otherwise pick one from list_ledger_accounts. INCOME and EXPENSE are created PAID and cannot then be edited; RECEIVABLE and PAYABLE start UNPAID, so to log a cost or income that has not changed hands yet, use PAYABLE or RECEIVABLE. With ledger_item_id (from get_event_ledger) it edits that line: each field you pass overwrites the stored value, fields you leave out are unchanged, and counterparty_user_id, assigned_to_user_id, counterparty_name or notes as "" clear them. Only UNPAID lines can be edited: a PAID line is refused, so undo a manually recorded payment with reverse_ledger_payment first. A line that belongs to an invoice or an overtime entry refuses changes to its amount, currency, date, description, type, tax or counterparty; change the invoice or overtime entry in the Soundcheck app instead. Bookkeeping only: no money moves and nobody is notified. Use record_ledger_payment for payments already made outside Soundcheck; settle_event only closes the gig after payouts are settled and does not pay lines. Members see only items involving them; admins/owners see all. When the organization has QuickBooks Online connected, the change is also sent to QuickBooks. Runs on the first call; there is no confirmation step.

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": {
      "event_id": "<event_id>"
    },
    "name": "save_ledger_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNocivil day YYYY-MM-DD (required when adding)
notesNointernal notes; "" clears
amountNoamount of the line in its currency (required when adding)
currencyNoISO code, default USD
event_idYesthe gig whose ledger the line is on
tax_rateNotax rate as a percentage of amount, e.g. 8.25 for 8.25%
account_idNofrom list_ledger_accounts; auto-resolved when adding without one
descriptionNowhat the line is for (required when adding)
ledger_typeNokind of finance line; give it when adding
invitation_idNowhen adding: link a PAYABLE to a gig invitation
tax_inclusiveNotrue when amount already includes the tax; false when the tax is added on top
ledger_item_idNoedit this ledger item (id from get_event_ledger); omit to add a line
budget_categoryNowhen adding: budget bucket label
organization_idNodefaults to caller's active org; must be the event's org
counterparty_nameNofree-text counterparty when not a user; "" clears
assigned_to_user_idNomember responsible for the line; "" clears
counterparty_user_idNothe person paid (PAYABLE) or paying (RECEIVABLE), by user id; "" clears

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { crew_invoice, receipts [{ id, filename, content_type, size_bytes, url, uploaded_at, can_delete }], can_upload_receipts, account { external_id, external_provider, id, is_system, name, type }, account_id, amount, assigned_to_user_id, budget_category, can_mark_received, can_undo_received, counterparty_name, counterparty_user_id, created_by, crew_offer_id, currency, date, description, event_id, and 14 more fields } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent reads, and the description adds substantial context beyond them: no confirmation step, runs on the first call, changes sync to QuickBooks when connected, PAID lines are refused, invoice/overtime-linked lines refuse field changes, and members only see items involving them. The only gap is that it doesn't spell out what 'destructive' concretely means for an overwrite beyond the per-field clearing rules, which it does largely cover.

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?

Front-loaded with the add-vs-edit split before the detail, and nearly every sentence carries operational information. It is a dense wall of text with several clauses packed per sentence, which slows scanning for an agent extracting a single rule.

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

Completeness5/5

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

For a 17-parameter mutation tool with an output schema, the description covers the required-field set for adding, account resolution, currency default, edit/clear semantics, permission scoping, and side effects like QuickBooks sync. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantic meaning: ledger_type values are mapped to their business meaning (INCOME = money received, PAYABLE = cost still owed) and to resulting status (INCOME/EXPENSE created PAID and uneditable, RECEIVABLE/PAYABLE start UNPAID). It also documents edit semantics — passed fields overwrite, omitted fields are unchanged, empty string clears — that the schema does not state.

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 specific verbs and resources — add a line to a gig's ledger or edit an unpaid one — and explicitly disambiguates the two modes via the presence of ledger_item_id. It also names the sibling tools (get_event_ledger, list_ledger_accounts) an agent would otherwise confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use record_ledger_payment for payments already made outside Soundcheck, settle_event only closes the gig and does not pay lines, and reverse_ledger_payment first to undo a manual payment before editing PAID lines. It also gives the positive case for PAYABLE/RECEIVABLE when money has not yet changed hands.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.