Skip to main content
Glama

import_file

Imports files into a MOGA project by type: link codebases and videos, copy media, register JSON assets, or install skills, returning the stored kind, name, and path.

Instructions

Bring a file into the project, by what it is: a folder of code is linked as a codebase (link_codebase); a video given by path is linked where it is, never copied (copy=true copies it; it lists with list_references, and a video layer names it by its absolute path); a video given as data, an image, sound or subtitle file goes under media/ (listed with browse as media); an asset definition (.json: { description, type, props, anim }) becomes an asset of that name, checked as put_asset checks it; a skill (.md with a name and description in its front matter, or a SKILL.md) goes to skills//SKILL.md, for "/name". data is the file's bytes in base64, or path an absolute path to copy from. An existing file of that name is kept unless replace=true (the same bytes again import as the file already there). Returns { kind, name, path }.

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

Input Schema

NameRequiredDescriptionDefault
copyNoCopy a video given by path into media/ instead of linking it
dataNoThe bytes, base64
nameNoThe file name, with its extension (default: the name in path)
pathNoOr an absolute path on this computer (a file dropped on the Studio): a video is linked where it is, anything else copied
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
replaceNo
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare it is not read-only and not destructive; the description adds substantive behavior beyond that — where each file type is placed, that videos by path are linked rather than copied, that an existing file is kept unless replace=true, and that assets are validated as put_asset validates them. It also discloses the return shape ({ kind, name, path }). It stops short of stating permissions or whether replace=true overwrites irreversibly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and largely earns its place, but it is delivered as a single semicolon-chained run-on sentence with nested parentheticals, making it hard to scan for the branch that matches the agent's input. Front-loading is good; structural readability is not.

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 9-parameter polymorphic import tool with no output schema, the description covers the main dispatch branches, the replace/idempotency nuance, and the return shape. The provenance parameters (basis, message, feedback, confidence) are handled only by the schema, which is a reasonable division given their 89% coverage, but leaves the description slightly incomplete for such a complex tool.

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 high (89%) so the schema already carries the parameter documentation. The description reinforces and adds meaning for data (base64 bytes vs. path an absolute path to copy from), name defaulting from path, copy, and replace, but says nothing about basis, message, feedback or confidence beyond what the schema already states. Baseline 3 is appropriate when the schema does the heavy lifting.

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+resource ("Bring a file into the project") and then enumerates each file kind and the exact routing it takes, naming the sibling that performs each sub-behavior (link_codebase, list_references, browse, put_asset). An agent can distinguish this from import_item/import_package and predict where a given file lands without opening the schema.

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 conditional routing per input type (folder of code, video by path, video by data, image/sound/subtitle, .json asset, .md skill) and states the copy/replace switches. It does not say when to prefer import_file over the sibling import tools (import_item, import_package, hub_import), so the guidance is strong in-scope but has no exclusions against those alternatives.

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