Skip to main content
Glama

Octobooks

Purchase orders: make, approve, receive

purchase_order
Destructive

Purchase orders, as the card on Prices. Read: action=list (limit), view (number). action=make (supplier, lines: BAR-1 x 100 @ 0.80, CUP-1 x 10 @ 2.50, day, warehouse: where it is delivered, note): where the company's switch holds it stands as Awaiting approval for the named approver: no PDF, no goods in, no bill until then. action=approve (number): the named approver's own connection only. action=reject (number, reason). action=receive (number, day, best_before, batch, rate): the goods go in on release, in the books' currency: an order in another currency at rate (1 unit of the order's currency in the books' currency) or the day's rate on file. action=close (number, reason). action=pdf_link (number): the page to download it. Round 860: a line names a product or says in words what is ordered (Design work x 5 @ 80; only a product's line goes into stock); round 1097: a product with a purchase unit is ordered in it at the price of one (CHOC x 5 cases @ 30: 5 cases of 12 receive 60 units at 2.50; CHOC x 60 each @ 2.50 orders units); currency (three letters) on make, else the books' own; action=send (number, email optional: else the supplier's remittance email; again=true mails it once more): the PDF by mail. Round 913: action=landed (number, freight, duty in the order's currency, spread value or quantity) sets the expected freight and duty before the goods arrive; view and list give each product line expected_landed_unit (the price plus its share) and, once received, landed_unit (the batch's actual landed cost: unit cost plus freight or duty bills put on it). Round 1096: action=receive takes quantities {line: pieces} for a part receipt (the rest stays open; left out: all that is open). Each receipt posts the goods to stock against goods received not invoiced; the order's bill clears it, a bill at another price puts the difference on the stock still on hand and on purchase price variance for goods sold. action=receipts (number): each receipt with its id, pieces, value, billed. action=undo_receipt (receipt: the id) proposes the undo, released as the owner's switches say: the pieces leave stock from their batch and the posting is reversed (refused once a bill covers it or the pieces have left stock). action=ship (number, day, arrives, reference): the supplier dispatched the goods, in transit until received; action=unship takes it back; action=in_transit lists them with their value. action=not_invoiced (day: as at, left out today): goods received not invoiced per receipt, the total and the account's balance. Round 1105, landed cost lines (Unleashed's order costs): action=cost_add (number, supplier: who bills it, any part of the name or code, amount, currency, rate: 1 unit in the books' currency, left out the day's, reference, spread value or quantity, note: the cost type, Freight, Duty, Handling or Insurance) keeps a line kept at once; costs (number) lists them with their bill; cost_remove (number, receipt: the line number) takes a line off while it has no bill; cost_bill (number, receipt: a line, left out all) makes each line its supplier's bill, awaiting approval as every bill. The receipt of the goods does the same for every line without a bill. Once the bill is posted its net in the books' currency is spread over the order's batches. action=suppliers (supplier: any part of the name or code, may be empty): the suppliers on file with their currency and the day's rate, as the order form suggests them. Round 1106, supplier returns: action=returnable (number): each receipt with what is left of its batch; action=return (number, return_lines [{receipt or batch or product, quantity}], reason (one of action=return_reasons), note, day, warehouse, idempotency_key): the goods leave stock from their batch at its cost, Dr goods received not invoiced, Cr stock; billed goods wait for the supplier's credit note, which is matched to the return when it is posted against the order (action=return_credit with receipt: the return's id gives the credit note's body for bill_entry). Without the right to post the return is recorded and a person posts it (action=return_post). action=returns (number optional): every return with its state, earlier_credits: credit notes posted before the goods went back; action=return_match (receipt: the return's id, reference: the credit note's reference) matches one; action=return_undo (receipt: the return's id); action=return_reasons: the company's reasons (reasons: a list replaces them).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "purchase_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayNo
dutyNo
noteNo
rateNo
againNo
batchNo
emailNo
limitNo
linesNo
actionYes
amountNo
numberNo
reasonNo
spreadNo
arrivesNo
companyNo
freightNo
reasonsNo
receiptNo
currencyNo
supplierNo
referenceNo
warehouseNo
quantitiesNo
best_beforeNo
return_linesNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only give readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=false. The description goes far beyond that by disclosing state transitions (awaiting approval, goods in, in transit), accounting effects (goods received not invoiced, purchase price variance, landed cost spread over batches), reversibility rules (undo refused once billed or stock has left), and permission requirements. It is consistent with destructiveHint=true because returns and undo_receipt remove stock.

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

Conciseness2/5

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

The description is a single dense wall of text covering roughly twenty actions with no line breaks, headings, or per-action grouping, making it hard to scan. Embedded changelog noise ('Round 860', 'Round 1097', 'Round 913', 'Round 1096', 'Round 1105', 'Round 1106') does not help an agent invoke the tool. Every sentence does carry information, which saves it from a 1.

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 27-parameter, multi-action tool with zero schema descriptions, the description supplies nearly all the behavioral and parameter context an agent needs, including currency handling, landed-cost accounting, returns, and receipts. An output schema exists, so return values need not be spelled out. Completeness is reduced only by the undocumented 'company' and 'idempotency_key' parameters.

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 0%, so the description must carry all parameter meaning, and it does for most of the 27 fields: lines with worked ordering examples, currency semantics, rate as '1 unit of the order's currency in the books' currency', quantities as {line: pieces}, return_lines structure, spread value or quantity, receipt ids, reasons replacing defaults. Two gaps remain: 'company' is never mentioned and 'idempotency_key' is listed without any explanation of its behavior.

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?

The description names the resource (purchase orders) and enumerates specific verbs via its many actions: make, approve, reject, receive, close, pdf_link, send, landed, receipts, undo_receipt, ship, not_invoiced, cost_add, return, return_match, and more. An agent can tell this is the purchase-order lifecycle tool rather than a generic accounting or stock tool. The opening phrase 'as the card on Prices' is cryptic and no sibling is explicitly named as an alternative, which keeps it from a 5.

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?

The description embeds substantial conditional guidance per action: approval only from the named approver's own connection, receipts refused once a bill covers them, returns recorded but not posted without the right to post, undo_receipt proposed then released by the owner's switches. It gives preconditions and sequencing ('no PDF, no goods in, no bill until then') that help an agent choose an action. It never explicitly contrasts with sibling tools such as bill or stock, so it stops short of a 5.

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.

Resources