Skip to main content
Glama

HamroLink Business OS MCP Server

commerce.order_get

Read-only

Retrieves complete details for a single e-commerce customer order including line items, payment status, First-Touch & Last-Touch attribution, linked storefront session details, and explanation of whether/how it was attributed.

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>"
    },
    "name": "commerce.order_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoOptional store Site ID filter
orderIdYesOrder ID (e.g. 'ORD-510738-448') or MongoDB 24-character _id
siteNameNoOptional store name filter (e.g. 'Pokhara Clothing')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context by stating that the response includes an explanation of whether and how the order was attributed, but it is silent on failure behavior (unknown orderId), permission requirements, and how siteId/siteName interact when an order belongs to another store.

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 that names the resource first and then lists the returned components in a readable order. It is efficient with no filler, though the enumeration of return fields makes it long enough that a short lead clause plus a separate return-value clause would read better.

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?

With no output schema present, the description carries the burden of describing return values and does so explicitly, listing line items, payment status, both attribution models, linked session details, and the attribution explanation. Combined with annotations covering safety and a fully documented schema, an agent has what it needs to call this correctly.

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 all three parameters are already documented, including the orderId format ('ORD-510738-448' or 24-character MongoDB _id). The description contributes nothing about the parameters, so the baseline 3 applies.

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 uses a specific verb ("Retrieves") with a clearly scoped resource ("complete details for a single e-commerce customer order") and enumerates the payload: line items, payment status, First-Touch & Last-Touch attribution, and session details. The word "single" implicitly separates it from the order_list sibling, but no alternative is named, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for fetching one order's full record, but the description gives no explicit when-to-use rule, no pointer to order_list for enumerating orders, and no prerequisites such as required permissions or multi-site context for the siteId/siteName filters.

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.