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 recording a supplier refund on a money-in bank line (a person approves in Taokeh)

create_supplier_refund_draft

Files a pending draft of Refund on a supplier debit note with credit left, or on an overpaid bill: the money the supplier already paid back, recorded on the money-in bank line it came in on. The refund is the line's amount, up to the credit left. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval records it exactly as the Refund page does (Dr the bank, Cr A/P) and the credit left goes down by it; the line is matched. A line already posted to the supplier posts nothing new: approval only matches it to the document. The result carries the amount, the credit left before and after, the bank line and the journal lines. Refused at filing and approval in the page's words: no credit left, credit the bill already used, a line over the credit left, a money-out line, a line already matched, a line dated before the debit note, a line on a foreign-currency account, a date in a locked period. A line that looks like money already in the books is refused: the person confirms a separate payment on the Refund page. A line not from a bank statement of this company is answered as not found. One refund draft per bank line waits at a time.

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": {
      "purchaseId": "<purchaseId>",
      "bankTransactionId": "<bankTransactionId>"
    },
    "name": "create_supplier_refund_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
purchaseIdYesThe debit note with credit left, or the overpaid bill, from search_documents.
needsReviewNotrue flags the draft for the reviewer.
bankTransactionIdYesThe money-in bank line the refund came in on, from bank_review_queue.

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

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

Goes well beyond the annotations: nothing posts until an admin/bookkeeper approves in Taokeh, approval posts Dr bank / Cr A/P, reduces credit left, and matches the line; an already-posted line posts nothing new and is only matched. It also discloses the 'one refund draft per bank line' concurrency limit, the duplicate-money refusal with its human-confirmation escape hatch, and the not-found answer for lines outside this company's bank statements. This is consistent with readOnlyHint=false and destructiveHint=false and adds substantial operational context.

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?

Front-loaded with the core action and tightly worded per sentence, but the whole definition is one dense run-on paragraph with no separation between flow, refusals, and result shape. The eleven-item refusal list, while informative, could be grouped or trimmed, and the final two sentences (duplicate-money refusal, not-found) are appended without structural markers.

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?

No output schema exists, and the description compensates by listing what the result carries: amount, credit left before and after, the bank line, and the journal lines. Combined with the approval workflow, refusal taxonomy, and concurrency rule, an agent has everything needed to call this correctly or to explain a rejection.

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 schema already documents all four parameters and a baseline 3 applies. The description still adds real meaning beyond it, chiefly the derivation rule — 'the refund is the line's amount, up to the credit left' — which explains that no amount parameter exists because the value is computed, and it clarifies the two-source nature of purchaseId and the statement-membership requirement for bankTransactionId.

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 Refund' — and pins the exact source objects: a supplier debit note with credit left, an overpaid bill, and the money-in bank line it arrived on. The scope is narrow enough that an agent can tell this apart from sibling draft creators (customer refunds, payments, contra entries) without opening any 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?

Preconditions for use are explicit (debit note with credit left, or overpaid bill, plus a money-in line), and the long refusal list effectively enumerates when-not conditions: no credit left, money-out line, already-matched line, foreign-currency account, locked period, line predating the debit note. It does not name a specific alternative tool to use instead for those rejected cases, so it stops short of full routing guidance.

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