Skip to main content
Glama

Boatwork - Marine Businesses MCP

generate_monthly_invoice_drafts

Mutation/readOnly:false, script-tier/no-model-token action. Generate monthly billing draft invoices for every active client who has a monthlyRateCents or standing recurringItems. Clients that already have a draft or invoice for that billing month are skipped safely. Creates DRAFTS ONLY — nothing is emailed or charged until you send them with send_custom_invoice or bulk_send_custom_invoices. 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": {
      "proAccessToken": "<proAccessToken>"
    },
    "name": "generate_monthly_invoice_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetMonthNo'current' (default) builds drafts for the current month; 'next' builds drafts for next month.
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, the description carries the full burden and does so: it declares the write nature, idempotent skipping of existing drafts/invoices, that nothing is emailed or charged, the required Owner/Admin role, and the Storefront Pro plan gate. These are exactly the behavioral facts an agent needs before invoking a mutating batch job.

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 action and eligibility, then prerequisites and the draft-only safety note, all in four tight sentences. The leading 'Mutation/readOnly:false, script-tier/no-model-token action' meta-tag is slightly cryptic internal shorthand but still informative.

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?

Covers who may call it, which clients are included or skipped, and what happens downstream, which is enough for a two-parameter batch mutation with no output schema. It does not describe what the response reports (e.g., counts of created vs skipped drafts), a minor remaining 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 coverage is 100%, with targetMonth's enum values and proAccessToken's origin/24-hour lifetime already documented in the schema. The description adds only a restatement that the month scopes which billing period is built, so the 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 ('Generate monthly billing draft invoices') plus the exact eligibility rule (active clients with monthlyRateCents or standing recurringItems). It explicitly separates itself from the sending siblings (send_custom_invoice, bulk_send_custom_invoices) by emphasizing 'Creates DRAFTS ONLY'.

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 clear trigger conditions (recurring monthly clients) and a safe-skip rule, plus the explicit next step of sending with the two send tools. It stops short of naming when to prefer the single-client alternative (create_custom_invoice_draft), so a small inference remains.

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