Skip to main content
Glama

Boatwork - Marine Businesses MCP

create_custom_invoice_draft

Mutation/readOnly:false, script-tier/no-model-token action. Create an unsent draft custom client invoice. Does NOT email or charge the client — you can review, edit, or add expenses to it before calling send_custom_invoice. Pass either clientId (from list_invoice_clients) or customerName/customerEmail (optionally set saveClient:true to save them to the client directory). All amounts are whole cents; markups are basis points. 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": {
      "items": "<items>",
      "proAccessToken": "<proAccessToken>"
    },
    "name": "create_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.
itemsYesAt least one line item, up to 40. Prices in cents; markups in basis points.
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.
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.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does substantial work: it declares the mutation nature, that no email or charge occurs, the Owner/Admin role requirement, and the Storefront Pro entitlement. It stops short of describing what the created draft returns (e.g. an invoice id needed for a later send_custom_invoice call), which matters for chaining.

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 safety-critical fact (unsent, no email, no charge) before routing details, and every sentence carries signal. The opening 'Mutation/readOnly:false, script-tier/no-model-token action' is jargon-dense and slightly oblique, which keeps it out of the 5 band.

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 19-parameter mutation with no annotations and no output schema, the description covers purpose, side-effect scope, auth/role, entitlement, unit conventions, and client routing — enough to invoke it correctly. The remaining gap is the return value, which has no output schema to fall back on and is not described.

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 coverage is 100%, so per-field documentation is already complete and the baseline of 3 applies. The description does add cross-cutting conventions not obvious from individual fields — 'All amounts are whole cents; markups are basis points' — and clarifies the clientId vs customerName/customerEmail fork with saveClient:true, but these repeat what the schema entries already say.

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 — 'Create an unsent draft custom client invoice' — and immediately delimits it from send_custom_invoice by saying it does NOT email or charge. An agent can distinguish it from send_custom_invoice, update_custom_invoice_draft, and duplicate_custom_invoice without opening another 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?

Explicitly frames the create-then-review-then-send workflow ('you can review, edit, or add expenses to it before calling send_custom_invoice') and names the prerequisite and routing choice: pass either clientId from list_invoice_clients or customerName/customerEmail. Conditions and alternative paths are spelled out rather than implied.

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