Skip to main content
Glama

PHP Point of Sale MCP by usefulapi

List expenses

phppos_list_expenses
Read-only

List recorded expenses with type, description, date, amount, tax, payment type, category and location. GET /expenses.

Input Schema

NameRequiredDescriptionDefault
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.
location_idNoOnly expenses at this location id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 returned field set, which is genuinely useful since there is no output schema, but says nothing about pagination behavior or result volume.

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 short sentences, front-loaded with the action and the payload shape, with no filler. The field enumeration is long but each item conveys real information about the response.

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 no output schema, the field list compensates well for describing what comes back, and annotations cover safety. The main gap is that the description never mentions the paging/next_offset contract, which only appears buried in the offset parameter.

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% and all six filters (limit, offset, search, sort_col, sort_dir, location_id) are documented in the schema, including the next_offset paging hint. The description adds no parameter-level meaning beyond that, so the baseline of 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 and resource ("List recorded expenses") and enumerates the fields returned, plus the backing endpoint GET /expenses. It clearly separates this from phppos_create_expense, though it never names any sibling explicitly.

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

Usage Guidelines2/5

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

The description gives no when-to-use, no when-not-to-use, and no alternative (e.g. phppos_list_reports or phppos_list_locations for cross-cutting queries). Only the verb "List" implies it is a read operation; everything else must be inferred.

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.