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.

Pending draft: tick bank entries as cleared (human approves in Taokeh)

create_bank_clearing_draft

Files a pending draft of ticks for Banking → Clear transactions: which book entries appear on the bank statement, each paired with a statement line or given the date it cleared. Nothing is ticked until an admin or bookkeeper approves in Taokeh; approval ticks them as the page's Save ticks does (a tick posts nothing to the books and can be un-ticked). Every id comes from bank_reconciliation_report: bankAccountId, statementId (or asOf, a date, when there is no statement), and per item entryId (from clearStep.uncleared) with either statementLineId (from clearStep.candidateLines; the entry clears on the later of the line's date and its own) or clearedDate (YYYY-MM-DD; defaults to the reconciliation date, as on the page). At most 300 items per draft. A cancelling pair from hints.cancellingPairs is two items with no line and the pair's clearDate. Refused by name at filing (the real tick is run and rolled back) and at approval: an entry that is not uncleared on this account up to the date (posted from a statement line, the opening balance, already ticked, dated later); a line that is posted, fully paired, dated after the reconciliation date, without room left for the entry, or moving money the other way; a cleared date before the entry was booked or after the reconciliation date; a date inside a locked period; a card; a foreign-currency account (Taokeh posts and reconciles only ringgit accounts for now; the refusal names the account); an entry already in another pending draft. If anything the draft was filed against changes before approval, approval refuses and nothing is ticked.

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": {
      "bankAccountId": "<bankAccountId>",
      "items": "<items>"
    },
    "name": "create_bank_clearing_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoReconcile to a date by hand (no statement). Give this OR statementId.
noteNoA short note for the owner: why these are cleared.
itemsYesThe ticks. An unknown key in an item is refused by name.
notesNoNot a filter on this tool. Pass the owner note as `note`.
ticksNoNot a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}].
bankIdNoNot a filter on this tool. Pass the bank account as `bankAccountId`.
entriesNoNot a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}].
needsReviewNotrue flags the draft for the reviewer.
statementIdNoThe statement you reconcile to, from bank_reconciliation_report `statement.id`. Give this OR asOf.
bankAccountIdYesThe bank account, from bank_reconciliation_report.

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. Changed7 schema fields changed
    • changedInput schema / properties / bankAccountId / description
      Previous value: -"REQUIRED — the bank account, from bank_reconciliation_report."New value: +"The bank account, from bank_reconciliation_report."
    • changedInput schema / properties / bankId / description
      Previous value: -"NOT a filter on this tool. Pass the bank account as `bankAccountId`."New value: +"Not a filter on this tool. Pass the bank account as `bankAccountId`."
    • changedInput schema / properties / entries / description
      Previous value: -"NOT a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}]."New value: +"Not a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}]."
    • changedInput schema / properties / needsReview / description
      Previous value: -"Set true when something gave you pause."New value: +"true flags the draft for the reviewer."
    • changedInput schema / properties / note / description
      Previous value: -"A SHORT note for the owner: why these are cleared."New value: +"A short note for the owner: why these are cleared."
    • changedInput schema / properties / notes / description
      Previous value: -"NOT a filter on this tool. Pass the owner note as `note`."New value: +"Not a filter on this tool. Pass the owner note as `note`."
    • changedInput schema / properties / ticks / description
      Previous value: -"NOT a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}]."New value: +"Not a filter on this tool. Pass the ticks as `items`: [{entryId, statementLineId?, clearedDate?}]."
  3. Changed2 schema fields changed
    • removedInput schema / properties / items / items / properties / statementLineId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / items / items / properties / statementLineId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the annotations: a tick posts nothing to the books and can be un-ticked, nothing is applied until human approval, drafts are refused if the underlying data changed, and there is a 300-item cap. It also enumerates concrete refusal conditions (locked periods, cards, foreign-currency accounts, already-ticked entries, entries in another draft), which is exactly the behavioral context an agent needs before filing.

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 purpose and approval semantics before the id provenance and refusal list, and nearly every clause carries information. The single dense paragraph and long refusal enumeration make it heavy to parse, but little is genuinely redundant.

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 10-parameter draft-creation tool with no output schema, the description covers what is created, what happens on approval, where every id comes from, size limits, and the full refusal surface. An agent has enough to call it correctly and to predict failure modes without further context.

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: statementId vs asOf as mutually exclusive reconciliation targets, clearedDate defaulting to the reconciliation date, and the pairing rule that an entry clears on the later of the statement line's date and its own. It also explains the cancelling-pair construction from hints.cancellingPairs.

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 pending draft of ticks for Banking → Clear transactions', and immediately clarifies the deferred-approval model ('Nothing is ticked until an admin or bookkeeper approves in Taokeh'). This is clearly distinguishable from sibling draft tools and from bank_reconciliation_report, which it names as the id source.

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 strong context: use it to stage ticks, with approval happening elsewhere, and it names the prerequisite tool (bank_reconciliation_report) for every id. It does not explicitly compare against alternatives such as bank_reconciliation_status or bank_review_queue, so it stops short of full when/when-not routing.

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