Skip to main content
Glama

Import Session Details

get_import_session
Read-onlyIdempotent

Read a staged import session: status, the uploaded file's profile (columns, inferred types, sample rows, anomalies — everything needed to author a mapping), the current validation report, and commit progress (committedOrders/totalOrders) while the background import runs.

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": {
      "importSessionId": "<importSessionId>"
    },
    "name": "get_import_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
importSessionIdYesThe import session id (GUID) from create_import_session.

Output Schema

NameRequiredDescriptionDefault
okNo
kindNo
sourceNo
statusNo
profileNo
rowCountNo
expiresAtNo
uploadUrlNo
validationNo
totalOrdersNo
commitErrorsNo
failedOrdersNo
committedOrdersNo
importSessionIdNo
originalFileNameNo

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 readOnly, idempotent, non-destructive, and closed-world behavior, so the bar is lower. The description still adds real value by disclosing the response payload shape (columns, inferred types, sample rows, anomalies, validation report) and the fact that progress fields change while the background import runs, which is not derivable from annotations.

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?

One sentence, front-loaded with verb and resource, then a compact enumeration of returned content with the deepest detail (the file profile) placed in a parenthetical. Nothing is redundant with the annotations or schema.

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 an output schema present, the description needn't document return values, yet it still characterizes the payload enough to explain when the tool is worth calling. It stops short of covering failure modes, such as a session that does not exist or has already been rolled back.

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?

Only one parameter, importSessionId, and the schema documents it at 100% coverage as the GUID returned by create_import_session. The description adds no format, sourcing, or not-found semantics beyond what the schema already says, so the baseline 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 verb (read) and resource (a staged import session) and then enumerates exactly what the payload contains: status, file profile, validation report, and commit progress. That level of specificity lets an agent distinguish this single-session read from the mutating siblings commit_import_session, rollback_import_session, and create_import_session without opening schemas.

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?

Use context is clear: call it to inspect the staged file profile before authoring a mapping, and again while the background import runs to watch committedOrders/totalOrders. No explicit when-not guidance or named alternatives, but the read-only inspection role is unambiguous.

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