Skip to main content
Glama

Calculate Kash cart

calculate_cart
Read-onlyIdempotent

Get an itemized quote and VAT totals from the connected Kash shop before checkout. Does not create a sale or reserve stock.

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": {
      "lines": "<lines>"
    },
    "name": "calculate_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
contextNoDefaults to on_premises. Kash can reject contexts it cannot quote.

Output Schema

NameRequiredDescriptionDefault
linesYes
taxesYes
totalsYes
contextYes
currencyYes
pricing_scaleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is largely covered. The description's added value is the explicit 'no sale, no stock reservation' guarantee, which is genuinely useful for a tool named 'calculate_cart' but is partly a restatement of readOnlyHint; it says nothing about error handling or what the quote contains beyond VAT totals.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero filler; the positive capability is front-loaded and the scope-limiting caveat follows immediately. Every clause earns its place.

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?

With rich annotations and an output schema, the description need not explain return values, and it correctly covers purpose and the non-mutating guarantee. The remaining gap is parameter-level meaning (especially 'quantity' and how lines map to catalog items), which the description leaves entirely to the schema.

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 only 50%, and the description itself never mentions the 'lines' or 'context' parameters, so it does not compensate for gaps such as the undocumented 'quantity' field. The schema does describe item_id, variant_ids, and the context enum, leaving this at minimum-viable rather than strong.

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?

Names a specific verb and output ('Get an itemized quote and VAT totals') plus the scope ('before checkout') and the source system ('connected Kash shop'). The negative clause ('Does not create a sale or reserve stock') disambiguates it from any checkout/order-creation tool, so an agent can distinguish it without inspecting siblings.

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 'before checkout' framing plus the explicit statement that it neither creates a sale nor reserves stock gives clear when-to-use and implicit when-not-to-use guidance. It stops short of naming the alternative tool an agent should call to actually complete a sale, so it falls just shy of a 5.

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