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.

Sales-channel summary

channel_summary
Read-only

Sales by channel (Shopee, TikTok, Shopify, your storefront, …) for from to to (YYYY-MM-DD). Per channel: order count, gross goods revenue, seller discounts, shipping income, freight-out, marketplace fees, netProceeds (the settlement booked on each sale's entry: the net payout owed for Shopee and TikTok, what settled into cash or gateway clearing for the storefront), returns and netGoodsRevenue (gross goods revenue less returns). returns is revenue reversed in the range by credit notes (on the credit note's date) plus goods revenue taken back by a marketplace Returns-page reversal (journal reference <CHANNEL>-CN-<order>, no credit-note document), on the reversal's own date; once both dates are in range a fully reversed order nets to 0. Only goods revenue enters returns: discounts, shipping, freight, fees and netProceeds come from the invoice side and are gross of returns. A channel with only returns in the range still shows (saleCount 0, negative netGoodsRevenue). A Shopee-wallet fee credit note adds 0 to returns; Shopee wallet deductions booked since 31 Oct 2026, and Shopee fees on old-books invoices settled through the wallet since 1 Nov 2026, sit on wallet entries and appear in income_statement, not here. A settlement-correction credit note moves only its goods part into returns; its fee and shipping parts are booked on the credit note, so a fee-only correction does not show here, and past figures can still move as corrections are approved. marketplaceFees excludes storefront gateway fees (booked on payout entries). TikTok is the exception: its fees and freight, booked later by "Book settlement fees" (TIKTOK-FEE-<order id>), are included and dated by the settlement entry, so a June sale settled in July shows its fees in July and a month can show a tiktok row with saleCount 0. Manual and non-channel sales are excluded.

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

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. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already establish a safe read-only report, and the description goes far beyond them by disclosing date semantics for returns and reversals, settlement-timing quirks ('a June sale settled in July shows its fees in July'), the TikTok exception, the treatment of settlement-correction credit notes, and the fact that past figures can move as corrections are approved. These are exactly the behavioral caveats an agent needs to interpret the numbers correctly.

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?

The core purpose is front-loaded, which is good, but the rest is a single dense paragraph of accounting rules with long run-on clauses (e.g., the Shopee wallet and settlement-correction sentences). Most details are substantive, but they would be far easier to parse as structured bullets, and the volume risks swamping the agent before it reaches the key caveats.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, multi-channel revenue report with no output schema, this is unusually complete: it enumerates the returned metrics (order count, gross goods revenue, discounts, shipping income, freight-out, marketplace fees, netProceeds, returns, netGoodsRevenue) and explains edge cases like a returns-only channel showing saleCount 0. It falls short of a 5 only because it does not describe the response structure or confirm whether the metrics are integers/currency strings.

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 description coverage is 0%, so the description carries the burden for the two date parameters. It states the `YYYY-MM-DD` format for `from` and `to`, but that only repeats the schema's regex pattern, and it never clarifies whether the range bounds are inclusive, what timezone applies, or how a single-day query should be expressed. It adds some scoping meaning but leaves real ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific resource and grouping: 'Sales by channel (Shopee, TikTok, Shopify, your storefront, …) for `from` to `to`.' It clearly distinguishes the report from income_statement and notes that manual/non-channel sales are excluded. The only weakness is that the verb is implicit (it reads as a noun phrase rather than 'Returns sales by channel'), and it never names the sibling sales_summary as the alternative for non-channel totals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides meaningful exclusions and routing: wallet deductions 'appear in income_statement, not here,' manual and non-channel sales are excluded, and storefront gateway fees are booked elsewhere. However, there is no explicit when-to-use statement such as 'use this instead of sales_summary when you need a per-channel breakdown,' so an agent must infer the selection rule from scope alone.

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