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

create_customer_refund_draft

Files a pending draft of Refund on a credit note with credit left, or on an overpaid invoice: the money the company already paid back to the customer, recorded on the money-out bank line it went out on. It never pays anything: the line is already on an imported bank statement. 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 A/R, Cr the bank) and the credit left goes down by it; the line is matched. A line already posted to the customer 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 invoice already used, a line over the credit left, a money-in line, a line already matched, 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. A refund paid from the cash drawer has no bank line: it is recorded with Refund from Cash on the credit note's Refund page.

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": {
      "saleId": "<saleId>",
      "bankTransactionId": "<bankTransactionId>"
    },
    "name": "create_customer_refund_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
saleIdYesThe credit note with credit left, or the overpaid invoice, from search_documents.
needsReviewNotrue flags the draft for the reviewer.
bankTransactionIdYesThe money-out bank line the refund went out 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.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that nothing posts until an admin or bookkeeper approves, that approval mirrors the Refund page (Dr A/R, Cr the bank) and decrements credit left, that an already-posted line merely gets matched, and that only one refund draft per bank line may be pending at a time. It enumerates the exact refusal conditions in the page's own wording and states what the result carries. None of this repeats the annotations and nothing contradicts them.

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?

The core action, the no-payment guarantee, and the approval semantics are front-loaded, and every sentence carries substantive information – nearly nothing is filler. It loses a point for being a single dense block of run-on sentences, with the long enumeration of refusal reasons and the trailing cash-drawer aside that would read far better as a short list.

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 draft-creating mutation with no output schema, this covers everything an agent needs: what is created, what is deliberately not posted, who approves, what approval does to the ledger, the uniqueness constraint, the full refusal set, the not-found case, and the shape of the returned result. The alternative paths for cash refunds and duplicate-looking lines are also accounted for.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter already carries its own description including the cross-tool pointers ('from search_documents', 'from bank_review_queue'). The prose adds the accounting semantics behind saleId (credit note with credit left vs overpaid invoice, amount capped at credit left), which is genuine but modest added meaning; it says nothing extra about note or needsReview. The baseline 3 for a fully documented schema is the right landing point.

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?

The description opens with a concrete verb and resource: 'Files a pending draft of Refund on a credit note with credit left, or on an overpaid invoice,' and immediately bounds scope to the money-out bank line it went out on. It also draws a sharp boundary against the cash-drawer variant ('A refund paid from the cash drawer has no bank line'), so an agent can tell this apart from the neighboring refund and payment tools without inspecting their schemas.

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 function as usage guidance: the target must be a credit note with credit left or an overpaid invoice, and the source must be a money-out line from an imported bank statement of this company. It also redirects in two cases – cash-drawer refunds go to 'Refund from Cash on the credit note's Refund page,' and a line that looks like money already booked is handled as a separate payment on the Refund page. It stops short of an explicit 'use this when… instead of X' statement naming a sibling tool, so it falls just below the top band.

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