Skip to main content
Glama

Manage invoices

invoices_manage
Destructive

Invoices. save_draft (create, or edit by id), issue (numbers it; final), send (emails it; confirm), void, public_link (a pay link; revoke), credit_note (amount + reason; final), send_credit_note / void_credit_note (creditNoteId), recurring (frequency + nextRunDate, autoSend emails each; stop). Confirm anything final or sent.

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": {
      "action": "<action>"
    },
    "name": "invoices_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRequired for: issue, send, void, public_link, credit_note, recurring; optional for: save_draft. Edit this draft.
toNoDefault: profile billing email, then the contact's email.
stopNorecurring: end the schedule.
linesNoitemId (saved item) or name + unitPrice. Decimal strings. taxIds: which of the taxes apply (default all).
notesNo
taxesNo[{id?,name,rate}], e.g. GST 5 + QST 9.975 (ids t1,t2…).
termsNo
actionYes
amountNocredit_note: before tax, e.g. "50.00".
reasonNocredit_note: printed on it.
revokeNopublic_link: turn the link off.
taxIdsNocredit_note: which of the invoice's taxes it carries (default all).
chargesNoBelow the subtotal (shipping); negative for a discount or deposit.
dueDateNoYYYY-MM-DD. Default from profile terms.
endDateNorecurring: YYYY-MM-DD, or omit for no end.
messageNoA note above the invoice in the email.
sendViaNoDefault: their own mailbox, then Resend, then Groundbase's address.
subjectNoDefault: the invoice settings subject.
taxRateNocredit_note: percent, e.g. "13".
autoSendNorecurring: email each copy to the customer. Confirm with the user.
currencyNoISO 4217. Defaults from the billing profile.
attachPdfNoDefault true; false sends the link only.
companyIdNo
contactIdNoCreate: one of contactId/companyId.
frequencyNo
fromEmailNoSend from this address: a mailbox or send-as alias (email_read accounts).
issueDateNoYYYY-MM-DD. Default today.
nextRunDateNorecurring: YYYY-MM-DD, today or later.
confirm_paidNoVoid even though payments or credit notes are recorded on it. Only after the user has confirmed. Default false.
creditNoteIdNoRequired for: send_credit_note, void_credit_note.
billingProfileIdNoBill to this profile (billing_profiles_manage list). Default: the customer's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / attachPdf
      Added value: +{
      +  "description": "Default true; false sends the link only.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / billingProfileId
      Added value: +{
      +  "description": "Bill to this profile (billing_profiles_manage list). Default: the customer's.",
      +  "type": "string"
      +}
    • addedInput schema / properties / charges / items / properties / taxIds
      Added value: +{
      +  "description": "Which of the document taxes apply (default none).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / fromEmail
      Added value: +{
      +  "description": "Send from this address: a mailbox or send-as alias (email_read accounts).",
      +  "type": "string"
      +}
    • addedInput schema / properties / taxIds
      Added value: +{
      +  "description": "credit_note: which of the invoice's taxes it carries (default all).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / charges / description
      Previous value: -"Charges below the subtotal (shipping, rush fee); a negative amount for a deposit or discount."New value: +"Below the subtotal (shipping); negative for a discount or deposit."
    • removedInput schema / properties / charges / items / properties / amount / description
      Removed value: -"Decimal string."
    • changedInput schema / properties / lines / description
      Previous value: -"Line items: itemId (saved item, priced in this currency) or name + unitPrice for a one-off. Amounts are decimal strings."New value: +"itemId (saved item) or name + unitPrice. Decimal strings. taxIds: which of the taxes apply (default all)."
    • removedInput schema / properties / lines / items / properties / quantity / description
      Removed value: -"e.g. \"1.5\"."
    • addedInput schema / properties / lines / items / properties / taxIds
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / lines / items / properties / taxRate / description
      Removed value: -"Percent, e.g. \"17.5\". Defaults from the item."
    • addedInput schema / properties / taxes
      Added value: +{
      +  "description": "[{id?,name,rate}], e.g. GST 5 + QST 9.975 (ids t1,t2…).",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / creditNoteId / description
      Added value: +"Required for: send_credit_note, void_credit_note."
    • changedInput schema / properties / id / description
      Previous value: -"Edit this draft. Omit to create."New value: +"Required for: issue, send, void, public_link, credit_note, recurring; optional for: save_draft. Edit this draft."
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds per-action side effects the schema does not surface at a glance: issue assigns a number and is irreversible, send actually emails the customer, public_link mints a revocable pay link, recurring auto-emails each generated copy on a schedule. It still omits permission requirements and failure behavior, so not a full 5.

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?

Extremely dense with essentially zero filler, and the action semantics are front-loaded before any subordinate detail. The telegraphic parenthetical style ('void', 'recurring (frequency + nextRunDate, autoSend emails each; stop)') trades some readability for compactness, but no sentence is wasted.

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

Completeness3/5

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

For a 9-action destructive tool with 31 parameters and no output schema, the definition conveys action semantics well but never says what an action returns (a draft id, a public link URL, a credit note id), nor what happens on invalid state transitions such as voiding an issued invoice. Adequate to select the right action, incomplete for operating it confidently.

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

Parameters3/5

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

Schema description coverage is 84%, so most parameters (id, amount, reason, creditNoteId, frequency, nextRunDate, stop) are already documented in the schema. The description echoes a few of those mappings (amount + reason for credit_note, creditNoteId for the credit-note actions) but adds little meaning beyond them, and the 31-parameter surface is only partially addressed.

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 names the resource and enumerates every action with a specific gloss: save_draft '(create, or edit by id)', issue '(numbers it; final)', send '(emails it; confirm)', public_link '(a pay link; revoke)', credit_note '(amount + reason; final)'. An agent can tell exactly what each action does without opening the schema, and the mutating lifecycle is clearly separated from the read-only sibling invoices_list.

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?

Guidance on when to use which action is embedded throughout ('issue ... final', 'send ... confirm', 'recurring ... autoSend emails each; stop') plus the closing rule 'Confirm anything final or sent.' That is actionable context, though it does not state when to prefer this tool over siblings such as invoices_list or invoice_payments_manage.

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.

Resources