Skip to main content
Glama

purchase-order

Raise a purchase order

purchase_order_create

Raise a purchase order to a supplier from items and return its PO number and totals. unit_price is in MAJOR units; currency, VAT and the buyer block come from the shared profile. Free: 5 documents a calendar month.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesWhat is being ordered
notesNoFree text printed under the totals, e.g. delivery address or terms
currencyNoDefaults to your business default currency
supplierYesSupplier name or client id. A name the invoice server already knows brings its address, email and VAT id onto the order
tax_rateNoVAT percent for lines with no rate of their own. Defaults to the business default
issue_dateNoYYYY-MM-DD, defaults to today in your business profile's timezone
supplier_emailNoOnly if the user gave it; otherwise the stored client's email is used
supplier_vat_idNoSupplier VAT / tax registration id
discount_percentNoDiscount applied to every line, in percent
supplier_addressNoPostal address for the SUPPLIER block, newlines allowed
expected_delivery_dateNoYYYY-MM-DD, when the goods or work are due

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already mark this as non-read-only and non-idempotent, so the description only needs to add context, and it does: it returns PO number and totals, inherits currency/VAT/buyer block from the shared profile, and states the 5-document monthly free quota. These details do not contradict the annotations and are genuinely useful.

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?

Three sentences, front-loaded with the main purpose, then key defaults and the quota. There is no filler. It loses one point because the second sentence uses 'unit_price' instead of the schema's unit_price_minor, creating an avoidable ambiguity in an otherwise compact structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description's mention of PO number and totals is valuable, and the quota note is useful. However, the central monetary parameter is described incorrectly, which is a critical completeness failure for a PO creation tool; an agent cannot safely call it correctly without spotting and resolving the contradiction with the schema. It also does not state that repeated calls will create new documents, though the annotation covers that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema documents all 11 parameters, so the baseline is 3, but the description actively contradicts the schema: it says 'unit_price is in MAJOR units' while the actual parameter unit_price_minor is documented as MINOR units with examples (9000 = 90.00 EUR, 90 = JPY 90). An agent following the description would format amounts incorrectly by a factor of ~100, and it also references a parameter name 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 uses a specific verb ('raise') and resource ('purchase order to a supplier from items'), and states the concrete outcome: return its PO number and totals. This clearly distinguishes purchase_order_create from siblings like credit_note_create, purchase_order_get, and purchase_order_delete.

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's context is clear: use this when raising a PO from items. It does not, however, name alternatives or exclusion conditions (e.g., use purchase_order_get to retrieve a created PO, or credit_note_create for supplier credits), so the guidance is implied rather than explicit.

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.