Skip to main content
Glama
@cmssy/mcp-server

@cmssy/mcp-server

Official

Get record import

get_record_import
Read-only

Check a background record import's status and progress by jobId or model, including phase, validated/processed counts, invalid and failed rows, and failure details so you know whether to resume, retry, or await confirmation.

Instructions

Read a background record import's status and progress, by jobId or by model (jobId wins when both are given). By model it returns the import still running or awaiting confirmation, else the model's latest import in any status. status goes uploading -> queued -> running -> completed, failed or cancelled, with awaitingConfirmation in between when rows are invalid and the import was started with onInvalid STOP. phase is validate, then write; validated of total and then processed are the progress, created/updated/unchanged what was written, invalidCount the rows validation refused, failedCount the rows refused when written. sample holds the first 20 invalid or failed rows with their message - page all of them with list_record_import_rows. A failed import carries failureReason (stalled, enqueueFailed, unexpected, modelUnavailable, invalidUpsertKey) and resumable: when true, resume_record_import continues it. job is null when the id is unknown or the model has no import on record - a finished import is kept for 7 days. Imports run in steps of a few hundred rows: check again later rather than in a tight loop.

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

Input Schema

NameRequiredDescriptionDefault
jobIdNoThe job id start_record_import returned. When given, modelIdOrSlug is ignored.
modelIdOrSlugNoThe model's id or slug: returns the import still running or awaiting confirmation on it, or - when there is none - its most recently started import in any status

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.148.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare it a safe read, but the description adds substantial behavior: the full status lifecycle including awaitingConfirmation only when onInvalid is STOP, the validate-then-write phase model, what each counter means, the 20-row sample cap, the six failureReason values, the resumable flag, and a 7-day retention window for finished imports. This is far beyond what readOnlyHint conveys.

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?

Purpose and mode selection are front-loaded, and nearly every clause carries distinct information (status chain, phase, counters, sample cap, retention). It is a dense single block, however, and the field-by-field enumeration could be segmented for faster scanning.

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?

There is no output schema, so the description must carry the return-value burden and does: status, phase, validated/total, processed, created/updated/unchanged, invalidCount, failedCount, sample, failureReason, resumable, and the null-job case. Nothing an agent needs to interpret a response correctly is missing.

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 100% and both parameter descriptions already state the jobId precedence and the model-lookup fallback, so the description largely restates rather than extends parameter meaning. The added value is contextual (what a null job means for each mode) rather than semantic detail about the parameters themselves.

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?

Opens with a specific verb and resource ('Read a background record import's status and progress') and immediately states the two lookup modes (by jobId or by model) with a precedence rule. An agent can distinguish it from list_record_import_rows or resume_record_import without opening any schema.

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?

Explicitly routes the agent: jobId wins when both are given, model lookup returns the running/awaiting import or else the latest in any status, sample rows are paged via list_record_import_rows, and resumable failures should go to resume_record_import. It also warns against polling in a tight loop because imports run in steps of a few hundred rows.

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

Deploy Server

Other Tools