Skip to main content
Glama

Boatwork - Marine Businesses MCP

update_custom_invoice_draft

Mutation/readOnly:false, script-tier/no-model-token action. Update an unsent draft custom invoice (line items, title, client/recipient, CC emails, due date/terms, markup display mode, payment method mode, adjustments, receipt links, overdue reminders, or note). Send only the fields you want to change; if you send items, send the full updated list. Sent/paid/void invoices cannot be edited. Call get_custom_invoice first to inspect the draft. Requires the Owner or Admin role. Storefront Pro.

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": {
      "invoiceId": "<invoiceId>",
      "proAccessToken": "<proAccessToken>"
    },
    "name": "update_custom_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional message shown to the client on the invoice, up to 500 characters.
dueAtNoExplicit due date/timestamp in ISO 8601 format (e.g. "2026-12-15"). Overrides dueDays when set.
itemsNoReplacement line items list (1 to 40). Omit to keep existing items unchanged.
dueDaysNoDays until due (0 = due on receipt, up to 90). Ignored if dueAt is provided.
ccEmailsNoUp to 5 additional CC email addresses (e.g. owner's bookkeeper or captain).
clientIdNoSaved client id from list_invoice_clients. Automatically fills defaults (email, terms, markup, CC, payment methods) unless overridden.
invoiceIdYesThe draft invoice id from list_custom_invoices.
requestIdNoOptional idempotency key so retrying the same create or send does not create duplicates.
saveClientNoSet true to save a new ad-hoc customer into the private invoice client directory when saving the draft.
customerNameNoClient/customer name shown on the invoice (required if clientId is not set).
invoiceTitleNoShort invoice title shown to the client (e.g. "December 2026 Yacht Management"), up to 140 characters.
adjustmentIdsNoOptional saved shop adjustment ids (from list_adjustments, e.g. sales tax or discount), up to 20.
customerEmailNoClient/customer email where the invoice will be sent (required before sending if clientId is not set).
proAccessTokenYesThe proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours.
clientVesselNameNoVessel name to store on the client record when saveClient is true.
autoRemindOverdueNotrue = automatically email overdue reminders if this invoice goes past due.
markupDisplayModeNo'separate_line' shows reimbursable markup on its own line; 'included_in_line' folds markup into each line.
paymentMethodModeNoPayment methods allowed on the Stripe invoice: 'card_and_ach', 'card_only', or 'ach_only'.
includeReceiptLinksNotrue = include links to attached receipts on the invoice email/page.
clientVesselLengthFtNoVessel length in whole feet (1–500) to store on the client record when saveClient is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it declares mutation semantics ('Mutation/readOnly:false'), role and plan gating, immutability of sent/paid/void invoices, and patch behavior ('Send only the fields you want to change; if you send items, send the full updated list'). These are exactly the traits an agent needs before issuing a write.

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 mutation/execution-tier marker, then scope, then constraints, then prerequisites — good ordering. The long parenthetical list of editable fields partly restates the schema, but it is compressed into one clause and aids scanning rather than bloating the text.

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

Completeness4/5

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

For a 20-parameter mutation with no annotations and no output schema, the description covers safety profile, permissions, plan requirement, state constraints, and update semantics. Return shape is undocumented, but that is a minor gap since the tool's purpose is to persist a draft and callers can re-read via get_custom_invoice.

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 would be 3, but the description adds non-obvious patch semantics: omitted fields are preserved while items, if supplied, replace the entire list. That replacement-vs-merge distinction is not stated in the schema and prevents a common data-loss error.

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 precise verb and resource ('Update an unsent draft custom invoice') and enumerates the editable surface (line items, title, client/recipient, CC emails, due date, markup display, payment method mode, adjustments, receipt links, reminders, note). The 'draft/unsent' qualifier plus sibling names like send_custom_invoice and delete_custom_invoice_draft let an agent place it without ambiguity.

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?

Explicit preconditions and exclusions: 'Sent/paid/void invoices cannot be edited' and 'Call get_custom_invoice first to inspect the draft', plus the Owner/Admin role and Storefront Pro gates. It does not name the creation sibling as an alternative for non-existent drafts, but the when-not-to-use guidance is clear.

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