Skip to main content
Glama

Confirm and link an uploaded digital file

confirm_digital_file_upload
Destructive

Link an uploaded digital file to a specific product after it exists in storage, completing the upload and attachment workflow.

Instructions

Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.

After uploading a file to the presigned URL, call this endpoint to link the file to the product. The file must exist in storage before calling this endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact private shop profile label; not a provider identity or authorization proof.
confirmNoExplicit approval for this exact provider effect or local private-file operation.
fileUrlNoThe file URL returned from the upload-url endpoint
payloadNoComplete current native JSON body; cannot mix with native body flags or payload_file.
fileNameNoDisplay name for the file
product_idYesNative productId
payload_fileNoAbsolute regular non-symlink native JSON body file, at most1MiB. Cannot mix with payload or body flags.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the bar is lower. The description goes beyond them by disclosing a concrete rate limit (100 requests / 10 seconds per shop) and a hard precondition that the file must already exist in storage, which are useful non-obvious behavioral facts.

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?

Three sentences with no filler; the rate-limit note is front-loaded as a callout and the actionable purpose follows immediately. Slightly awkward that the operational purpose comes after the rate-limit reference, but nothing is wasted.

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 7-parameter, nested-object mutation with no output schema, the description covers the essential precondition and rate limit, and annotations carry the safety profile. Minor gaps remain around failure modes, but the definition is sufficient to invoke 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 the schema already documents all 7 parameters including the nested payload object. The description adds no field-level meaning (e.g. payload vs. top-level fileName/fileUrl precedence) beyond what the schema provides, so the baseline 3 is appropriate.

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 ('link the file to the product') and ties itself into the upload flow by referencing the presigned URL, which disambiguates it from siblings like request_digital_file_upload_url and remove_digital_file. An agent can tell exactly what this does without opening the schema.

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?

Clearly specifies when to call it ('after uploading a file to the presigned URL') and states the precondition ('The file must exist in storage before calling this endpoint'). It lacks an explicit when-not or named alternative, but the sequential context is strong and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools