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.

Income statement

income_statement
Read-only

Profit and loss for a period (from to to): revenue, cost of goods sold, gross profit, expenses and net income. An optional comparison comes in the same call: compare 'previous_period' (the equal-length window just before) or 'same_period_last_year' (the same dates a year earlier), or an explicit window with both compareFrom and compareEnd. It then returns both periods' full statements and, for every line and total, deltaCents and deltaPct, computed server-side in integer cents. deltaPct is null when the earlier figure is zero (no comparable base), and is measured against the absolute earlier figure, so a movement out of a loss keeps its sign. windows gives both windows, their day counts, whether they are the same length (equalLength) and whether either is still open (running to today or beyond); notes states this in words, including when a partial period is set against a full one. On periodic stock, when goods with a cost were sold in the window, cost of goods sold is RM 0 and there has been no stock count this financial year, a notes line says so: gross profit is then overstated until a stock take, or recording cost on every sale (Settings → Accounting).

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

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
compareNoNamed comparison window. 'previous_period' = the equal-length window immediately before from…to; 'same_period_last_year' = the same dates one year earlier. Omit for no comparison.
compareEndNoEnd of an explicit comparison window; needs `compareFrom`.
compareFromNoStart of an explicit comparison window; needs `compareEnd`, and overrides `compare`.

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. Changed2 schema fields changed
    • changedInput schema / properties / compareEnd / description
      Previous value: -"End of an explicit comparison window (use WITH compareFrom)."New value: +"End of an explicit comparison window; needs `compareFrom`."
    • changedInput schema / properties / compareFrom / description
      Previous value: -"Start of an explicit comparison window (use WITH compareEnd; overrides `compare`)."New value: +"Start of an explicit comparison window; needs `compareEnd`, and overrides `compare`."
  3. Changed3 schema fields changed
    • addedInput schema / properties / compare
      Added value: +{
      +  "description": "Named comparison window. 'previous_period' = the equal-length window immediately before from…to; 'same_period_last_year' = the same dates one year earlier. Omit for no comparison.",
      +  "enum": [
      +    "previous_period",
      +    "same_period_last_year"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / compareEnd
      Added value: +{
      +  "description": "End of an explicit comparison window (use WITH compareFrom).",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / compareFrom
      Added value: +{
      +  "description": "Start of an explicit comparison window (use WITH compareEnd; overrides `compare`).",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish it as a safe read, and the description goes well beyond them: server-side computation in integer cents, deltaPct null when the base is zero, sign preserved against the absolute earlier figure, open/partial windows flagged via equalLength and notes, and the periodic-stock caveat where COGS is RM 0 and gross profit is overstated until a stock take. This is exactly the behavioral context the annotations cannot carry.

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 purpose is front-loaded in the first clause and every sentence carries substantive information, with no filler. It is still one dense block of prose, and the closing periodic-stock caveat runs long and buries a niche condition in a single sentence.

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 of describing returns: both periods' full statements, per-line and per-total deltaCents and deltaPct, a windows object with day counts and equalLength, and a notes field. An agent knows what it will get back and how to interpret edge cases such as a null deltaPct or a partial period.

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 60%, and the description compensates by defining every parameter's meaning: from/to as the period bounds, the two named comparison modes, and the explicit compareFrom/compareEnd pair with its override rule. Most of this is restated from the schema rather than adding new syntax or format detail, which keeps it below a 5.

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: 'Profit and loss for a period (`from` to `to`)', then enumerates the exact line items returned (revenue, COGS, gross profit, expenses, net income). An agent can distinguish this from balance_sheet or cash_position without opening the 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?

Explains clearly when the optional comparison applies and how each mode is selected, including that an explicit window with compareFrom/compareEnd overrides `compare`. It does not name a sibling alternative or say when not to reach for this report versus, say, business_snapshot, 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