Skip to main content
Glama

Preview CSV Import

batch_preview_import
Read-onlyIdempotent

Dry-run a CSV import of drafts: returns valid rows, per-row errors, duplicates and the account slot assigned to each row, plus a preview_token. Creates nothing. Saving a clean preview requires access to batch_commit_import and the same CSV.

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

Input Schema

NameRequiredDescriptionDefault
csvYesCSV text of drafts to import.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint and destructiveHint=false, and the description reinforces this with 'Creates nothing' while adding real value: the exact return payload and the dependency on batch_commit_import plus the constraint that the same CSV must be reused. It stops short of disclosing preview_token lifetime or whether slot assignments are reserved at preview time, which are the remaining behavioral unknowns for a dry-run tool.

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?

Front-loads the core action and return contents, then adds the no-side-effect guarantee and the commit precondition in two short follow-on sentences. No sentence is filler and ordering matches how an agent would reason about calling it.

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?

With no output schema and one parameter, the description compensates well by enumerating the return fields and the preview_token. The only gap relative to a stateful preview tool is not saying how long the token stays valid or how row limits behave on large CSVs.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents `csv`. The description adds no format guidance beyond the schema, such as required columns, header conventions, or size limits, so the baseline of 3 applies.

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 action and resource: a dry-run preview of a CSV draft import. It also enumerates the outputs (valid rows, per-row errors, duplicates, assigned account slot, preview_token), which separates it from the other batch_preview_* siblings that clearly handle schedules and series rather than CSV imports.

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?

Makes the usage pattern explicit: run this dry-run first, then use batch_commit_import with the same CSV to save a clean preview. That names the follow-up tool and the precondition. It does not spell out when a preview is unnecessary (e.g., a trivially small or already-validated import), which keeps it from a 5.

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