Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

shopify_inventory_import

Destructive

Convert XLSX or CSV inventory data into a Shopify inventory import CSV for bulk product quantity uploads.

Instructions

Use this when you need to produce a Shopify inventory import CSV.

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": "shopify_inventory_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe spreadsheet file, handed off by a host that fills in the OpenAI file-parameter convention (openai/fileParams) from an uploaded or attached file. The server downloads download_url once, server-side; never a local sandbox path.
optionsNoReserved for future producer options.
file_b64NoBase64-encoded inventory CSV or XLSX file. Send exactly one file source: file_b64 (this field), file_url, file_handle, or file_text together with file_name.
file_urlNohttps URL of the spreadsheet file (e.g. a shared Google Drive, Google Sheets, Dropbox, OneDrive or S3 link; must be viewable by anyone with the link). The server downloads it directly. Provide this OR file_handle.
filenameNoOriginal filename (optional; used in ledger prose).
file_nameNoFile name with its extension (.csv, .tsv or .json), used with file_text.
file_textNoUse only for a small CSV, TSV or JSON file whose full text you already have. Practical limit about 2,000 cells or 40 KB (the server hard cap is 256 KB); above that use file_url, or xlsx_upload_link and file_handle. Requires file_name. Never encode or retype a binary file by hand. Provide this OR file_url OR file_handle.
file_handleNoHandle returned by xlsx_upload_link, once the user has uploaded the spreadsheet file on that page. Use this when the user attached the file in chat or has no link. Provide this OR file_url.
file_sha256NoHex SHA-256 of the exact file_text UTF-8 text. Optional; checked when given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.1

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false, so the bar is lower — but the description adds nothing beyond them. It does not say where the CSV goes (returned inline? written to a file?), whether it validates the input, what happens on a malformed sheet, or why the call is marked destructive. For a destructive, non-idempotent, network-touching tool that is a real gap.

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

Conciseness3/5

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

A single front-loaded sentence with zero filler, so nothing is wasted. But the brevity is under-specification rather than discipline — the one sentence could easily have carried what the tool consumes and returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Nine parameters, a nested object, a four-way mutually exclusive file-source choice, destructive semantics, and no output schema — this is a complex tool whose description says only one sentence. The agent must reconstruct the entire input contract from the schema and still has no statement of what the call returns or produces.

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 the schema richly documents the four mutually exclusive file sources, the file_text size limit, and the file_handle handoff, so the schema carries parameter meaning on its own. The description adds no parameter-level guidance, which is acceptable at full coverage but keeps this at the baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence names a specific output ('Shopify inventory import CSV') and a producing verb ('produce'), which is more than a tautology. However, it omits the critical fact — visible only in the schema — that this tool converts an inbound spreadsheet (base64, URL, handle, or text) into that CSV, so an agent could reasonably read it as a from-scratch template generator. It also makes no attempt to distinguish itself from nearby import siblings such as shopify_products_import or csv_check.

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

Usage Guidelines3/5

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

'Use this when you need to produce a Shopify inventory import CSV' gives a bare use condition but no exclusions, prerequisites, or pointer to an alternative. With roughly a dozen import-shaped siblings, an agent gets no help choosing between this, csv_check, or importable_convert.

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