Skip to main content
Glama

Taokeh MCP server

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.

File a pending draft invoicing open delivery orders (a person approves in Taokeh)

create_delivery_order_invoice_draft

Files a pending draft of Invoice on Delivery orders: one invoice for one or more open delivery orders of one customer in one currency, as the Consolidate → Invoice page does with those orders ticked. paymentMethod CREDIT (on account, the default) takes an optional term and dueDate (left out: derived from the term, as the page does); CASH takes neither. The tax rate box is left blank and the default stock location is used, as on the page; the location stock comes off is named in the result. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval invoices them exactly as the page does, marks each delivery order invoiced and, on perpetual stock, moves the stock. The result carries the invoice (customer, lines, subtotal, tax, total, stock moved) and the journal lines, as the rolled-back invoice produced them; its number is given at approval. Refused at filing and approval in the page's words: a delivery order not open, two customers or two currencies, an order made from a quote that charged one tax rate when the rate cannot be told (it is typed on the page), a date in a locked period, a stock shortfall. Also refused at filing: a delivery order already in another invoice draft waiting for approval. One draft per set of orders waits at a time; if an order is edited, invoiced or voided before approval, approval refuses and nothing is posted.

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": {
      "deliveryOrderIds": "<deliveryOrderIds>",
      "saleDate": "<saleDate>"
    },
    "name": "create_delivery_order_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
termNoOn account: the payment term, as the invoice form takes it (e.g. Net 30).
dueDateNoOn account: the due date, YYYY-MM-DD, on or after the invoice date (left out: from the term).
saleDateYesThe invoice date, YYYY-MM-DD.
needsReviewNotrue flags the draft for the reviewer.
paymentMethodNo`CREDIT` (on account, default) or `CASH` (paid now).
deliveryOrderIdsYesThe open delivery orders, from search_documents (docType `delivery_order`). One customer, one currency, at most 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the full lifecycle: nothing posts until an admin or bookkeeper approves in Taokeh, and approval marks each delivery order invoiced and moves stock on perpetual inventory. It enumerates the exact refusal conditions at both filing and approval, states the draft becomes unusable if an order is edited, invoiced, or voided first, and describes the result payload including journal lines and that the invoice number arrives at approval.

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?

Purpose and scope are front-loaded, and nearly every clause carries operational information. It is dense and repetitive in places ("as the page does" three times, one very long final sentence), which slightly hurts scanability, but there is little filler.

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

Completeness5/5

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

For a multi-step, approval-gated mutation with no output schema, the description covers what it does, what the result contains, how approval behaves, and every documented failure mode. Nothing an agent needs in order to call it correctly, or to explain a refusal, is missing.

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 the baseline is 3, but the description adds real conditional semantics the schema lacks: CREDIT accepts an optional term and dueDate (derived from the term when omitted) while CASH accepts neither, the tax rate is left blank, and the default stock location is used. It does not explain needsReview or note beyond what the schema already says.

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?

Names a specific action and resource: filing a pending draft invoice covering one or more open delivery orders of one customer in one currency, mapped explicitly to the Consolidate → Invoice page with orders ticked. That scope statement alone separates it from create_invoice_draft and create_delivery_order_draft without opening their schemas.

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?

Prerequisites for calling are clear: orders must be open, single customer, single currency, and each order not already in another pending draft. It does not name an alternative tool for cases that fail these conditions (e.g., a plain invoice with no delivery orders), leaving that routing to inference, 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