Skip to main content
Glama

PHP Point of Sale MCP by usefulapi

List invoices

phppos_list_invoices
Read-only

List customer invoices (money customers owe) or supplier invoices (money the store owes) with date, due date, status and amount. GET /invoices/customer or /invoices/supplier.

Input Schema

NameRequiredDescriptionDefault
typeYescustomer = invoices to customers; supplier = invoices from suppliers.
limitNoRows per page, 1-100 (default 20).
offsetNoRows to skip (default 0). Pass the previous reply's next_offset (paging.next_offset for a report).
searchNoFree-text search.
sort_colNoColumn to sort by (a field name of the rows).
sort_dirNoSort direction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the underlying endpoints (GET /invoices/customer or /invoices/supplier), which is modest extra context, but says nothing about pagination behavior, defaults, or what the rows contain beyond four named 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?

Two compact sentences, front-loaded with the resource and subtype distinction, with the endpoint detail appended rather than buried. No filler, though the endpoint sentence is of limited use to an agent that does not construct HTTP calls.

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?

A read-only list tool with 6 fully documented parameters and no output schema; the description covers what is listed, both record categories, and the returned fields (date, due date, status, amount). Remaining gaps around paging and default sort are largely handled by the schema itself.

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?

Schema description coverage is 100%, so every parameter including enum meanings, limit bounds and offset paging advice is already documented in the schema. The description's only added semantics is restating the customer/supplier distinction at a conceptual level, so the baseline 3 applies.

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 verb (list) and resource (invoices) and disambiguates the two subtypes by explaining that customer invoices are money owed to the store while supplier invoices are money the store owes. That clarifies the domain meaning of the `type` enum, though it never contrasts itself with neighboring list tools such as phppos_list_sales or phppos_list_receivings.

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?

The description implies when to use it (whenever you need invoice records) and pins down the two type values, but gives no explicit when-to-use guidance, no exclusions, and no mention of alternatives in a 25-sibling toolset where list_sales/list_receivings could be confused with invoices.

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.