Skip to main content
Glama

Confirm and link an uploaded digital file

confirm_digital_file_upload
Destructive

Link an uploaded digital file to a product after storage upload. Use this endpoint once the file exists at the presigned URL, providing product ID, file name, and file URL.

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

NameRequiredDescriptionDefault
accountNoExact private shop profile label; not a provider identity or authorization proof.
confirmNoSet true only when the user asked for exactly this action.
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. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Explicit approval for this exact provider effect or local private-file operation."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true. The description adds genuinely useful context beyond them with the 100 req/10 sec per shop rate limit and the storage-prerequisite constraint, but it never explains what destruction/re-linking means or what happens on a repeat call despite idempotentHint=false.

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

Conciseness5/5

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

Two sentences plus a rate-limit note; the operational constraint and purpose are front-loaded with zero filler.

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 mutation with a nested payload, full schema coverage and annotations carrying the safety profile, the description covers the workflow position and rate limit adequately. It is slightly thin on post-call behavior and duplicate/retry semantics, but an output schema is absent and nothing essential to invocation is missing.

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% and every parameter (account, confirm, fileUrl, payload, fileName, product_id, payload_file) is already documented in the schema. The description adds no parameter-level meaning such as required combinations or how confirm relates to payload, so the baseline 3 applies.

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 states a specific verb and resource: 'link the file to the product' via a confirmation endpoint, which is distinct from the sibling request_digital_file_upload_url and upload_file. However, it never explicitly names which sibling this is not, so the differentiation is inferred from the workflow rather than stated.

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?

It gives clear situational guidance: call this 'after uploading a file to the presigned URL' and only when 'the file must exist in storage'. That is a usable precondition, but it offers no exclusion or alternative path (e.g., what to do if the upload failed or the URL expired).

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