Skip to main content
Glama

Commit a previewed import

aalto_import_commit
DestructiveIdempotent

Imports a previewed CSV exactly as the preview showed, after the user approved it: pass job_id and the confirm_token. New rows are created; with on_duplicate update, matched products are overwritten with the file values. If anyone edits a matched product or the file after the preview, the commit is refused. Stops at the plan's product limit and reports partial. Rows with only a link beyond this month's AI product imports are imported without details (extraction_status pending). A large import may return in_progress, and an interrupted one can be continued: call again with resume: true. At most 10 commits per person per hour.

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": {
      "job_id": "<job_id>"
    },
    "name": "aalto_import_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
resumeNoAfter an interrupted or unfinished commit: true, instead of confirm_token. Rows already imported are not repeated.
confirm_tokenNoThe first call: the confirm_token from aalto_import_preview (single use, 10 minutes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the guard that the commit is refused if a matched product or the file changed after the preview, the on_duplicate overwrite behavior, partial results at the plan's product limit, rows imported without details with extraction_status pending, an in_progress return for large imports, and a rate limit of 10 commits per person per hour. These additions are consistent with destructiveHint=true and idempotentHint=true (resume does not repeat rows).

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?

Six dense sentences, each carrying distinct operational information — approval gate, overwrite semantics, refusal condition, partial-limit behavior, pending-extraction rows, and resume/rate limits — with the critical guard and approval requirement front-loaded. No filler or repetition.

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?

For a destructive, open-world, asynchronous-capable mutation with no output schema, the description covers everything an agent needs: preconditions, refusal semantics, partial-success reporting, the in_progress return signal, the resume path, and throttling. Nothing material about calling it correctly is left unstated.

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 coverage is 67% and the schema already documents confirm_token's origin, single-use and 10-minute lifetime, and resume's 'instead of confirm_token' semantics. The description frames the two-call protocol (job_id + confirm_token first, resume later) but does not explain where job_id comes from or add format detail beyond the schema, so the baseline of 3 is appropriate.

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 — committing a previewed CSV import exactly as previewed — and implicitly distinguishes itself from the sibling preview/start tools by requiring an approved preview plus a confirm_token. An agent can immediately tell this is the final write step of the import flow, not a preview or a fresh start.

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?

Gives clear activation conditions: only after the user approved the preview, with job_id and confirm_token, and resume: true after an interruption. It references the preview tool indirectly via 'the confirm_token from aalto_import_preview' but never explicitly excludes the sibling aalto_import_start, so the routing guidance is strong but not fully enumerated.

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