Skip to main content
Glama

Make a customer tracking link

create_share_link
Idempotent

Changes data: makes a tracking link for one customer on one shipment, as the person who connected this app, and records it in the organization's audit log. The link is public: anyone who holds the url can open the shipment's public tracking page, so give it only to the customer it is for. Use it only when the user asks for a link to send to a customer. customer_reference is the customer's own reference, such as their order number; a shipment has one active link per reference, so asking again for the same reference returns the existing link instead of making a second. The organization must have public tracking pages switched on and the shipment must be live and shared publicly, otherwise the answer says so: tell the user. Answers with the link, including its url; revoke_share_link withdraws it.

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": {
      "shipment_id": "<shipment_id>",
      "customer_reference": "<customer_reference>"
    },
    "name": "create_share_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name for the link, such as the customer's name. Shown to the team, not on the page.
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.
customer_referenceYesThe customer's own reference for this shipment, such as their order number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond annotations: states it writes data and is recorded in the audit log, acts as the connecting user, the link is public/anyone with URL can view, idempotency by customer_reference is explained concretely, and failure conditions with what to tell the user. Annotations already cover readOnly=false, idempotent=true, openWorld=true; description adds audit logging, publicity risk, and failure messaging. Not 5 only because it doesn't mention rate limits or what the returned payload contains beyond url.

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?

Front-loaded 'Changes data:' warning, then behavior, then usage, then parameter note, then failure modes, then return. Slightly dense with several clauses, but every sentence carries information; minor redundancy around the public-link warning repetition.

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?

No output schema, but the description says the answer includes url and that failures are reported with a message to relay. Covers preconditions, idempotency, and revocation path. Lacks detail on permission errors outside the two stated preconditions.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds real meaning: customer_reference is the customer's own reference (order number) and drives per-reference idempotency. label semantics are covered by schema; shipment_id by 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?

Specific verb+resource: makes a tracking link for one customer on one shipment. Distinct from sibling revoke_share_link and list_share_links, which are explicitly contrasted (one named, and 'returns the existing link' semantics).

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

Usage Guidelines5/5

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

Explicit 'Use it only when the user asks for a link to send to a customer' and names when not to work (org must have public tracking on, shipment live/publicly shared). Names revoke_share_link as the withdrawal counterpart.

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