Skip to main content
Glama

Unbilled billable work

list_billable_work
Read-onlyIdempotent

Time and costs that should be recharged to a customer and have not been invoiced. With no customer: one row per customer with hours, amounts and a total. With customer_id (or customer_ref, from the summary row, for a job's customer not yet in the books — customers are never named by email): the individual time entries, expense claims and bill lines, with the ids invoice_billable_work takes. A time entry with no rate on file has amount: null and is counted in time_needing_rate — it is NOT free; a rate has to be given to bill it.

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_billable_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
customer_idNoDetail for one customer in the books.
customer_refNoDetail for a job's customer who is not in the books yet — the summary row's customer_ref.
customer_emailNoOlder form of customer_ref; prefer customer_ref.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
viewNo
totalsNo
customersNo
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.
default_markup_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real behavioral context beyond that: the two distinct output shapes, the meaning of `amount: null` (no rate on file, counted in `time_needing_rate`, not free), and that a rate must be supplied before the entry can be billed. It does not mention ordering, pagination or result limits, which keeps it below a 5.

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?

Three sentences, front-loaded with the resource definition before the mode split, and no filler. The parenthetical about `customer_ref` and email is dense and slightly tangled, but every clause carries decision-relevant information.

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?

With an output schema present, the description need not enumerate return fields, and all four parameters are documented in the schema. It covers mode selection, id handoff to `invoice_billable_work`, and the null-rate pitfall; only secondary concerns like pagination or row limits are absent.

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 100%, so a baseline of 3 applies, but the description adds genuine meaning: it explains that `customer_id` and `customer_ref` switch the tool from summary to detail mode, that `customer_ref` is sourced from a summary row for a job's customer not yet in the books, and that email-based identification is discouraged. `entity_id` and the customer_email deprecation are left to the schema.

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 concrete verb and resource: time and costs rechargeable to a customer that have not been invoiced. It then splits the tool into two clearly named modes (summary-per-customer vs. per-entry detail) and ties the detail mode to the sibling `invoice_billable_work`, so an agent can tell exactly what it gets without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit selection rules: no customer argument yields one row per customer with hours/amounts/total; supplying `customer_id` or `customer_ref` yields individual time entries, expense claims and bill lines. It also names the follow-on tool (`invoice_billable_work` takes these ids) and states that `customer_ref` comes from the summary row for a customer not yet in the books, with the explicit note that customers are never identified by email.

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