Skip to main content
Glama

Field Service Business Platform by Doing Work

invoices_list

Read-only

Invoices in one shop, newest first. Filter by status or by a customer name or invoice id. Read only. A shop you are not a member of is refused. Seeing the amounts needs see_prices, the same as invoices.get.

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": {
      "shop_id": "<shop_id>"
    },
    "name": "invoices_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
limitNoHow many rows to return. Default 50 when you leave it out. An integer, or a numeric string such as "50".
cursorNo
statusNo
shop_idYes

Output Schema

NameRequiredDescriptionDefault
dataYes
displayYes
summaryYes
time_zoneYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedOutput schema / properties / data / items / properties / currency
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / doc_label
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / doc_no
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / data / items / properties / status / enum
      Added value: +[
      +  "draft",
      +  "sent",
      +  "partially_paid",
      +  "paid",
      +  "partially_refunded",
      +  "refunded",
      +  "void"
      +]
    • addedOutput schema / properties / data / items / properties / total_text
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / items / required
      Previous value: -[
      -  "invoice_id",
      -  "job_id",
      -  "status",
      -  "customer",
      -  "total_minor",
      -  "issued_at",
      -  "due_on",
      -  "created_at"
      -]New value: +[
      +  "invoice_id",
      +  "job_id",
      +  "status",
      +  "customer",
      +  "total_minor",
      +  "total_text",
      +  "doc_no",
      +  "doc_label",
      +  "currency",
      +  "issued_at",
      +  "due_on",
      +  "created_at"
      +]
    • addedOutput schema / properties / display
      Added value: +{
      +  "properties": {
      +    "columns": {
      +      "items": {
      +        "properties": {
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "fields": {
      +      "items": {
      +        "properties": {
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "kind": {
      +      "enum": [
      +        "table",
      +        "cards",
      +        "timeline",
      +        "checklist",
      +        "map",
      +        "calendar",
      +        "chart"
      +      ],
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "title"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / time_zone
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "data",
      -  "next_cursor"
      -]New value: +[
      +  "data",
      +  "next_cursor",
      +  "time_zone",
      +  "summary",
      +  "display"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / limit / description
      Added value: +"How many rows to return. Default 50 when you leave it out. An integer, or a numeric string such as \"50\"."
  3. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so the safety profile needs no restating. Against that lower bar the description adds genuinely new facts: newest-first ordering, per-shop membership enforcement with refusal, and the see_prices requirement for monetary 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?

Four short, front-loaded sentences with no filler; scope and ordering come first, permissions last. Slight fragmentation, but every sentence carries 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?

Return values are covered by an output schema, so the description need only handle selection, filtering, ordering, and access. Those are all present; the remaining gap is pagination semantics (how cursor is used and whether it is opaque).

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?

With 20% schema coverage, the description must compensate and it partly does: it explains that the free-text filter accepts a customer name or an invoice id, which the bare `q` string in the schema does not convey, and it maps status to filtering. It says nothing about `cursor` paging or the shop_id membership constraint's failure mode, leaving two parameters thin.

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?

The description names the resource, scope (one shop_id), and ordering (newest first), and enumerates the filter axes. It does not explicitly distinguish itself from invoices_get, though the 'newest first / filter' framing implies a collection listing versus a single-record fetch.

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

Usage Guidelines3/5

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

It gives access conditions — read only, membership required or refused, see_prices needed to see amounts — which is real use-gating guidance. It never states when to pick this over invoices_get, invoices_aging, or the other siblings, so selection guidance is only implied.

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.