Skip to main content
Glama

Gig invoices

list_invoices
Read-onlyIdempotent

List a gig's invoices, drafts included, newest first, with their lines and totals, or pass invoice_id to read just that invoice with its send or void status. Creating, sending, voiding and recording payments stay in the web app, because sending emails the client and posts receivables. Needs permission to see the gig's money. Money fields are decimals.

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": "list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
event_idYesthe gig (event) id, from list_events, open_gigs or my_agenda
invoice_idNoread this one invoice instead of listing (id from a previous list)

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { invoices: [{ id, event_id, number, status (DRAFT, SENT, VOID), customer_name, customer_email, billing_address, po_reference, collection_method, currency, issue_date, due_date, payment_terms, discount_amount, subtotal, tax_total, total, notes, sent_at, sent_to_email, voided_at, lines [{ id, description, quantity, unit_amount, tax_rate, amount, ledger_item_id, ledger_status }], created_at, updated_at }] }, or { invoice } with invoice_id }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real behavioral context beyond them: drafts are included, results are newest first, money values are decimals, and access requires permission to see the gig's money. That is substantive added value over the structured fields.

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?

Three sentences, front-loaded with the primary list behavior and the invoice_id alternative, followed by the mutation-boundary note and the permission caveat. The rationale clause about emails and receivables is slightly wordy but earns its place by preventing attempts to mutate through this tool.

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?

An output schema covers return values, so the description doesn't need to explain them. It supplies ordering, draft inclusion, decimal money semantics, permission requirements, and clear mutation boundaries — everything an agent needs to call a two-parameter read tool correctly.

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 coverage is 100%, so the baseline is 3, but the description goes further by explaining that invoice_id switches the tool from list mode to single-record mode and returns send/void status, which the schema description does not say. It also clarifies that event_id scopes to one gig.

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?

The description gives a specific verb (list) and resource (a gig's invoices) and covers both operating modes: a full list including drafts ordered newest first with lines and totals, or a single invoice read via invoice_id. The scoping to a gig clearly separates it from an accounting-wide invoice list such as list_quickbooks_invoices.

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

Usage Guidelines4/5

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

It states the two modes and what selects each (pass invoice_id to read one instead of listing), and it explicitly rules out creating, sending, voiding, and recording payments, explaining that those live in the web app. It also flags the permission prerequisite. The only gap is that it doesn't point to a sibling tool for cross-accounting invoice queries.

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.