Skip to main content
Glama

Finished jobs to invoice

list_jobs_to_invoice
Read-onlyIdempotent

Completed jobs that have no invoice yet, with what each would bill BEFORE tax (line items, materials, unbilled labor and approved change orders) and whether there is anything billable on it at all (ready). The ids are what invoice_jobs takes. The estimate is not the invoice total — tax is added when the invoice is made. A job that already has a live invoice is not listed.

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": "list_jobs_to_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch the job title or the customer.
limitNo

Output Schema

NameRequiredDescriptionDefault
jobsNo
noteNoWhy the list is empty or truncated, when it is.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
ready_countNo
reading_thisNo
total_availableNoHow many rows existed before truncation.
ready_total_before_taxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower — but the description adds genuinely new behavior: the returned amount is pre-tax ('The estimate is not the invoice total — tax is added when the invoice is made'), which directly prevents an agent from reporting a wrong total, and it discloses the exclusion rule for already-invoiced jobs. The `ready` flag is explained as whether anything is billable at all, a semantic an agent could not infer from the field name alone.

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 what the tool returns, followed by the pre-tax caveat and the exclusion rule, all in four dense sentences with no filler. The nested parenthetical listing the line-item categories is slightly heavy but carries real payload information. Nothing here is redundant with the title or annotations.

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?

An output schema exists, so the description is not obligated to explain return values, yet it usefully clarifies the two interpretation traps (pre-tax estimate, `ready` meaning). For a read-only, two-parameter listing tool this is close to complete; the only real gap is pagination/limit behavior, which the schema also fails to describe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: `q` is documented in the schema, but `limit` has only min/max bounds with no description. The description mentions neither parameter, so it neither reinforces search behavior (title vs. customer matching) nor explains pagination or the default/maximum result count. That leaves the under-documented half of the schema uncompensated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource and scope: 'Completed jobs that have no invoice yet', plus what the payload contains (line items, materials, unbilled labor, approved change orders) and the `ready` flag. It also carves out the boundary case — 'A job that already has a live invoice is not listed' — so an agent can tell it apart from a general job or billable-work listing. It stops short of an explicit verb like 'list', but the resource and filters are unambiguous.

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?

'The ids are what `invoice_jobs` takes' establishes the downstream step in the workflow, clearly signalling this is the pre-invoicing discovery call. It also states an exclusion (jobs with a live invoice are never returned), which prevents an agent from hunting for them here. There is no explicit 'use X instead when…' routing to a named alternative, which keeps it below a 5.

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