Skip to main content
Glama

Boatwork - Marine Businesses MCP

log_invoice_expense

Mutation/readOnly:false, script-tier/no-model-token action. Log a reimbursable expense (parts, fuel, haul-out, subcontractor bill, etc.) onto a client's open draft invoice — or automatically start a new draft invoice if the client has no open draft yet. Uses the client's defaultMarkupBps unless markupBps is specified (pass 0 for no markup). Call list_invoice_clients first for the clientId. Nothing is emailed to the client. 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": {
      "clientId": "<clientId>",
      "description": "<description>",
      "amountCents": "<amountCents>",
      "proAccessToken": "<proAccessToken>"
    },
    "name": "log_invoice_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxableNoWhether percentage adjustments (e.g. sales tax) apply to this expense line.
clientIdYesThe client id from list_invoice_clients.
quantityNoQuantity (default 1, supports decimals, max 1,000).
markupBpsNoOverride markup in basis points (1500 = 15%, 0 = no markup). Omit or pass null to use the client's defaultMarkupBps.
vendorRefNoOptional vendor name or receipt/invoice reference, up to 80 characters.
amountCentsYesUnit expense cost in whole cents (e.g. 18550 = $185.50; max $100,000.00).
attachmentsNoOptional receipt attachments, up to 10.
descriptionYesExpense description shown on the invoice, 1 to 160 characters (e.g. "Impeller kit & zinc anodes").
expenseDateNoOptional date of the expense in YYYY-MM-DD format.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares mutation semantics and readOnly:false, discloses the side effect of auto-creating a draft invoice, states nothing is emailed to the client, and specifies authorization (Owner/Admin) and plan gating (Storefront Pro). It also explains the 24-hour proAccessToken scope, which an agent needs before calling.

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 operation and its side effect, followed by defaults, prerequisite call, and auth constraints; nearly every clause carries information. The leading "Mutation/readOnly:false, script-tier/no-model-token action" metadata prefix is slightly jargony, but it sets expectations efficiently.

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 10-parameter mutation with no output schema, the description covers preconditions, side effects, and defaults well. The main gap is that it never indicates what the call returns (e.g. a newly created draft invoice id or the expense line), which an agent would want when the side effect can spawn a new draft. Otherwise an agent has enough to invoke it correctly.

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 every one of the 10 parameters is already documented in the input schema, including the markupBps override and cents-based amountCents. The description mainly restates the markup default and the clientId source rather than adding new meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ("Log a reimbursable expense ... onto a client's open draft invoice") plus a secondary behavior (auto-starting a new draft when none exists). Names concrete examples of expense types (parts, fuel, haul-out, subcontractor bill) and is clearly distinguishable from sibling draft tools like update_custom_invoice_draft or add_charge.

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 actionable prerequisites: call list_invoice_clients first for the clientId, requires the Owner or Admin role, and requires Storefront Pro. It explains the markup default (client's defaultMarkupBps unless markupBps is given, pass 0 for none). It stops short of explicit when-not-to-use or named alternatives for other charge types, so it is clear context without exclusions.

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