Skip to main content
Glama

PHP Point of Sale MCP by usefulapi

Create item

phppos_create_item
Destructive

WRITE: create an inventory item (name required). Stock quantities are not set here. Needs a Read/Write API key. Retrying creates a duplicate (search with phppos_list_items first). The store's item webhooks, if configured, fire. POST /items.

Input Schema

NameRequiredDescriptionDefault
nameYesItem name.
sizeNoSize.
tagsNoTag names.
cost_priceNoCost price.
is_serviceNoTrue for a service (no stock tracking).
product_idNoProduct id / SKU.
unit_priceNoSelling price.
category_idNoCategory id - see phppos_list_categories.
descriptionNoShort description.
item_numberNoBarcode / item number (UPC).
promo_priceNoPromotional price.
supplier_idNoSupplier person id - see phppos_list_suppliers.
item_inactiveNoTrue to deactivate the item (it can no longer be sold).
reorder_levelNoStock level at which the item shows as low.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which already flag non-read-only, destructive, non-idempotent, open-world), the description adds non-obvious operational facts: a Read/Write API key is required, retrying creates a duplicate record, and configured item webhooks fire on success. Those are the exact side effects and preconditions an agent cannot infer 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.

Conciseness5/5

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

Six tight clauses, front-loaded with the WRITE marker and the resource, followed by scope, auth, idempotency, side effect, and endpoint. No sentence is filler and the ordering matches the decisions an agent makes before calling.

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?

For a 14-parameter mutation with no output schema, the description covers auth, side effects, idempotency, and duplicate avoidance. It does not indicate what is returned (e.g., the new item id) or how follow-up stock setup should be done, which is a modest gap for a creation tool.

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?

Schema coverage is 100%, so parameter documentation is already handled and the baseline is 3. The description adds value by confirming the sole required field and, more importantly, by declaring that stock quantities are deliberately absent from this endpoint, preventing an agent from hunting for a quantity parameter that does not exist.

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?

The description opens with an explicit "WRITE: create an inventory item" verb+resource statement and scopes it ("name required", "Stock quantities are not set here"), which separates it cleanly from phppos_get_item, phppos_list_items, and phppos_update_item. An agent knows exactly what this tool does without opening the schema.

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?

It gives a concrete pre-call flow ("search with phppos_list_items first") and names the sibling to use, plus a scope exclusion (stock quantities aren't set here). It stops short of stating the when-not case explicitly (e.g., use phppos_update_item to change an existing item) or how to set stock afterwards.

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.