Skip to main content
Glama

Upload a file to an instance

file_upload
DestructiveIdempotent

Upload a file to a running instance. Provide the file content as a string and the remote path. Max 10MB. Uses keyless SCP. Docs: https://www.runcrate.ai/docs/instances/connecting#file-transfer

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": {
      "id": "<id>",
      "content": "<content>",
      "path": "<path>"
    },
    "name": "file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesInstance ID
pathYesRemote file path (e.g., /workspace/train.py)
contentYesFile content to upload
workspaceNoWorkspace ID (optional: defaults to the authenticated workspace)
environmentNoEnvironment name (optional: defaults to the environment this session acts in)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / env
      Removed value: -{
      -  "description": "Environment name (optional — defaults to main)",
      -  "type": "string"
      -}
    • addedInput schema / properties / environment
      Added value: +{
      +  "description": "Environment name (optional: defaults to the environment this session acts in)",
      +  "type": "string"
      +}
    • changedInput schema / properties / workspace / description
      Previous value: -"Workspace ID (optional — defaults to authenticated workspace)"New value: +"Workspace ID (optional: defaults to the authenticated workspace)"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Adds real value beyond annotations: a hard 10MB payload limit and the fact that transfer uses keyless SCP (no SSH key setup required). However, the annotations declare destructiveHint=true and idempotentHint=true, and the description never explains that uploading to an existing path overwrites it — the most consequential behavior for an agent to know.

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?

Four short sentences, zero redundancy, front-loaded with the action and its target, then requirements, then the size limit, then the transport mechanism. The docs link is a cheap pointer rather than padding.

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 5-parameter mutation with no output schema, the description covers the essentials an agent needs to make a correct call: content-as-string, target path, size cap, and authentication mode. It is slightly thin on overwrite semantics and does not describe what the tool returns on success or failure, but nothing critical 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 description coverage is 100%, so the schema already documents all five parameters including the optional workspace and environment defaults. The description restates the two core inputs ('content as a string', 'remote path') without adding format or constraint detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Upload a file to a running instance') with the scope constrained to a running instance, which inherently separates it from file_download and ssh_execute. It does not explicitly name or contrast with those siblings, so it lands just below the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description tells the agent what to supply (file content as a string, remote path) and states a 10MB cap, which implies when the tool is applicable. It never says when to prefer this over ssh_execute or file_download, nor what happens for files over the limit, so usage is only implied.

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.