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.

Counter day

counter_day
Read-only

The Counter (Kaunter) till's day for one date (default today, Malaysia time): receipt and voided counts, cash and DuitNow QR totals, the 5-sen cash-rounding total, status (open or closed), the receipt-number range with voided numbers, and sales billed on credit at the till. While status is 'open' nothing has posted: the takings are not yet in sales_summary, cash_position or income_statement, and stock and COGS have not moved. Once 'closed', saleId names the one consolidated cash sale the day posted as, and the figures reconcile to the books. creditSales (the till's "Invoice it" sales) post at once as ordinary credit invoices, so they are already in sales_summary, income_statement, open_invoices and ar_aging, and they are not part of cashTotal, qrTotal or the close: the drawer holds cash and QR only. cashTotal sums the rounded cash receipts; cashRefunds is cash paid out of the drawer for credit-note refunds, cashReceipts is cash invoice payments put into it and cashPayments is supplier bills paid from it, cashExpenses is expenses paid from it, and otherCashIn and otherCashOut are every other entry in the books that put money into or took money out of that Cash account that day (a journal, cash banked, a cash sale outside the till), so the drawer should hold cashReceipts.drawerExpected (= cashTotal − cashRefunds.total + cashReceipts.total − cashPayments.total − cashExpenses.total + otherCashIn.total − otherCashOut.total), the close screen's figure. otherCashIn and otherCashOut read 0 when the counter's cash account is a bank account in Banking. qrTotal is never rounded. Receipts of RM10,000 or more cannot join a consolidated e-invoice and post as their own sale: consolidatedCount/consolidatedTotal cover the rest, individualCount/individualTotal these, and awaitingBuyerCount counts those still without buyer particulars. Counter is an add-on; without it the status is 'not_available'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "counter_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe business date, `YYYY-MM-DD`, Malaysia time. Omit for today.

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. Changed1 schema field changed
    • changedInput schema / properties / date / description
      Previous value: -"The business date, YYYY-MM-DD in Malaysia time. Omit for today."New value: +"The business date, `YYYY-MM-DD`, Malaysia time. Omit for today."
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, non-destructive, and closed-world. The description adds substantial behavioral context beyond that: open-vs-closed posting semantics, stock/COGS not moving until close, credit sales posting immediately as ordinary invoices, the drawerExpected reconciliation formula, otherCashIn/Out reading 0 for bank accounts, QR never being rounded, and 'not_available' when the Counter add-on is absent.

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 description is front-loaded with purpose and date default, then continues as a single dense paragraph of field semantics. For a tool with no output schema this detail is warranted rather than filler, though structuring the field explanations would improve scanability.

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, so the description carries the full burden of explaining return values. It does so exhaustively — field meanings, the cash reconciliation formula, credit-sale posting behavior, rounding rules, e-invoice thresholds, and add-on unavailability — leaving an agent with enough to interpret results correctly.

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?

There is only one optional date parameter, and schema description coverage is 100% — the schema already states the YYYY-MM-DD format and omission default. The description repeats 'default today, Malaysia time' without adding new meaning beyond the schema, so baseline 3 applies.

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 resource and scope: the Counter (Kaunter) till's day for one date, defaulting to today in Malaysia time. It enumerates the returned figures and distinguishes itself from siblings by noting that open-day takings are not yet in sales_summary, cash_position or income_statement.

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 clear context for when the till figures diverge from the books: while status is 'open' nothing has posted, and creditSales already appear in sales_summary, income_statement, open_invoices and ar_aging. However, it never explicitly says 'use counter_day instead of X' or excludes scenarios, so routing remains implied rather than stated.

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