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 registering a purchase on the asset register (posts nothing)

create_asset_draft

Files a pending draft that puts a purchase already in the books on the Fixed Assets register, as "Add to the register" does from the waiting list. It posts nothing, at filing or at approval: the purchase (an expense, a bill or a bank line on a fixed-asset account) is already in the books, and its cost, asset account and purchase date come from that line. lineId is one of asset_register waiting; the rest is the register row: name, category, in-service date (default: the purchase date), residual value, and the method with its life or rate. Nothing is saved until an admin or bookkeeper approves in Taokeh. Refused at filing and approval in the form's words: a line no longer waiting or already registered, a residual not below the cost, an in-service date before the purchase, a straight-line asset with no life, a reducing-balance asset with no rate or one above 100%. A second draft for the same purchase line is refused while one waits, naming it. An asset bought on hire purchase or a loan, or one owned before the books started, is added on the New asset form in Taokeh; a cash, bank or card purchase is an expense first (create_expense_draft), then registered here.

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": {
      "lineId": "<lineId>",
      "name": "<name>",
      "method": "<method>"
    },
    "name": "create_asset_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
nameYesThe asset's name.
noteNoA short note for the reviewer: where the figures came from.
lenderNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
lineIdYesThe purchase line waiting to be registered (asset_register `waiting[].lineId`).
methodYesThe depreciation method.
sourceNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
ratePctNoReducing balance: the annual rate %, above 0 and up to 100.
categoryNoAn optional category, e.g. Motor vehicles.
createLoanNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
needsReviewNotrue flags the draft for the reviewer.
depositAmountNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
inServiceDateNoThe date it went into use, YYYY-MM-DD (default: the purchase date).
residualValueNoThe residual value in ringgit; 0 when none.
acquisitionDateNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
assetAccountCodeNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
usefulLifeMonthsNoStraight-line: the useful life in whole months.
depositAccountCodeNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
financedByAccountCodeNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.
depreciationAlreadyTakenNoNot a filter on this tool. An asset bought on hire purchase or a loan, or owned before the books started, is added on the New asset form in Taokeh.

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.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false; the description goes well beyond them by explaining that nothing is posted at filing or approval, that nothing is saved until an admin or bookkeeper approves in Taokeh, and that a duplicate draft for the same purchase line is refused and named. It also enumerates the specific filing-time and approval-time rejection conditions, which is exactly the behavioral detail an agent needs before calling.

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 what it does and the key 'posts nothing' constraint, then stages prerequisites, field sourcing, approval flow, rejections, and alternatives in a sensible order. It is dense and runs long for a single paragraph, and the final routing sentence partly duplicates the schema's repeated 'Not a filter on this tool' notes, but no sentence is idle.

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 20-parameter, 3-required mutation tool with no output schema, the description covers what is derived vs supplied, defaults, approval gating, duplicate handling, and the full refusal set. Nothing an agent needs in order to call it correctly, or to know it cannot succeed, is missing.

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 already 100%, so the baseline is 3, but the description adds real meaning on top: cost, asset account and purchase date are not parameters at all but are derived from the selected line, `lineId` is sourced from asset_register `waiting`, and in-service date defaults to the purchase date. It also ties the method choice to its required companion (`usefulLifeMonths` for straight line, `ratePct` for reducing balance), which the schema states only separately.

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 that registers an existing purchase on the Fixed Assets register — and anchors it to a familiar UI action ("as 'Add to the register' does from the waiting list"). It explicitly separates itself from create_expense_draft and from the New asset form, so the agent can pick it 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?

Gives explicit preconditions (the purchase must already be in the books and sitting in asset_register `waiting`) and explicit exclusions with the alternative named for each: hire-purchase/loan or pre-books assets go to the New asset form in Taokeh, and cash/bank/card purchases must first be an expense via create_expense_draft. When-to-use and when-not-to-use are both covered.

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