Skip to main content
Glama

Get a link for the user to upload a file

request_upload_link

Changes data: makes a link where the user can drop one file for a shipment, as the person who connected this app, and records it in the organization's audit log. Use it when you cannot give upload_document or replace_document a file: a chat attachment that has no URL you can pass (Claude.ai, Microsoft Copilot), a link that needs a sign-in (Microsoft 365, SharePoint, OneDrive, Google Drive and similar pages cannot be fetched by Trackberry), or a file too large to send inline. The link is a Trackberry page that needs no sign-in, works once, and expires in 30 minutes. Show it to the user in your answer, say which shipment it is for, and ask them to open it and choose the file; do not open it yourself. By default the file is attached to the shipment and read for extraction like any upload, and it appears in list_documents once they have uploaded it. To replace a document instead, pass replace_document_id: the file the user chooses then replaces that document exactly as replace_document would (same checks, the old one kept as an older version), and shipment_id can be left out. A document that was already replaced, or that is on another shipment than the one named, is refused when the link is made. Name an existing shipment with shipment_id, or with container_number for the live shipment that carries it; unlike upload_document it does not start a draft shipment, so a container number nothing carries is refused. Not safe to repeat for nothing: every call makes a new link, adds an entry to the audit log and counts toward a limit of 20 unused links, and the earlier links stay valid until they expire or are used. Ask once and give the user that link; ask again only if it expired or was used. Only people who can upload documents in Trackberry can ask for one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "request_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idNoThe shipment the file is for, such as "shp_123", as returned by search_shipments. Not together with container_number.
container_numberNoInstead of shipment_id: an ISO 6346 container number such as "MSCU1234566". It must be on a live shipment.
replace_document_idNoOptional: a document such as "doc_123", as returned by list_documents. The file the user chooses replaces it, as replace_document would, instead of being added as a new document. It must be a current document and on the shipment, which can be left out then.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / replace_document_id
      Added value: +{
      +  "description": "Optional: a document such as \"doc_123\", as returned by list_documents. The file the user chooses replaces it, as replace_document would, instead of being added as a new document. It must be a current document and on the shipment, which can be left out then.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: link is one-time, no sign-in, expires in 30 minutes, every call writes an audit-log entry and counts toward a cap of 20 unused links, earlier links stay valid, and it refuses containers not on a live shipment. It also discloses the permission requirement and instructs the agent not to open the link itself, which annotations (readOnlyHint=false, idempotentHint=false) cannot convey.

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 with the mutation and audit-log impact, then the routing rationale, then link properties and repetition rules — a sensible order with no filler. It is a single very dense paragraph, and phrases like "Not safe to repeat for nothing" cost a little clarity, but nearly every clause carries operational value.

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, the description still fully specifies the return: a Trackberry-hosted, sign-in-free, single-use link valid 30 minutes, plus where the uploaded file shows up (list_documents). Combined with permission, rate-limit, and refusal conditions, an agent has everything needed to call it and to instruct the user correctly.

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%, so the baseline is 3, but the description adds real meaning: replace_document_id triggers the same checks as replace_document with the old document kept as an older version, permits omitting shipment_id, and is refused if the document was already replaced or sits on another shipment. container_number is further constrained to live shipments because no draft is started. Minor remaining gap: nothing on why shipment_id and container_number are mutually exclusive beyond the schema note.

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?

Opens with a specific verb and resource ("makes a link where the user can drop one file for a shipment") and immediately scopes it against upload_document and replace_document. An agent can tell this apart from the direct-upload siblings without opening any schema.

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?

Gives concrete when-to-use conditions (chat attachment with no URL, sign-in-protected links that Trackberry cannot fetch, files too large inline) and names the alternatives that require this fallback. It also states the when-not-to-repeat rule: ask once, re-ask only if the link expired or was used.

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