Skip to main content
Glama

Bring in a file

import_file
Destructive

Bring a file into a model from a place AMT can read, so it never passes through the chat: a link (when files from links are switched on), a warehouse table, or (for picture models' fills) a storage folder, as list_sources lists them. purpose training replaces the model's training data with the file (then use columns, data_quality and train); fill and test make it the file start_fill fills (test: a file whose right answers are already in a column). Two steps: the first call changes nothing and returns what will happen plus a confirmation code; only after the user explicitly agrees call again with that exact code.

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": {
      "model_id": "<model_id>",
      "purpose": "<purpose>"
    },
    "name": "import_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA link that opens the file itself (CSV, Excel, JSON, or a ZIP of pictures), such as a share link or a signed URL.
purposeYes
storageNoA folder from list_sources, for filling a picture model.
model_idYesThe model id, from list_models.
warehouseNoA table from list_sources. For training: columns (what the model reads) and label_column (the answers). For fill: key_column (the column that identifies each row) and only_new.
confirmationNoThe code from the first call, sent only after the user said yes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description goes beyond them by naming what is destroyed ('replaces the model's training data') and by describing the dry-run/confirmation-code flow so the first call is non-mutating. It does not cover code expiry, partial-failure behavior, or permissions, so it stops short of fully rich behavioral context.

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?

Front-loaded with the core action and source types, and no sentence is filler. The parenthetical-heavy sentences (especially the purpose clause) are dense and slow to parse, costing some readability.

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?

For a complex tool with nested objects, three purposes and no output schema, the description covers source selection, per-purpose behavior, and the confirm flow. It stops short of describing what the first call's preview returns in any detail, but that is a minor gap relative to what is supplied.

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 83%, so the baseline is 3, but the description adds genuine meaning for the enum parameter by explaining what each purpose does downstream and which follow-up tools apply. It also clarifies that the confirmation string must be the exact code from the first call, which the schema only partially conveys.

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?

Names a specific verb and resource ('Bring a file into a model') and enumerates the three accepted source kinds (link, warehouse table, storage folder), tying storage/warehouse back to list_sources so the agent can distinguish this from the listing tool. The three purposes (training/fill/test) are each given a one-clause meaning, which separates this from start_fill and train.

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?

Gives explicit when-to-use routing: purpose=training then 'use columns, data_quality and train'; purpose=fill/test tie to start_fill and column-stored answers. It also states the two-step protocol with the requirement that the user explicitly agree before the second call, which is a condition an agent must not infer.

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