Skip to main content
Glama

Void a ledger line

void_ledger_item
DestructiveIdempotent

Void a ledger line so it no longer counts toward the gig totals or settlement. The line stays on the gig marked VOIDED for the audit trail; it is not deleted. Use it for a mistaken or cancelled payout or receivable. Only UNPAID lines with no payment recorded can be voided: a PAID line (including INCOME and EXPENSE lines, which are created PAID) is refused, and a partly paid line is refused until reverse_ledger_payment removes its payments. A line that belongs to an invoice or an overtime entry is refused; void the invoice or overtime entry in the Soundcheck app instead. A void cannot be undone, so the user is asked to confirm first. No money moves and nobody is notified. Owner, Admin or Finance only. When the organization has QuickBooks Online connected, the change is also sent to QuickBooks.

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>",
      "ledger_item_id": "<ledger_item_id>"
    },
    "name": "void_ledger_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesthe gig the line belongs to, an id from list_events, open_gigs or my_agenda
ledger_item_idYesledger item id from get_event_ledger
organization_idNodefaults to caller's active org; must be the event's org
confirmation_tokenNoleave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the 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. Changed7 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / event_id / description
      Previous value: -"the gig the line belongs to"New value: +"the gig the line belongs to, an id from list_events, open_gigs or my_agenda"
    • addedInput schema / properties / event_id / minLength
      Added value: +1
    • addedInput schema / properties / ledger_item_id / minLength
      Added value: +1
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"when the tool asks first: { status: \"confirmation_required\", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the 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 } }"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds substantial context beyond them: the record is retained as VOIDED for audit, the action is irreversible and gated by a confirmation prompt, no money moves and no one is notified, role restrictions (Owner, Admin or Finance), and an external side effect when QuickBooks Online is connected.

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?

Core action and the non-deletion distinction are front-loaded, then preconditions, then side effects. Every sentence carries information, but it is one dense block that could be split so refusal rules and permission/QuickBooks notes are easier to scan.

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?

A destructive, irreversible mutation with an external sync is fully covered: preconditions, refusal cases, redirects to alternatives, confirmation requirement, permissions, and audit behavior. An output schema exists, so return values need not be described.

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. The description adds meaning the schema does not: it explains why the confirmation_token flow exists ('A void cannot be undone, so the user is asked to confirm first'), and the refusal rules clarify valid values for ledger_item_id beyond its schema note.

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 a specific verb+resource ('Void a ledger line') plus its effect on totals and settlement, and immediately distinguishes it from deletion ('stays on the gig marked VOIDED ... it is not deleted'), which separates it from the sibling delete_ledger_item.

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 names the intended case ('a mistaken or cancelled payout or receivable') and the exclusion conditions, and routes the agent elsewhere: 'a partly paid line is refused until reverse_ledger_payment removes its payments' and 'void the invoice or overtime entry in the Soundcheck app instead.' Alternatives and when-not conditions are both stated.

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.