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 adjusting journal draft

create_journal_draft

Files a pending adjusting journal entry: accruals, prepayments, depreciation, corrections, reclassifications, year-end adjustments and reversing entries. It does not post; approval in Taokeh posts it as a normal manual journal the owner can still delete. Field shapes and this company's chart of accounts: intake_contract(doc_type:'journal'). The entry balances to the sen or is refused with the difference named; each line has exactly one side; at least two lines. accountRef matches an account code or exact name: an unknown ref is refused, an ambiguous name returns the candidates, and no account is ever created (accounts are added in Taokeh). The connector never edits or deletes a posted entry; a wrong one is corrected by a reversing entry (same accounts and amounts, sides swapped) plus the correct entry, and search_journal finds the original. Lines on a control account (receivables, payables, inventory, SST control, opening-balance equity) are allowed, flagged, and approvable only on the full review page. A journal that would leave a posted owner withdrawal over-repaid is refused at approval; when the books already stand that way the draft is filed with ownerLoanRefusal and approvable only on the full review page. Lines on Contra Clearing (1016 in the default chart) or Refund Clearing are refused. Scope: a bill, sale, paid expense or customer payment carries party, SST and stock effects a journal skips, and is filed by create_bill_draft, create_invoice_draft, create_expense_draft or create_receipt_draft. A working paper can ride the draft: attachmentToken (from request_attachment_upload) or attachmentBase64 with attachmentMediaType and attachmentBytes, not both. A filed draft is amended by revise_draft (kind 'journal').

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": {
      "entryDate": "<entryDate>",
      "lines": "<lines>"
    },
    "name": "create_journal_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoWhat the entry is FOR, in one line — "accrue December electricity", "reverse the duplicated August rent". It prints on the entry and is the first thing the approver reads.
linesYesAt least two lines. Debits equal credits to the sen, or the entry is refused with the difference named. Keys outside the line schema are refused by name and nothing is filed.
notesNoA short note for the reviewer (one or two sentences, shown at approval): which schedule the figure came from, which entry this reverses, why a control-account line is right.
entryDateYes
referenceNoYour own reference for the adjustment, if there is one (a schedule number, a working-paper ref).
clientTotalNoYour own arithmetic for the entry total — carried onto the review screen for the human to compare against, never used to compute anything.
needsReviewNo
attachmentBytesNoThe decoded byte size of the original file on disk, with attachmentBase64. A truncated paste is rejected instead of filed.
attachmentTokenNoThe token from request_attachment_upload, once the file bytes have been PUT to its uploadUrl. Used instead of attachmentBase64, not with it.
attachmentBase64NoThe supporting working paper as base64, for small files; a large file travels as attachmentToken (request_attachment_upload). A file of a refused type or size is rejected and nothing is filed.
attachmentSha256NoOptional SHA-256 of the original file (64 hex chars), checked with attachmentBase64 so corrupted bytes are rejected instead of filed.
attachmentFilenameNoThe original filename, for the reviewer.
attachmentMediaTypeNoThe attachment's MIME type, e.g. 'application/pdf'. Required with attachmentBase64; it must match the file's bytes, or the call is refused and nothing is filed.

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. Changed10 schema fields changed
    • changedInput schema / properties / attachmentBase64 / description
      Previous value: -"The supporting WORKING PAPER as base64 — SMALL files only. For a real schedule or a multi-page PDF use request_attachment_upload instead (attachmentToken). A bad type/oversize file is rejected and NOTHING is filed."New value: +"The supporting working paper as base64, for small files; a large file travels as attachmentToken (request_attachment_upload). A file of a refused type or size is rejected and nothing is filed."
    • changedInput schema / properties / attachmentBytes / description
      Previous value: -"The decoded byte size of the ORIGINAL file on disk — send it alongside attachmentBase64 and the server rejects a truncated paste instead of filing a corrupt file."New value: +"The decoded byte size of the original file on disk, with attachmentBase64. A truncated paste is rejected instead of filed."
    • changedInput schema / properties / attachmentMediaType / description
      Previous value: -"The attachment's MIME type, e.g. 'application/pdf'. Required when attachmentBase64 is given. It must match the file's bytes — a mismatch is refused and nothing is filed."New value: +"The attachment's MIME type, e.g. 'application/pdf'. Required with attachmentBase64; it must match the file's bytes, or the call is refused and nothing is filed."
    • changedInput schema / properties / attachmentSha256 / description
      Previous value: -"The SHA-256 of the ORIGINAL file as 64 hex chars — optional second check alongside attachmentBase64, so corrupted bytes are rejected instead of filed."New value: +"Optional SHA-256 of the original file (64 hex chars), checked with attachmentBase64 so corrupted bytes are rejected instead of filed."
    • changedInput schema / properties / attachmentToken / description
      Previous value: -"The token from request_attachment_upload, AFTER you have PUT the file bytes to its uploadUrl. Mutually exclusive with attachmentBase64."New value: +"The token from request_attachment_upload, once the file bytes have been PUT to its uploadUrl. Used instead of attachmentBase64, not with it."
    • changedInput schema / properties / lines / description
      Previous value: -"At least two lines. The debits must equal the credits TO THE SEN — an unbalanced entry is refused with the difference named. ⛔ LINE KEYS ARE STRICT: a key this schema does not list is REFUSED BY NAME and NOTHING is filed."New value: +"At least two lines. Debits equal credits to the sen, or the entry is refused with the difference named. Keys outside the line schema are refused by name and nothing is filed."
    • changedInput schema / properties / lines / items / properties / accountRef / description
      Previous value: -"The account CODE from this company's chart (best), or its EXACT name. Never a description and never a guess — an unknown ref is refused, and this tool never creates an account."New value: +"The account code from this company's chart, or its exact name. An unknown ref is refused; no account is ever created."
    • changedInput schema / properties / lines / items / properties / credit / description
      Previous value: -"The credit amount, MYR. Give this OR debit on a line — never both, never neither."New value: +"The credit amount, MYR. Each line carries exactly one of debit or credit."
    • changedInput schema / properties / lines / items / properties / debit / description
      Previous value: -"The debit amount, MYR. Give this OR credit on a line — never both, never neither."New value: +"The debit amount, MYR. Each line carries exactly one of debit or credit."
    • changedInput schema / properties / notes / description
      Previous value: -"A SHORT reviewer note: one or two plain sentences, in the reviewer's language, naming what the human should double-check before approving — which schedule the figure came from, which entry this reverses, why a control-account line is right. Not lengthy reasoning."New value: +"A short note for the reviewer (one or two sentences, shown at approval): which schedule the figure came from, which entry this reverses, why a control-account line is right."
  3. Changed1 schema field changed
    • changedInput schema / properties / attachmentMediaType / description
      Previous value: -"The attachment's MIME type, e.g. 'application/pdf'. Required when attachmentBase64 is given."New value: +"The attachment's MIME type, e.g. 'application/pdf'. Required when attachmentBase64 is given. It must match the file's bytes — a mismatch is refused and nothing is filed."
  4. Changed2 schema fields changed
    • changedInput schema / properties / lines / description
      Previous value: -"At least two lines. The debits must equal the credits TO THE SEN — an unbalanced entry is refused with the difference named."New value: +"At least two lines. The debits must equal the credits TO THE SEN — an unbalanced entry is refused with the difference named. ⛔ LINE KEYS ARE STRICT: a key this schema does not list is REFUSED BY NAME and NOTHING is filed."
    • addedInput schema / properties / lines / items / additionalProperties
      Added value: +false
  5. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / accountRef / description
      Previous value: -"The account CODE from this workspace's chart (best), or its EXACT name. Never a description and never a guess — an unknown ref is refused, and this tool never creates an account."New value: +"The account CODE from this company's chart (best), or its EXACT name. Never a description and never a guess — an unknown ref is refused, and this tool never creates an account."
  6. Changed2 schema fields changed
    • addedInput schema / properties / attachmentBytes
      Added value: +{
      +  "description": "The decoded byte size of the ORIGINAL file on disk — send it alongside attachmentBase64 and the server rejects a truncated paste instead of filing a corrupt file.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / attachmentSha256
      Added value: +{
      +  "description": "The SHA-256 of the ORIGINAL file as 64 hex chars — optional second check alongside attachmentBase64, so corrupted bytes are rejected instead of filed.",
      +  "type": "string"
      +}
  7. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare it as a non-read-only, non-idempotent, non-destructive mutation. The description goes well past that: it never posts, approval posts it as a deletable manual journal, it balances to the sen or is refused with the difference named, control-account lines are flagged and need the full review page, owner-loan over-repayment is refused (or filed with ownerLoanRefusal), and Contra/Refund Clearing lines are refused outright. It stops short of saying what the successful response contains (e.g. the draft identifier), which is the only notable disclosure gap for a non-idempotent mutation.

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

Conciseness3/5

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

Purpose is front-loaded and nearly every clause carries operational information, but it is delivered as one very dense paragraph with repeated restatement of schema rules (balance-to-the-sen, exactly one side, unknown ref refused) that the input schema already spells out. Splitting into posting/validation/attachment sections would make it easier to scan without losing content.

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 13-parameter, non-idempotent mutation with no output schema, the description covers the full decision surface an agent needs: what it does, what it refuses, what approval does, what gets destroyed (nothing — posted entries are corrected by reversal, never edited), and where to go for adjacent tasks. Nothing material is left to be inferred before the call is made.

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 85%, so the baseline is already high, yet the description adds real resolving behavior for accountRef (unknown ref refused, ambiguous name returns candidates, no account ever created) and the two-path attachment model (token vs base64, not both). Most remaining parameter meaning is carried by the schema's own per-field descriptions, so it is additive rather than transformative.

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?

Opens with a specific verb and resource ("Files a pending adjusting journal entry") and enumerates the concrete entry types it covers (accruals, prepayments, depreciation, corrections, reclassifications, year-end adjustments, reversing entries). It also separates itself from sibling draft creators by stating this journal carries no party/SST/stock effects, so an agent can route a bill or payment elsewhere 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 Guidelines5/5

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

Explicitly names when NOT to use it and the alternative for each case: bills, sales, paid expenses and customer payments go to create_bill_draft, create_invoice_draft, create_expense_draft or create_receipt_draft. It further routes amendments to revise_draft (kind 'journal'), originals to search_journal, attachments to request_attachment_upload, and new accounts to Taokeh.

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