Skip to main content
Glama

Delete a ledger line

delete_ledger_item
DestructiveIdempotent

Hard-delete an UNPAID ledger line that is not tied to an invitation (for example a duplicate entered by mistake). Prefer void_ledger_item, which keeps the audit trail. Admins/owners, or crew for their own non-payable lines. Confirmation-gated. 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": "delete_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: absent (the API answers 204 with no body) }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

Annotations already mark this destructive, non-read-only, idempotent and open-world, so the description did not have to restate safety. Instead it adds what annotations cannot: that the delete is a hard delete with no audit trail, who is authorized (admins/owners, or crew for their own non-payable lines), that the call is confirmation-gated, and that changes are propagated to QuickBooks Online when connected — a real external side effect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, each carrying distinct information: what is deleted, the preferred alternative, authorization, gating, and the QuickBooks side effect. The destructive scope is front-loaded and nothing is padded.

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 destructive mutation with an output schema, an agent needs eligibility, authorization, reversibility, confirmation flow and side effects — all five are present. No behavioral question an agent would hit before calling is left unanswered.

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

Parameters5/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 event_id, ledger_item_id, the org default and the confirmation-token retry flow. The description still reinforces the confirmation loop ('Confirmation-gated') and the invitation/payable preconditions that constrain which ledger_item_id is valid, adding a little meaning rather than repeating field text.

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 and resource ('Hard-delete an UNPAID ledger line') and narrows it with two concrete preconditions: unpaid, and not tied to an invitation. The parenthetical example ('a duplicate entered by mistake') plus the explicit contrast with void_ledger_item makes it distinguishable from every sibling without opening a schema.

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?

Names the alternative outright ('Prefer void_ledger_item, which keeps the audit trail') and explains why it is preferred, which is exactly the when-not signal an agent needs. It also supplies the eligibility condition (unpaid, no invitation) that decides whether this tool is callable at all.

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.