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 converting a quote into an invoice or a delivery order (a person approves in Taokeh)

create_quote_conversion_draft

Files a pending draft of Convert on a quote. target invoice makes an invoice, as Convert to invoice does, and posts its journal lines on approval; delivery_order makes a delivery order, as Convert to delivery order does, which posts nothing until it is invoiced. The whole quote converts: its customer, currency, lines, prices, discounts and tax codes carry over, dated docDate. Nothing is saved until an admin or bookkeeper approves in Taokeh; approval converts it exactly as the quote page does and marks the quote converted. The result carries the document it becomes (customer, lines, subtotal, tax, total, stock moved) and the journal lines, as the rolled-back conversion produced them; its number is given at approval. Refused at filing and approval in the page's words: a quote not open (converted, voided, expired), a quote with no lines, a date in a locked period. One conversion draft per quote waits at a time; if the quote is edited or converted before approval, approval refuses and nothing is saved.

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": {
      "quoteId": "<quoteId>",
      "target": "<target>",
      "docDate": "<docDate>"
    },
    "name": "create_quote_conversion_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
targetYesWhat the quote becomes.
docDateYesThe invoice or delivery order date, YYYY-MM-DD.
quoteIdYesThe open quote, from search_documents (docType `quote`).
needsReviewNotrue flags the draft for the reviewer.

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?

Far exceeds what the annotations convey: nothing persists until an admin or bookkeeper approves, approval replays the page's conversion and marks the quote converted, invoice posts journal lines while delivery_order posts nothing until invoiced, and stale edits cause refusal with nothing saved. It also discloses the one-draft-per-quote concurrency rule and the timing of number assignment.

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-loads the core action and target semantics before the approval lifecycle and refusal list. Dense but nearly every clause carries behavioral information; the long compound sentences with em-dashes slightly slow parsing.

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?

Although there is no output schema, the description describes the returned document (customer, lines, subtotal, tax, total, stock moved), the journal lines, and when the number appears. Combined with the refusal and concurrency rules, an agent has everything needed to call this correctly and interpret failure.

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 meaning beyond the schema by explaining the downstream effect of each `target` value and that `docDate` becomes the date of the resulting document. `note` and `needsReview` are left to the schema, which is acceptable given full coverage.

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 verb and resource ("Files a pending draft of Convert on a quote") and immediately disambiguates the two modes via `target`: invoice vs delivery_order. An agent can tell this apart from create_invoice_draft or create_quote_draft without opening the 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 conditions for each target value, the approval prerequisite, and the refusal cases (quote not open, no lines, locked period, edit-before-approval). It stops short of explicitly naming the sibling to use when no conversion is wanted (e.g., creating an invoice from scratch), so the exclusion is only implied.

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