Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.order_update_payment_status

Destructive

Independently updates ONLY the paymentStatus (PENDING, PAID, FAILED, REFUNDED) of an order without modifying its fulfillment status or inventory. Only mark PAID after explicit merchant confirmation of actual cash or QR receipt.

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": {
      "orderId": "<orderId>",
      "paymentStatus": "<paymentStatus>"
    },
    "name": "commerce.order_update_payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesOrder ID (e.g. 'ORD-123456-789') or MongoDB 24-character _id
paymentNoteNoOptional verification or refund note
paymentStatusYesNew independent payment status

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this as a destructive, non-read-only, open-world mutation. The description adds meaningful context beyond them: the update is independent, fulfillment and inventory are untouched, and PAID requires a specific business precondition. It does not cover reversibility or error behavior, but the added operational constraint is valuable.

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 tightly written sentences with the scope and the most important safety rule front-loaded. No redundant or filler wording.

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?

Complete enough for a destructive mutation whose schema is fully described and whose safety profile is covered by annotations. It states what changes, what must not change, and the PAID precondition; only error or permission behavior is 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 description coverage is 100%, so the schema already documents orderId, paymentStatus, and paymentNote, including the enum values. The description reinforces that paymentStatus is the only field changed, but adds no syntax or format detail beyond 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: updates ONLY the paymentStatus of an order. The clause about not modifying fulfillment status or inventory clearly distinguishes it from the sibling order-status update tool, so an agent can route correctly without opening schemas.

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?

Provides a strong usage rule for the critical PAID transition: only after explicit merchant confirmation of cash or QR receipt. It also implies this tool is for payment-only changes, but it does not explicitly name the alternative status-update tool or state when to prefer that one.

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.