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.

Working capital (days + who pays slowly)

working_capital
Read-only

Working capital in days, month by month, plus who is slow to pay: where the cash went when the P&L shows a profit. from and to are YYYY-MM, inclusive, at most 36 months. months[]: per month revenue, cogs, arClose, apClose, inventoryClose, days (calendar days covered) and four ratios: debtorDays (arClose ÷ revenue × days), creditorDays (apClose ÷ cogs × days), inventoryDays (inventoryClose ÷ cogs × days) and cashConversionCycle (debtorDays + inventoryDays − creditorDays). customers and vendors: per party avgDaysToPay (amount-weighted, from the document date to the date the payment applied; a deposit or advance paid before its document applies on the document's date, so counts as 0 days), avgDaysPastDue (from the due date), invoices, paid and withTerms, slowest first, up to 50 a side with total, shown and more. A ratio with a zero denominator is null, and cashConversionCycle is null when any leg is. inventoryDays and cashConversionCycle are withheld (null, with a note) unless the company runs perpetual costing: under modified periodic, cost of goods sold is recognised only at a stock take, so a monthly figure would measure something else; inventoryClose is still returned. Payment speed excludes cash sales and cash bills, opening invoices and bills, refunds and contra set-offs. Months before the accounting start date and after today are absent. A running month is partial: true with through (today), its days counting only elapsed days; the cutover month is partial with startsAt and counts from there, so its revenue can be below financial_timeseries' figure for that month. Sources: the /reports income statement, the A/R and A/P aging totals at month end, the inventory account's balance (with any stock class accounts and work in progress); basis states every formula and input. Figures only: no verdict, benchmark or trend label. A window too wide for the time budget is refused, naming how far it got.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "working_capital"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes

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

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

Goes well beyond the readOnly/destructive annotations: it discloses that inventoryDays and cashConversionCycle are withheld as null under modified periodic costing and why, that zero-denominator ratios yield null, that running and cutover months are marked partial with through/startsAt, and which transactions are excluded from payment speed. It also states source systems and that a basis field spells out every formula, plus the refusal behaviour for over-wide windows.

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 the purpose, and every sentence carries substantive information — ratio formulas and null/caveat rules are necessary because there is no output schema. The cost is density: a single unbroken paragraph of backticked field names that is harder to scan than it needs to be.

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 and only two bare string parameters, the description supplies the full response contract: months[] fields, the four ratio formulas, customers/vendors fields, sort order, the 50-a-side cap with total/shown/more, and the basis field. Nothing an agent needs in order to interpret or trust the result 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 0%, so the description carries the burden, and it does: 'from' and 'to' are YYYY-MM, inclusive, capped at 36 months. That is meaningful added semantics (format plus range constraint) beyond the bare pattern in the schema, though it gives no guidance on defaults or ordering.

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 combination — working capital in days, month by month, plus payer/vendor payment speed — and frames the intent with 'where the cash went when the P&L shows a profit'. It is clearly distinguishable from siblings like financial_timeseries, ap_aging and ar_aging because it describes a derived ratio view rather than a raw ledger feed.

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?

The opening clause supplies a clear use case (explaining the cash/profit gap) and the description delineates scope limits: at most 36 months, months before the accounting start or after today are absent, oversized windows are refused. It does not explicitly route the agent to or away from ap_aging/ar_aging/financial_timeseries, so alternatives remain implicit 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