Skip to main content
Glama

Post Sales Generatetrackingid

hgr_post_sales_generatetrackingid
Destructive

Dedicated HGRApi tool for POST api/Sales/GenerateTrackingId. This is an explicit tool with a fixed endpoint; it is not a generic endpoint caller. HGRApi functional documentation: Purpose: Generates an HGR/VelociPacker tracking number for exact existing order lines that have already been processed or marked as purchased. ownerAgent: orders-autoordering. Domain: orders. Entity: order_line. Operation: generate_tracking. Scope: current_store. Use when: Use it when the user explicitly asks HGR to generate tracking for an existing order. A manually purchased supplier order must first be marked as purchased in HGR; in HGRWeb the user then clicks Generate it in Orders. Input: [FromBody] rq: LoadAddressesFromOrderLineRequest. Main fields: OrderLineIds: int[]. Required Header channel: current ChannelOAuthId. Output: Queues HGR/VelociPacker tracking generation for each supplied order line and returns refreshed order data on success or the processing result when generation cannot start. Search terms: sales generatetrackingid. Send the exact request payload in body. Requires confirmed=true before execution. Requires HGRApi Header channel / ChannelOAuthId resolved internally.

Input Schema

NameRequiredDescriptionDefault
bodyYesHGRApi POST /api/Sales/GenerateTrackingId request body.
confirmedYesMust be true after the user explicitly requested or confirmed the exact action.
channelOAuthIdYesChannelOAuthId returned by hgr_list_channels for the selected visible store.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, idempotentHint=false and openWorldHint=true, and the description adds real context beyond them: it queues tracking generation per order line rather than completing synchronously, returns refreshed order data or a processing result when generation cannot start, and requires confirmed=true plus an internally resolved ChannelOAuthId header. It does not contradict the destructive hint, though it does not explain in what sense the operation is destructive (e.g. downstream supplier commitment).

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

Conciseness3/5

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

The important information (endpoint, purpose, use-when, prerequisite) is front-loaded, but the text carries boilerplate — 'This is an explicit tool with a fixed endpoint', 'Search terms: sales generatetrackingid', and repeated channel-header statements — that dilutes an otherwise tight definition.

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?

For a mutating, open-world tool the description covers purpose, prerequisite state, required confirmation, and payload shape, and an output schema exists so return values need no elaboration. What is missing is the distinction from hgr_generate_tracking_id and any note on what 'destructive' means here, which keeps it below 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the body is an opaque object with no properties documented; the description compensates by naming the main field OrderLineIds: int[] and the rq type LoadAddressesFromOrderLineRequest, plus the required channel header. The confirmed and channelOAuthId semantics are already in the schema, so nothing more is needed there.

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 the concrete endpoint (POST api/Sales/GenerateTrackingId) and states the effect: generating an HGR/VelociPacker tracking number for existing, already-processed order lines. It also explicitly denies being a generic endpoint caller. It loses a point because it never distinguishes itself from the near-identical sibling hgr_generate_tracking_id, which an agent will have to disambiguate on its own.

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?

Explicit 'Use when' clause ties the tool to the user asking HGR to generate tracking for an existing order, and it adds the prerequisite that a manually purchased supplier order must first be marked as purchased (with the HGRWeb 'Generate it' flow as analogue). No exclusions or named alternative tools are given, so it stops short 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