Skip to main content
Glama

Invoice billable work

invoice_billable_work

Put chosen unbilled work on ONE new invoice for that customer, posted to the books. Call list_billable_work for the customer first and use its ids; a time entry with no rate needs one in rates. Usually queued for the account holder to approve (read staged). It creates and posts the invoice; it does NOT send it to the customer, and no money moves.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "invoice_billable_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNo
ratesNoHourly rate by time entry id, e.g. {"4412": 95}. Required for a time entry with no rate on file.
due_dateNoISO date.
time_idsNo
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
tax_totalNo
group_timeNoOne invoice line per time entry (default), or one per job.
customer_idNo
expense_idsNo
customer_refNoFor a job's customer who is not in the books yet (list_billable_work's customer_ref) — they are added as a customer.
invoice_dateNoISO date. Default today.
bill_line_idsNo
customer_emailNoOlder form of customer_ref; prefer customer_ref.
markup_percentNoOverride the markup on expenses and bill lines.

Output Schema

NameRequiredDescriptionDefault
idNoThe created or updated record's id, when the write was applied rather than staged.
noteNoWhy the result was truncated, when it was.
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.
draft_idNoThe staged proposal's id, when it was queued rather than performed.
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.2/5.0
Behavior4/5

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

Annotations only declare the generic profile (not read-only, not destructive, not idempotent), while the description adds genuinely new behavior: the invoice is created AND posted to the books, it is usually staged for account-holder approval, it is explicitly NOT sent to the customer, and no money moves. That scope disclosure is exactly what an agent needs before a mutation. It does not address duplicate-submission behavior, which matters given idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, front-loaded with the action and scope, then prerequisites, then approval behavior, then the explicit boundary ('does NOT send it'). No filler or restatement of the title.

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 14-parameter mutation with an output schema and annotations already present, the description covers the critical unknowns: id provenance, rate requirement, posting behavior, staging, and non-delivery. Remaining gaps (duplicate handling, how expenses/bill lines are sourced) are partly covered by the schema but not by the prose.

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?

The description adds real meaning for the load-bearing parameters: `time_ids` come from `list_billable_work`, `rates` is required for time entries lacking a rate, and `customer_ref` mirrors list_billable_work's field. But with 14 parameters and only 57% schema description coverage, much goes unexplained in the description (memo, tax_total, group_time, markup_percent, entity_id interplay), leaving the schema to carry the rest. It is a modest lift above the schema rather than full compensation.

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 with scope: 'Put chosen unbilled work on ONE new invoice for that customer, posted to the books.' The capitalization of ONE and the phrase 'chosen unbilled work' distinguish it from sibling tools like create_invoice, invoice_jobs, and invoice_estimate that an agent might otherwise confuse it with.

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 a clear prerequisite workflow: call `list_billable_work` first and use its ids, plus a specific edge-case rule that rateless time entries need a value in `rates`. It also flags the typical approval-queue outcome ('read `staged`'). It stops short of naming when to use a different invoicing sibling instead, so it is strong context without full alternative routing.

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