Skip to main content
Glama

Request an artwork upload slot

order_request_artwork_upload

Step 1 of attaching the customer's finished artwork file to an order line: get a presigned upload URL.

Returns a presigned url, method (PUT), headers, and object_key. Get item_id from order_get_artwork_spec. PUT the raw file bytes straight to url with the headers verbatim (the bytes never pass through Compass), then call order_confirm_artwork_upload with the same object_key. Use for a line that has finished artwork and needs no design from us; prefer order_get_artwork_upload_page when the user has the file but you don't. Only works for orders created in this session. Refused with ItemDesignAttachedError when the item of a multi-item order already holds an attached design: that design is what prints, and changed artwork for the item needs a new order.

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": {
      "session_id": "<session_id>",
      "item_id": "<item_id>",
      "filename": "<filename>",
      "content_type": "<content_type>"
    },
    "name": "order_request_artwork_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
filenameYes
order_idNo
session_idYes
content_typeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / order_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / order_id / default
      Added value: +null
    • removedInput schema / properties / order_id / type
      Removed value: -"string"
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "order_id",
      -  "item_id",
      -  "filename",
      -  "content_type"
      -]New value: +[
      +  "session_id",
      +  "item_id",
      +  "filename",
      +  "content_type"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only disclose readOnly=false, destructive=false, idempotent=false; the description goes well beyond by disclosing the return shape, that bytes never pass through Compass, that headers must be used verbatim, and the ItemDesignAttachedError refusal with its business meaning. That is the kind of consequence and failure-mode context annotations cannot carry.

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 core action and return shape, then prerequisites, then the error case — a logical progression with no filler. It is dense with return-field enumeration and error minutiae, which slightly crowds a tool description, but every sentence carries actionable information.

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 multi-step upload flow that can be refused, the description supplies the sequencing, the prerequisite lookup, the session constraint, and the error path — enough to invoke it correctly. The gap is the undocumented non-key parameters, partially offset by an output schema covering the return values.

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 0%, so the description carries the full burden. It does well on item_id (source: order_get_artwork_spec) and on object_key flow into the confirm call, but filename, content_type, session_id, and the optional order_id are never explained or constrained. Partial compensation only.

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 — 'get a presigned upload URL' — and frames it as 'Step 1 of attaching the customer's finished artwork file to an order line'. It names the sibling it is not (order_get_artwork_upload_page) and the sibling that follows (order_confirm_artwork_upload), so the agent can place it in the workflow 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 Guidelines5/5

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

Explicit when-to-use ('a line that has finished artwork and needs no design from us'), explicit alternative with condition ('prefer order_get_artwork_upload_page when the user has the file but you don't'), and explicit exclusions ('Only works for orders created in this session'). It even names the refusal condition (ItemDesignAttachedError on a multi-item order with an attached design) and the remediation (new order).

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