Skip to main content
Glama

Boatwork - Marine Businesses MCP

send_custom_invoice

Mutation/readOnly:false, script-tier/no-model-token action. Finalize and email one draft custom invoice to the client (and any CC emails) with a Stripe Connect hosted payment link (card and/or ACH). Requires confirm:true — without it, returns a confirmation preview naming the invoice, recipient, and total and sends nothing. You may optionally include draft field updates in the same call. 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": "send_custom_invoice"
  }
}

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.
itemsNoOptional updated line items to apply right before sending.
confirmNoMust be true to finalize and email the invoice to the client. Omit to get a confirmation preview.
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.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden and does substantial work: it declares Mutation/readOnly:false, the confirm gate and its preview payload, the Owner/Admin role requirement, the Storefront Pro tier, and the external email side effect. It stops short of stating irreversibility, whether a sent invoice can be voided afterward, or any rate/idempotency behavior beyond the schema's own requestId field.

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-loads the mutation and confirm semantics before the role and plan constraints, and every sentence carries an operational fact. The opening 'script-tier/no-model-token action' is internal jargon that costs a clause without helping an agent decide or call correctly.

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 21-parameter mutation with no output schema and no annotations, the definition covers the decision-critical facts: the confirm gate, side effects, permissions, plan gating, and in-call updates. Return shape and post-send recovery (void/refund) are left implicit, which is the main remaining gap.

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 real meaning on top by explaining that the optional fields are applied as draft updates immediately before sending, and that the preview names invoice, recipient, and total. It does not add anything about ccEmails, paymentMethodMode, or the clientId vs ad-hoc customer precedence, which remain schema-only.

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 ('Finalize and email one draft custom invoice') plus scope ('one', the client and CC recipients) and the delivery mechanism (Stripe Connect hosted payment link for card and/or ACH). The word 'one' implicitly separates it from the sibling bulk_send_custom_invoices, and 'finalize and email' separates it from draft/preview siblings.

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?

Gives a clear when-to-use rule and a when-not-to-act fallback: without confirm:true it returns a preview and sends nothing, and it notes optional draft field updates can ride along in the same call. It does not explicitly name alternatives like preview_custom_invoice or resend_custom_invoice, so the agent must infer that a pure preview without an email path belongs elsewhere.

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