Skip to main content
Glama

Boatwork - Marine Businesses MCP

preview_custom_invoice

Read-only, script-tier/no-model-token check. Calculate the exact pricing preview for a custom client invoice (itemized lines, reimbursable markup, saved adjustments, service fee, platform fee, due date, and total in cents) WITHOUT saving a draft or emailing the client. Call this to confirm totals before create_custom_invoice_draft or send_custom_invoice. 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": "preview_custom_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueAtNoExplicit due date/timestamp in ISO 8601 format (e.g. "2026-12-15"). Overrides dueDays when set.
itemsYesLine items to price (1 to 40). Prices in cents; markups in basis points.
dueDaysNoDays until due (0 = due on receipt, up to 90). Ignored if dueAt is provided.
clientIdNoSaved client id from list_invoice_clients. Automatically fills defaults (email, terms, markup, CC, payment methods) unless overridden.
customerNameNoClient/customer name shown on the invoice (required if clientId is not set).
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.
markupDisplayModeNo'separate_line' shows reimbursable markup on its own line; 'included_in_line' folds markup into each line.

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 exist, so the description must carry the burden, and it does disclose side-effect-free behavior ('WITHOUT saving a draft or emailing'), authorization level (Owner or Admin), plan gating (Storefront Pro), and a script-tier/no-model-token characteristic. Gaps remain around return shape details and rounding/error behavior, so it falls short of fully covering a complex pricing tool.

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 read-only nature, then purpose, then usage routing, then requirements — a sensible ordering. It is dense but each clause carries information; the 'script-tier/no-model-token check' phrasing is jargon that adds little for most agents.

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 9-parameter tool with no output schema and no annotations, the description covers the key operational facts: what is computed, that nothing is persisted or sent, auth and plan requirements. It does not describe the response structure beyond 'total in cents' or how adjustments/fees are surfaced, leaving a minor gap.

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 100%, so the schema already documents all 9 parameters in detail, including enum meanings and units. The description only summarizes categories (itemized lines, markup, saved adjustments, due date), adding little beyond what the schema states; baseline 3 applies.

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 — 'Calculate the exact pricing preview for a custom client invoice' — and enumerates what is priced (lines, reimbursable markup, adjustments, service fee, platform fee, due date, total in cents). The 'WITHOUT saving a draft or emailing the client' clause separates it cleanly from create_custom_invoice_draft and send_custom_invoice.

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?

'Call this to confirm totals before create_custom_invoice_draft or send_custom_invoice' gives an explicit trigger and names the two downstream siblings it precedes. Combined with the read-only/no-side-effects framing, an agent can decide when to use it versus committing a draft.

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