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.

Customer statement

customer_statement
Read-only

One customer's statement of account: the same rows, running balance and closing figure as the Statement PDF on the customer's page. Takes customerId (from resolve_customer) or customer (a name, resolved like open_invoices; an ambiguous name returns candidates), and optional from/to (YYYY-MM-DD). Each line in lines is what the PDF prints, in order: document (an invoice, credit note or debit note; charge is what it put on the customer's account, which can be lower than the invoice total, such as a marketplace order's net payout, and is negative on a credit note), payment (money applied to the document above it, on or before to) and on_account (a payment received but not applied, in payment, or a refund paid out and not applied, in charge). balance is the running balance and closingBalance the total outstanding the PDF prints. With no from, the statement covers the whole history and its closing equals the customer's A/R aging total as of to (except where a bank line was matched to invoices for more than it booked to A/R, an internal fix never printed for the customer). With from, it lists only documents and on-account payments from then, with no balance brought forward, so its closing is the period's own figure. With no to, it runs to the later of today and the customer's latest document or payment; period states the dates used. Capped at 300 lines; when more is true the closing and totals are still exact, and a later from shows the rest. With vendorId (from resolve_vendor) or vendor instead, it is that supplier's statement, as the Statement PDF on the vendor's page prints it: document lines are bills and buy-side debit notes, payment lines the money paid, and closingBalance what the company owes the supplier.

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": "customer_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fromNo
vendorNoA supplier statement: a vendor name, resolved against this company's vendors.
customerNoA customer name, resolved against this company's customers.
vendorIdNoA supplier statement: the vendor id from resolve_vendor. Give this OR `vendor`, not a customer.
customerIdNoThe customer id from resolve_customer. Give this OR `customer` (or, for a supplier, vendorId or vendor).

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. Changed3 schema fields changed
    • changedInput schema / properties / customerId / description
      Previous value: -"The customer id from resolve_customer. Give this OR `customer`."New value: +"The customer id from resolve_customer. Give this OR `customer` (or, for a supplier, vendorId or vendor)."
    • addedInput schema / properties / vendor
      Added value: +{
      +  "description": "A supplier statement: a vendor name, resolved against this company's vendors.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / vendorId
      Added value: +{
      +  "description": "A supplier statement: the vendor id from resolve_vendor. Give this OR `vendor`, not a customer.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish a safe read (readOnlyHint=true, openWorldHint=false), and the description goes well beyond them: a 300-line cap with `more`, the guarantee that closing and totals stay exact when truncated, a documented internal-fix exception where a bank line was matched for more than it booked to A/R, and name-resolution failure behavior. These are non-obvious traits an agent could not infer from structured fields.

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?

Nearly all content is substantive, but it is delivered as one dense block with parenthetical sub-clauses nested several levels deep, making the customer/period/truncation rules hard to scan. Bullet or sentence-per-rule structure would preserve the information and improve retrieval of the key constraints.

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?

With no output schema, the description carries the full burden and does so: it defines each `lines` entry (`document`, `payment`, `on_account`), the sign convention on credit notes, what `charge` means versus invoice total, and what `balance`, `closingBalance` and `period` contain. An agent can predict the response shape without inspecting a schema.

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 67%, and the description compensates by explaining the identifier alternatives and, more importantly, the semantic effect of omitting `from` (full history, closing equals aging total) versus supplying it (period-only, no balance brought forward), plus the default `to` rule. The `YYYY-MM-DD` format is only restated from the schema pattern, which is minor redundancy.

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 ('One customer's statement of account') and anchors it to a concrete artifact ('the same rows, running balance and closing figure as the Statement PDF'). It also carves out the supplier variant ('with `vendorId`... it is that supplier's statement'), so an agent can distinguish the two modes immediately.

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 routing cues: use `customerId` from resolve_customer or a name 'resolved like open_invoices', with ambiguous names returning candidates, and notes the closing figure equals the A/R aging total so an agent can cross-check against ar_aging. It does not explicitly state when to prefer this over ap_aging/ar_aging reports, so it stops short of full alternative 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