Skip to main content
Glama

Import products csv

import_products_csv

Owner/admin only. Import products from CSV text (same columns as export_products_csv; ; , or tab). Match by id, then sku, then ean; no match = new product (needs name and price). Empty cells keep the current value; unknown category = row error. dry_run (default true) returns per-row changes (field: [old, new]) and errors without writing; dry_run=false writes all rows without errors.

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": {
      "store_id": "<store_id>",
      "csv": "<csv>"
    },
    "name": "import_products_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvYes
dry_runNo
store_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Far beyond the annotations, it discloses the permission requirement, the three-tier match precedence, that unmatched rows create new products requiring name and price, that empty cells preserve existing values, that unknown categories produce row-level errors, and that a non-dry run writes only error-free rows. This tells the agent exactly what will change and what will be skipped — the key risk for a mutation tool with destructiveHint=false.

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?

The permission gate and core action are front-loaded, and nearly every clause carries behavioral information rather than restating the name. The middle section is semicolon-dense and slightly harder to parse, but there is no filler to cut.

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

Completeness5/5

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

With no output schema, the description still describes what dry_run returns (per-row diffs and errors) and what a real run does. Combined with match precedence and error semantics, an agent has everything needed to call this safely for a three-parameter mutation tool.

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?

Schema coverage is 0%, so the description must carry parameter meaning: it specifies csv is text with semicolon, comma, or tab delimiters and export-compatible columns, and defines dry_run's default and its per-row return shape (field: [old, new]). store_id is never explained, leaving one of three parameters to inference, which keeps it from a 5.

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?

"Import products from CSV text" names a specific verb and resource, and immediately anchors the format to the sibling export_products_csv ("same columns as"), so an agent can pair the two tools without opening either schema. It also states the matching key order (id, sku, ean), which distinguishes it from create_product-style single-record tools.

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 preconditions ("Owner/admin only") and an explicit default-and-alternative for dry_run: default true for a preview, dry_run=false to actually write. It does not explicitly say when to prefer this over create_product or list_products, but the CSV-vs-single-record split is implied strongly enough by the format anchor.

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