Skip to main content
Glama

calculate-bulk-price

Compute the effective bulk price for a given product and quantity: applies the product's quantity-discount tiers and GST, validates the minimum order quantity, and shows the next discount tier. Pass options to price a choice other than the default (e.g. UV printing, which can add an extra per unit). Indicative pricing — final quotes come from the sales team.

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": {
      "slug": "<slug>",
      "quantity": "<quantity>"
    },
    "name": "calculate-bulk-price"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesProduct permalink slug or id (from search-products)
optionsNoOptional choices from get-product-details options, e.g. ["Print Type: UV"] (or just ["UV"]). Omit for the defaults.
quantityYesNumber of units

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. Changed1 schema field changed
    • addedInput schema / properties / options
      Added value: +{
      +  "description": "Optional choices from get-product-details options, e.g. [\"Print Type: UV\"] (or just [\"UV\"]). Omit for the defaults.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does most of the work: it discloses the pricing pipeline (tiers → GST), that MOQ is validated (implying a rejection path), and that results are indicative rather than binding. It omits what happens on an invalid slug, out-of-range quantity, or unrecognised option string, which is the main remaining gap for a 3-parameter tool with no annotations.

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 sentences, front-loaded with the core operation, then the optional-options hint and the indicative-pricing caveat. No filler and no repetition of the schema.

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 no output schema, the description must convey what comes back, and it does: an effective price incorporating tiers and GST, an MOQ check, and the next discount tier. An agent could call this correctly from the description alone; only error/failure semantics are left implicit.

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 coverage is 100% and the schema already documents slug, quantity bounds, and the options format with the 'Print Type: UV' example. The description adds only the pricing consequence of options ('can add an extra per unit') and the tier/MOQ role of quantity, which is marginal value over the schema.

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 ('compute the effective bulk price for a given product and quantity') and then enumerates the exact computations: quantity-discount tiers, GST, MOQ validation, next-tier display. This is distinguishable from get-brand-store-pricing and request-quote without opening either 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?

Establishes the use context (pricing a product at a quantity, optionally with non-default options) and a clear boundary: 'Indicative pricing — final quotes come from the sales team,' which signals when to escalate to a quote request. It does not name the sibling tool explicitly, 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