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

create_purchase_order_draft

Files a pending purchase-order draft: an order to place with a supplier, usually read off their quotation. It posts nothing: approval saves a draft purchase order with no journal entry, no stock movement and no amount owing. The books move when the goods arrive and the user converts the order into a bill in Taokeh, a step this tool does not take; issuing the order to the supplier is also the user's own step, and Taokeh emails nobody. Inventory only: every line is a stocked product; a service or one-off charge goes on the manual purchase-order form. A line may carry an SST code (taxCode, from intake_contract); the order is taxed by its lines' codes, rounded per code on the subtotal, as the bill it becomes is, and the computed total includes that SST. The fields follow intake_contract(doc_type:'purchase_order'); vendorId and each line's productRef come from resolve_vendor and resolve_product. The server re-computes every quantity and the total. A filed draft is changed with revise_draft (kind 'purchase_order'). Goods that have already arrived are a bill (create_bill_draft). Line keys outside this schema are refused by name (with the likely intended key), and nothing is filed.

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": {
      "poDate": "<poDate>",
      "lines": "<lines>"
    },
    "name": "create_purchase_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoThe payment/delivery term line, e.g. 'Net 30'.
linesYes
notesNoA short reviewer note in the reviewer's language naming what to double-check before ordering (an uncertain quantity or supplier name, a judgment call). Shown on a small approval card; empty when nothing needs flagging.
poDateYes
vendorNo
vendorIdNo
referenceNoThe buyer's own purchase-order number, if they have one; it becomes this order's document number. Not the supplier's quotation number (that belongs in `notes`). Without it Taokeh numbers the order (POxxxx).
needsReviewNo
expectedDateNoWhen the goods are expected, `YYYY-MM-DD`. Optional.
printedTotalNo
confirmNewVendorNotrue when the user has confirmed this supplier is genuinely new; it skips the near-miss guard, which otherwise refuses a name that looks like shorthand for an existing vendor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / lines / items / properties / taxCode
      Added value: +{
      +  "type": "string"
      +}
  2. 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"
  3. Changed11 schema fields changed
    • changedInput schema / properties / confirmNewVendor / description
      Previous value: -"Set to true ONLY after the user has EXPLICITLY confirmed this supplier is genuinely new. It skips the near-miss guard (which rejects a name that looks like shorthand for an existing vendor). Never set it to push a near-miss through — ask the user first."New value: +"true when the user has confirmed this supplier is genuinely new; it skips the near-miss guard, which otherwise refuses a name that looks like shorthand for an existing vendor."
    • changedInput schema / properties / expectedDate / description
      Previous value: -"When the goods are expected, YYYY-MM-DD. Optional — omit it rather than guess."New value: +"When the goods are expected, `YYYY-MM-DD`. Optional."
    • changedInput schema / properties / lines / items / properties / description / description
      Previous value: -"The line text as PRINTED on the supplier's document, when it says more than the product name does — a size, a grade, a pack, a period covered. It rides onto the posted line, so send what the paper says rather than a tidier phrasing of your own. Leave it out when the product name already says it. This is TEXT, not a field: Taokeh has no column for a dimension, a grade or a variant, so anything of that kind belongs here."New value: +"The line text as printed on the supplier's document, when it says more than the product name (a size, grade, pack or period). It rides onto the posted line. Taokeh has no separate field for a dimension, grade or variant, so such detail is text here."
    • changedInput schema / properties / lines / items / properties / quantity / description
      Previous value: -"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it. On a timber company, for an item kept in tons, a per-ton quantity MORE than the tons a description's size and total feet give ('2x2 = 400'' and '2\" x 2\" = 400'' are 0.2222 ton) is refused, naming the tons — send the tons, never the feet. Beside a cut list ('2x2 = 15/10 12/8') your quantity is replaced by the cut list's tons; where it cannot be (inch marks on the size, a named size such as 'Nepek = 15/10', spaces around the '/'), a quantity more than the cut list's tons is refused the same way."New value: +"Line quantity. On a measurement-profile company it is derived from thickness/width/tally or a description measure, and a sent one is advisory. Timber, item kept in tons: a quantity above the tons that the description's size and total feet give ('2x2 = 400'' is 0.2222 ton) is refused, naming the tons. Beside a readable cut list, the cut list's tons replace the quantity."
    • changedInput schema / properties / lines / items / properties / tally / description
      Previous value: -"The tally as pieces/length_ft pairs — '10/10 12/14' is 10 pieces of 10 ft and 12 of 14 ft — OR the total running feet like 400' when the paper gives no cut list. Never invent a cut list (no '1/400'). With thickness and width this is what the quantity is derived FROM. Every token must be a pieces/length pair — a tally with anything else in it (a grade word, a stray number, '=') is refused; put grade words in the description. A total-feet tally needs thickness and width (or a named size) to work out the tons, and has no pieces, so it cannot carry a per-piece price — both are refused."New value: +"Pieces/length_ft pairs: '10/10 12/14' is 10 pieces of 10 ft and 12 of 14 ft. Or the total running feet, like 400', when the paper has no cut list (needs thickness and width or a named size; no per-piece price). With thickness and width the quantity is derived from it. A token that is not a pieces/length pair is refused; grade words belong in the description."
    • changedInput schema / properties / lines / items / properties / thickness / description
      Previous value: -"Thickness in inches on a dimensional line — measurement-profile companies only (intake_contract shows this company's `measureProfile`). Give thickness + width + tally INSTEAD of a quantity and the server computes the authoritative quantity from them."New value: +"Thickness in inches on a dimensional line (measurement-profile companies; intake_contract shows `measureProfile`). With width and tally, the server computes the quantity."
    • changedInput schema / properties / lines / items / properties / unit / description
      Previous value: -"The unit the PRICE is quoted in. On a timber company: 'feet' = per running foot, 'pcs' = per piece, 'ton' or omitted = per ton. A per-foot/per-piece price is converted to the per-ton rate from thickness/width/tally, or from a cut list in the description ('2x2 = 10/10 12/14'); a description cut list the server cannot read cleanly is refused — send thickness/width/tally instead."New value: +"The unit the price is quoted in. Timber company: 'feet' = per running foot, 'pcs' = per piece, 'ton' or omitted = per ton. A per-foot or per-piece price is converted to a per-ton rate from thickness/width/tally or a cut list in the description; a description cut list that does not read cleanly is refused."
    • changedInput schema / properties / lines / items / properties / unitCost / description
      Previous value: -"Up to four decimals (e.g. 0.0325), exactly as invoiced — but a per-foot or per-piece price that Taokeh converts to tons: two decimals. Put a discount or tax in its own field, never folded into the cost."New value: +"Up to four decimals (e.g. 0.0325), as invoiced; a per-foot or per-piece price that Taokeh converts to tons takes two. Discount and tax have their own fields and are not folded into the cost."
    • changedInput schema / properties / lines / items / properties / width / description
      Previous value: -"Width in inches on a dimensional line. Goes with thickness and tally."New value: +"Width in inches on a dimensional line, with thickness and tally."
    • changedInput schema / properties / notes / description
      Previous value: -"A SHORT reviewer note: one or two plain sentences, written in the reviewer's language, flagging what the human should double-check before they order — a quantity you weren't sure of, a supplier name you guessed at, a judgment call you made. The reviewer reads this on a small approval card, so keep it brief and human. Leave it empty when there is nothing to flag."New value: +"A short reviewer note in the reviewer's language naming what to double-check before ordering (an uncertain quantity or supplier name, a judgment call). Shown on a small approval card; empty when nothing needs flagging."
    • changedInput schema / properties / reference / description
      Previous value: -"The BUYER'S OWN purchase-order number, if they already have one — it becomes this order's document number. NOT the supplier's quotation number (put that in `notes`). Usually omit it: Taokeh numbers the order itself (POxxxx)."New value: +"The buyer's own purchase-order number, if they have one; it becomes this order's document number. Not the supplier's quotation number (that belongs in `notes`). Without it Taokeh numbers the order (POxxxx)."
  4. Changed2 schema fields changed
    • removedInput schema / properties / lines / items / properties / discount / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / lines / items / properties / discount / type
      Added value: +[
      +  "number",
      +  "string"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / quantity / description
      Previous value: -"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it. On a timber company, for an item kept in tons, a per-ton quantity MORE than the tons a description's size and total feet give ('2x2 = 400'' is 0.2222 ton) is refused, naming the tons — send the tons, never the feet."New value: +"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it. On a timber company, for an item kept in tons, a per-ton quantity MORE than the tons a description's size and total feet give ('2x2 = 400'' and '2\" x 2\" = 400'' are 0.2222 ton) is refused, naming the tons — send the tons, never the feet. Beside a cut list ('2x2 = 15/10 12/8') your quantity is replaced by the cut list's tons; where it cannot be (inch marks on the size, a named size such as 'Nepek = 15/10', spaces around the '/'), a quantity more than the cut list's tons is refused the same way."
  6. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / quantity / description
      Previous value: -"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it."New value: +"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it. On a timber company, for an item kept in tons, a per-ton quantity MORE than the tons a description's size and total feet give ('2x2 = 400'' is 0.2222 ton) is refused, naming the tons — send the tons, never the feet."
  7. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / unitCost / description
      Previous value: -"Two decimals at most (whole sen, or whole cents in another currency), exactly as invoiced; put a discount or tax in its own field, never folded into the cost."New value: +"Up to four decimals (e.g. 0.0325), exactly as invoiced — but a per-foot or per-piece price that Taokeh converts to tons: two decimals. Put a discount or tax in its own field, never folded into the cost."
  8. Changed1 schema field changed
    • addedInput schema / properties / lines / items / properties / unitCost / description
      Added value: +"Two decimals at most (whole sen, or whole cents in another currency), exactly as invoiced; put a discount or tax in its own field, never folded into the cost."
  9. Changed2 schema fields changed
    • changedInput schema / properties / lines / items / properties / tally / description
      Previous value: -"The piece tally as pieces/length_ft pairs — '10/10 12/14' is 10 pieces of 10 ft and 12 of 14 ft. With thickness and width this is what the quantity is derived FROM."New value: +"The tally as pieces/length_ft pairs — '10/10 12/14' is 10 pieces of 10 ft and 12 of 14 ft — OR the total running feet like 400' when the paper gives no cut list. Never invent a cut list (no '1/400'). With thickness and width this is what the quantity is derived FROM. Every token must be a pieces/length pair — a tally with anything else in it (a grade word, a stray number, '=') is refused; put grade words in the description. A total-feet tally needs thickness and width (or a named size) to work out the tons, and has no pieces, so it cannot carry a per-piece price — both are refused."
    • addedInput schema / properties / lines / items / properties / unit / description
      Added value: +"The unit the PRICE is quoted in. On a timber company: 'feet' = per running foot, 'pcs' = per piece, 'ton' or omitted = per ton. A per-foot/per-piece price is converted to the per-ton rate from thickness/width/tally, or from a cut list in the description ('2x2 = 10/10 12/14'); a description cut list the server cannot read cleanly is refused — send thickness/width/tally instead."
  10. Changed2 schema fields changed
    • addedInput schema / properties / lines / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / lines / items / properties / description / description
      Added value: +"The line text as PRINTED on the supplier's document, when it says more than the product name does — a size, a grade, a pack, a period covered. It rides onto the posted line, so send what the paper says rather than a tidier phrasing of your own. Leave it out when the product name already says it. This is TEXT, not a field: Taokeh has no column for a dimension, a grade or a variant, so anything of that kind belongs here."
  11. Changed2 schema fields changed
    • changedInput schema / properties / lines / items / properties / quantity / description
      Previous value: -"The line quantity. On a measurement-profile workspace (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough workspace nothing is derived, so this IS the quantity — send it."New value: +"The line quantity. On a measurement-profile company (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough company nothing is derived, so this IS the quantity — send it."
    • changedInput schema / properties / lines / items / properties / thickness / description
      Previous value: -"Thickness in inches on a dimensional line — measurement-profile workspaces only (intake_contract shows this workspace's `measureProfile`). Give thickness + width + tally INSTEAD of a quantity and the server computes the authoritative quantity from them."New value: +"Thickness in inches on a dimensional line — measurement-profile companies only (intake_contract shows this company's `measureProfile`). Give thickness + width + tally INSTEAD of a quantity and the server computes the authoritative quantity from them."
  12. Changed4 schema fields changed
    • addedInput schema / properties / lines / items / properties / quantity / description
      Added value: +"The line quantity. On a measurement-profile workspace (see intake_contract's `measureProfile`) OMIT it whenever you give thickness/width/tally, or write the measure detail into the description ('2x2 = 10/10 12/14') — the server derives the authoritative quantity from those, and a quantity sent alongside a parseable tally is NOT used to compute: it is kept as your advisory figure and shown to the reviewer beside the server's. On the default passthrough workspace nothing is derived, so this IS the quantity — send it."
    • addedInput schema / properties / lines / items / properties / tally / description
      Added value: +"The piece tally as pieces/length_ft pairs — '10/10 12/14' is 10 pieces of 10 ft and 12 of 14 ft. With thickness and width this is what the quantity is derived FROM."
    • addedInput schema / properties / lines / items / properties / thickness / description
      Added value: +"Thickness in inches on a dimensional line — measurement-profile workspaces only (intake_contract shows this workspace's `measureProfile`). Give thickness + width + tally INSTEAD of a quantity and the server computes the authoritative quantity from them."
    • addedInput schema / properties / lines / items / properties / width / description
      Added value: +"Width in inches on a dimensional line. Goes with thickness and tally."
  13. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). The description adds substantial behavior beyond that: no journal entry, no stock movement, no amount owing, no email sent, server-side recomputation of quantities and totals, and refusal of unknown line keys by name. The deductions are for not stating what a successful call returns (draft identifier or document number) and whether repeated calls create duplicates given idempotentHint=false.

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 decisive fact ('It posts nothing') before the accounting consequences, then scoped to inventory-only lines and routed to sibling tools. Dense but every clause carries operational weight; a sentence or two (SST rounding detail) is closer to accounting doctrine than to tool selection.

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

Completeness3/5

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

For an 11-parameter mutation with no output schema, the definition covers downstream effects, validation/refusal behavior, and data provenance well. It leaves gaps on return values and on parameters such as `printedTotal`, `needsReview` and `term`, which are only explained in the schema, so an agent still needs the schema to complete the picture.

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

Parameters5/5

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

Schema description coverage is only 45%, but the description compensates heavily: it explains where `vendorId` and `productRef` come from (resolve_vendor, resolve_product), that the field set follows intake_contract(doc_type:'purchase_order'), that `taxCode` may come from intake_contract and drives per-code SST rounding on the subtotal, and that sent quantities are advisory because the server recomputes them. Several parameters (`printedTotal`, `vendor`, `needsReview`, `term`) still lean on the schema, but the description adds real meaning well beyond it.

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?

Specific verb+resource: 'Files a pending purchase-order draft' with the immediate qualifier that it is an order to place with a supplier, read off their quotation. It also explicitly separates itself from create_bill_draft (goods already arrived) and revise_draft (changing a filed draft), so an agent can distinguish it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (inventory order from a quotation), when-not (services/one-off charges go on the manual form; arrived goods are a bill), and names the alternative tool for each branch (create_bill_draft, revise_draft, intake_contract, resolve_vendor/resolve_product). It also states what the user must do themselves — issuing to the supplier — leaving no routing ambiguity.

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