Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.order_create

Creates a verified e-commerce customer order (COD or QR payment) with atomic inventory validation and deduction, server-side total calculation, and post-write database verification.

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": {
      "customerName": "<customerName>",
      "customerPhone": "<customerPhone>",
      "customerAddress": "<customerAddress>"
    },
    "name": "commerce.order_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoShorthand single-item size
colorNoShorthand single-item color
itemsNoArray of line items: [{ productId?, productName?, variant?, size?, color?, quantity }]
siteIdNoOptional store Site ID
variantNoShorthand single-item variant name
quantityNoShorthand single-item quantity
siteNameNoOptional store name (e.g. 'Pokhara Clothing')
productIdNoShorthand single-item product ID
productNameNoShorthand single-item product name
customerNameYesCustomer full name
deliveryTypeNoDelivery or pickup (default: 'delivery')
customerEmailNoOptional customer email
customerPhoneYesCustomer phone number
paymentMethodNoPayment method (default: 'cod')
customerAddressYesDelivery address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false and openWorld=true. The description adds genuinely useful behavioral detail beyond that: atomic inventory validation and deduction, server-side total calculation, and post-write database verification — telling the agent that inventory is mutated and totals are not client-supplied. It does not state failure semantics (e.g., insufficient-stock rollback) or permission requirements, which keeps it from a 5.

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?

A single front-loaded sentence with no filler; the key side effect (inventory deduction) is stated up front. It is dense but every clause carries information, so no trimming is obviously warranted.

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

Completeness3/5

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

This is a 15-parameter mutation tool with no output schema, so the description carries extra burden. It explains the internal behavior well but omits what is returned (order ID, computed total, verification status) and how the shorthand-versus-items input forms relate. Adequate but with clear gaps for an agent composing the call.

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%, so the baseline is 3. The description adds no meaning about the most ambiguous schema feature — the coexistence of a single-item shorthand (productId/size/color/variant/quantity) and an items array — nor about how defaults for deliveryType and paymentMethod are resolved. The payment-method mention is the only parameter-related signal.

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 names a specific verb and resource ("Creates a verified e-commerce customer order") and scopes it with the supported payment modes (COD or QR). It is clearly distinguishable from the sibling read/update tools (order_get, order_list, order_update_status). It stops short of explicitly naming those siblings, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, nor any stated preconditions such as required stock availability, authentication, or what to do when a customer already exists. The only hint of applicability is the parenthetical payment-method scope. An agent must infer the usage context entirely.

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.