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 delivery order draft

create_delivery_order_draft

Files a delivery-order draft in Taokeh: the paper that goes with goods leaving the business. A delivery order posts nothing and moves no stock; stock moves when it is invoiced. The draft stays pending until a person approves it in Taokeh, which creates a real delivery order. customerId is the id returned by resolve_customer; leave it out for a delivery order with no customer. productRef is the id or exact SKU returned by resolve_product. Lines take the quote's shape (intake_contract(doc_type:'delivery_order')). The server recomputes every line quantity from the tally and the delivery order's total; its figures are the ones the approved delivery order carries. On a company that keeps stock counts, approval checks the goods are on hand and refuses when they are not; the draft then stays pending. needsReview with a short notes line flags doubts for the reviewer; notes is a note to the reviewer, not the delivery order's own notes. A matching pending draft (same reference, date and total) is returned instead of a second one. Line keys are strict: a key not in the schema is refused by name and nothing is filed. Returns the draft id, computedTotal, and review and approval links.

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": {
      "doDate": "<doDate>",
      "lines": "<lines>"
    },
    "name": "create_delivery_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
notesNoShort reviewer note (one or two sentences, in the reviewer's language) naming what to double-check: a smudged total, an uncertain party, a judgment call. Shown on the approval card. Empty when nothing needs flagging.
doDateYesThe delivery-order date, YYYY-MM-DD.
referenceNoThe delivery-order number printed on the paper, if any. Left out: Taokeh numbers it at approval.
customerIdNoThe customer id from resolve_customer. Left out: a delivery order with no customer.
needsReviewNo
printedTotalNoThe total printed on the paper, if any (a cross-check only).

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?

Annotations only say this is a non-read-only, non-destructive, non-idempotent, closed-world call; the description goes far beyond that by explaining that nothing posts and no stock moves, that a human approval gate is required, that approval can refuse when goods are not on hand (leaving the draft pending), and that unknown line keys are refused by name with nothing filed. It also discloses server authority over recomputed quantities, the duplicate-draft rule keyed on reference/date/total, and what the response contains. The only nuance is the duplicate-draft behaviour sitting slightly oddly against idempotentHint=false, but the stated match condition (same reference, date and total) is narrower than true idempotency, so this is a clarification rather than a contradiction.

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?

Front-loaded with the identity of the tool and what it does not do, then moves through prerequisites, server-side computation, approval checks, duplicate handling, strict keys and return value in a logical order. Every sentence carries distinct information, but the single dense block packs several distinct concerns (mutation semantics, approval gate, dedup, return shape) without separators, which costs some scannability.

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?

No output schema exists, and the description compensates by naming the return payload (draft id, computedTotal, review and approval links). For a mutation tool with a human approval gate, it covers what an agent must know before calling: prerequisites, required vs optional fields, refusal conditions, side effects, and what happens on success. Nothing material is left for the agent to guess.

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?

The schema already documents most fields (71% coverage), but the description adds meaning the schema does not: customerId is omitted rather than blanked for a customerless order, productRef accepts either the resolve_product id or the exact SKU, lines reuse the quote shape from intake_contract, and - importantly - `notes` is a note to the reviewer, not the delivery order's own notes. It also warns that sent quantities are advisory and get overwritten from the tally. It does not explain doDate, reference, or printedTotal beyond what the schema says, which keeps this at 4 rather than 5.

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 ("Files a delivery-order draft in Taokeh") and immediately scopes what the artifact is: "the paper that goes with goods leaving the business." It then draws the decisive line against the invoice sibling - "A delivery order posts nothing and moves no stock; stock moves when it is invoiced" - so an agent can tell create_delivery_order_draft apart from create_delivery_order_invoice_draft and create_invoice_draft without opening a 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?

Gives clear situational context: the draft stays pending until a human approves it in Taokeh, and approval performs the stock check on companies that keep counts. It names the prerequisite tools that supply arguments (resolve_customer, resolve_product, intake_contract) and their conditions of use. What it never says is when to reach for update_delivery_order_draft instead of filing a new draft, so the alternative-routing 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.

Resources