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.

Stock levels

stock_level
Read-only

How many units of one product are on hand now, found by product name, SKU or exact barcode (an ambiguous query returns candidates). onHand is the company total. A service item ("Service — no stock") returns isService:true and onHand:null: it holds no stock. A placeholder Taokeh made to carry document lines (a marketplace item such as SHOPEE-ITEM, TIKTOK-ITEM or SHOPIFY-ITEM, a POS summary item, an item added during migration, a scanned line) returns isPlaceholder:true and onHand:null: any figure it holds is not stock. On a company with more than one stock location, product.locations lists each ({location, isDefault, onHand}; a location without the item reads 0); single-location books omit the list. Locations need not add up to onHand. Less than onHand: the difference is on record at no location (stock booked before locations were set up). More than onHand: a sale took more than its location held, so the extra came off the total but no shelf. onHand is the figure the books value. On a company using Counter (the till), the figure is as at the last day-close, because counter sales move stock when the day is closed, not at each scan.

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": {
      "query": "<query>"
    },
    "name": "stock_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

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

A4.6/5.0
Behavior5/5

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

Annotations only declare a safe closed-world read; the description adds substantial behavior the agent could not otherwise know: service items and placeholder SKUs return isService/isPlaceholder with onHand:null, multi-location books include product.locations with zero for missing items, location sums may diverge from onHand and why, and Counter companies lag to last day-close. These are real interpretation rules for nulls and stale figures that no annotation or schema conveys.

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 answer is front-loaded in the first clause, with the caveats that follow ordered by likelihood of tripping an agent (service, placeholder, multi-location, Counter). It is dense and reads as one long block rather than separated sentences, but nearly every clause carries decision-relevant information.

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?

There is no output schema, so the description must define the return values, which it does thoroughly: onHand as the company total, isService/isPlaceholder null semantics, and the shape of product.locations entries. For a one-parameter read tool, nothing an agent needs in order to call it and interpret 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% for the single 'query' parameter, so the description must carry the burden, and it does: it specifies the three accepted forms (product name, SKU, exact barcode) and the ambiguity behavior returning candidates. Only the matching semantics of a non-exact name query are left implicit.

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+resource ('how many units of one product are on hand now') plus the lookup keys, which clearly separates it from siblings like low_stock or stock_movements. An agent can immediately tell this is a point-in-time on-hand lookup rather than a threshold report or a movement history.

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?

Establishes clear context for use (current on-hand for a single product, matched by name/SKU/barcode) and explains that an ambiguous query returns candidates, which tells the agent how to handle a failed exact lookup. It never names an alternative tool or states when not to use it, so it stops short of explicit 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