Skip to main content
Glama

upload_import_file

Destructive

Open a card in the chat where the merchant picks or drags a product file (CSV or XML, up to 10 MB) from their computer or phone; it goes straight to the shop without passing through the conversation. Use it when the merchant has a product file with them and did not attach it: imports_inspect and imports_create only reach a file at a web address or a Google Sheet. The card shows how the columns were recognised and what the import would add and update, lets the merchant fix the mapping, and starts the import only when they press its button; when the run ends, the outcome is added to the conversation's context. Say in one sentence that the card is open and wait; do not ask for the file in the conversation. The card is valid for 30 minutes.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the mutation/read profile, but the description explains the whole flow: the file bypasses the conversation, the card previews column recognition and add/update impact, mapping is editable, the import only fires on the merchant's button press, the result is appended to conversation context, and the card expires in 30 minutes. That is substantial behavior beyond the structured hints and is consistent with destructiveHint=true.

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 action, then the alternative-routing rationale, then the flow and the 30-minute limit. Dense with load-bearing detail, though the sentence describing the card's preview, mapping fix, and import trigger is long enough that it could be split for faster scanning.

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 zero-parameter, no-output-schema tool this covers trigger, alternatives, lifecycle, and post-run behavior, which is nearly everything an agent needs. It does not say what the agent's response should contain if the merchant asks for progress mid-run, a minor remaining gap.

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?

The tool takes zero parameters, so there is no schema-level semantics left to explain and the baseline is 4. The description does usefully convey that the file is supplied through the card rather than as an argument.

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 ('Open a card in the chat where the merchant picks or drags a product file') plus the accepted formats and size limit. It explicitly separates itself from imports_inspect and imports_create by saying those only reach a file at a web address or a Google Sheet.

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 an explicit trigger ('when the merchant has a product file with them and did not attach it'), names the two alternatives and why they don't apply, and adds a negative instruction ('do not ask for the file in the conversation'). No inference is required to pick this tool.

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.