Skip to main content
Glama

Invoice finished jobs

invoice_jobs

Make one open invoice per finished job — up to 50 at a time — from each job’s billable line items, materials, unbilled labor and approved change orders, posted to the books. Call list_jobs_to_invoice first and use its ids; only ready jobs can be invoiced. Usually queued for the account holder to approve (read staged). It does NOT email the invoices to anyone, and no money moves; a job that fails does not stop the others, and the result says which were invoiced.

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": {
      "job_ids": "<job_ids>"
    },
    "name": "invoice_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsYes

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
failedNo
stagedNoTRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done.
messageNo
resultsNo
batch_idNo
draft_idNoThe staged proposal's id, when it was queued rather than performed.
invoicedNo
not_sentNo
requestedNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses batching limit (50 at a time), that posting hits the books, that the run is typically queued for approval and the caller should read `staged`, that no email is sent and no money moves, and crucially that partial failure is isolated ('a job that fails does not stop the others') with per-job results reported. This is exactly the non-obvious operational context annotations cannot convey.

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 core action, then prerequisites, then the 'does NOT' exclusions and failure semantics — a sensible priority order with no filler. The em-dash and semicolon chaining makes a few sentences dense, but every clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter batch mutation with an output schema available, the description covers the prerequisite call, eligibility filter, batch limit, approval/staging flow, side-effect exclusions, and partial-failure reporting. An agent has everything needed to decide to call it and interpret the outcome without reading further.

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 0% for the single `job_ids` parameter, so the description must carry the meaning — and it does, specifying that the ids come from `list_jobs_to_invoice`, that only `ready` jobs qualify, and that the batch is capped. It does not describe the item type or ordering of the array, but the essential provenance and constraint are supplied.

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 artifact ('make one open invoice per finished job') plus the source components (billable line items, materials, unbilled labor, approved change orders) and the posting destination. It also distinguishes itself from the sibling that must precede it by naming `list_jobs_to_invoice` and restricting input to `ready` jobs.

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 an explicit ordering prerequisite ('Call `list_jobs_to_invoice` first and use its ids') and a hard eligibility constraint ('only `ready` jobs can be invoiced'), plus a note that results are usually staged for the account holder to approve. It stops short of contrasting with write siblings like `create_invoice` or `invoice_billable_work`, so the alternative-selection guidance is implicit rather than complete.

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