Skip to main content
Glama

Unbilled time and what the invoice would be

unbilled_time
Read-onlyIdempotent

The unbilled billable time for one client in a period, per project, with the amount an invoice would come to and the entry ids behind each line. Worked out with the same rules as create_invoice: time already on an invoice, running timers, non-billable projects and non-billable days are left out, and the client's rounding applies. It creates nothing. Use it to answer 'what would I bill this client?' before create_invoice.

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": {
      "client": "<client>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "unbilled_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast day of the period
fromYesFirst day of the period
clientYesClient id or exact client name

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
totalYesWhat the invoice would come to, in dollars (no tax)
clientYesClient name
currencyYesISO 4217 code the amounts are in
projectsYesOne per project, sorted by name; empty when nothing is unbilled
total_hoursYes
total_minutesYesBilled minutes (after the client's rounding)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

The annotations cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the description's job is the rest of the behavior, and it delivers: excluded time (already invoiced, running timers, non-billable projects, non-billable days), the client's rounding rule, and the fact that it writes nothing. It even anchors those rules to create_invoice so the agent knows the preview and the real invoice agree.

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 purpose, then the exclusion rules, then the routing to create_invoice; nothing is padding. The closing 'It creates nothing' partly overlaps readOnlyHint, which keeps it just short of a 5.

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?

An output schema exists, so return values need not be restated, yet the description still says what each line contains (an amount plus entry ids). For a read-only three-parameter aggregation tool, an agent has everything needed to call it and interpret the result.

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 description coverage is 100%, so the three parameters are already documented and the baseline is 3. The description adds meaning beyond the schema by explaining what the period selects and that results are grouped per project with entry ids behind each line, which tells the agent how the parameters shape the output.

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?

The description names a specific computed resource (the unbilled billable time for one client in a period, per project, with the hypothetical invoice amount and the entry ids behind each line) rather than restating the tool name. That is enough for an agent to tell it apart from create_invoice and list_entries without opening either 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?

It states the question the tool answers ('what would I bill this client?') and situates the call before create_invoice, so the alternative and the ordering are both explicit. It also adds 'It creates nothing', which rules out a draft-creating reading of a preview tool.

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.