Skip to main content
Glama

PHP Point of Sale MCP by usefulapi

Create expense

phppos_create_expense
Destructive

WRITE: record an expense in the store's books (description, amount and date). It affects expense and profit-and-loss reports. Needs a Read/Write API key. Retrying records it twice (check phppos_list_expenses first). POST /expenses.

Input Schema

NameRequiredDescriptionDefault
category_idNoExpense category id.
expense_taxNoTax amount.
location_idNoLocation id - see phppos_list_locations.
expense_dateNoWhen it was incurred (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss); defaults to now in the store.
expense_noteNoNote.
expense_typeNoExpense type, for example Utilities.
expense_amountYesAmount, in the store's currency, before tax.
expense_reasonNoReason.
expense_descriptionYesWhat the expense was for.
expense_payment_typeNoPayment type, for example Cash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds value the annotations cannot: the write propagates into expense and profit-and-loss reports, and the auth requirement is a Read/Write key. The duplicate-on-retry warning restates idempotentHint=false, so it is useful but partially redundant.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, no filler, with the WRITE marker and the core purpose front-loaded before the side effects, the auth requirement, and the endpoint. Every sentence adds a distinct operational fact.

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?

Covers purpose, auth, side effects, and duplicate risk for a ten-parameter mutation with no output schema, leaving the schema to document the remaining fields. Minor gap: it lists date among the core inputs even though expense_date is optional and defaults to now, and it says nothing about the optional category/location fields that shape reporting.

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 the schema already explains every one of the ten parameters, including defaults for expense_date and the location_id cross-reference. The description only echoes description/amount/date and adds no constraints, formats, or mapping beyond that, making the baseline 3 appropriate.

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 verb and resource ("record an expense in the store's books") and names the core content inline (description, amount, date). The "WRITE:" prefix and the POST /expenses endpoint immediately separate it from the read siblings like phppos_list_expenses and phppos_get_sale.

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?

Gives a concrete prerequisite ("Needs a Read/Write API key") and routes the agent to phppos_list_expenses before retrying, which is real decision guidance. It stops short of stating when an expense should not be recorded or when a different creation tool applies, so it is strong but not exhaustive.

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.