Skip to main content
Glama

List Invoices

listWorkspaceInvoices
Read-onlyIdempotent

The latest invoices, newest first, at most 12: period, status, total in cents with display as the amount to quote, currency, and whether it is the current draft. The current draft invoice has isDraft true; it is the only answer to "what will we be billed", and it is a draft that can still change. There is no forecast. Quote each total by its display; never add up or convert amounts. No PDF links. Use when: someone asks about invoices, spend or the next bill. Owner or billing admin only; other roles get 403. Only a person signed in to the nopaque web app can call this; an API key is refused.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
invoicesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / workspaceId
      Removed value: -{
      -  "description": "Workspace identifier. Must be the caller's current workspace.",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "workspaceId"
      -]
  2. 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 readOnly/idempotent annotations: result cap of 12, newest-first ordering, session-only authentication with API keys refused, role-based 403s, and the caveat that the isDraft invoice can still change. It also discloses a formatting obligation ('quote by display, never add up or convert'), which is behavior an agent cannot derive from structured fields.

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?

Dense but front-loaded: scope and shape first, then the draft caveat, then usage and auth. The quoting instruction is stated twice ('with `display` as the amount to quote' and 'Quote each total by its `display`'), which is mild redundancy, but no sentence is filler.

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?

Covers everything needed for a zero-param read tool with an output schema: result cap, ordering, the meaning of isDraft, the absence of forecast and PDFs, authorization requirements, and the calling-context restriction. Nothing an agent needs in order to call it correctly is missing.

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?

Zero input parameters, so the baseline is 4; nothing is ambiguous about invocation. The description spends its words on return-value semantics, which is bonus context even though an output schema already exists.

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 resource and scope: latest invoices, newest first, at most 12, with the exact fields returned (period, status, total, currency, isDraft). It also disambiguates the concept from adjacent ones by declaring 'There is no forecast' and 'No PDF links', so an agent knows this is not a usage/forecast tool.

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?

Explicit trigger: 'Use when: someone asks about invoices, spend or the next bill', plus exclusion cues (no forecast, no PDF links) and the authorization gate (owner or billing admin, others get 403; API keys refused). It stops short of naming a sibling tool for related usage/spend questions, so the agent must infer routing rather than being told.

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.