Skip to main content
Glama

Import a file from URL

import_file

Download a remote file (public https URL) into the workspace Media Assets library. Allowed types: image/, audio/, video/*, and application/pdf, text/html and other types are rejected; max 10 MB. Optionally attach a note to a contact recording that the file was imported for them.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic https URL of the file to import.
nameNoDisplay name for the asset (default: the remote filename).
contact_idNoOptional, attach an import note to this contact.

Output Schema

NameRequiredDescriptionDefault
okNo
urlNo
assetNo
errorNoPresent only when ok is false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / contact_id / description
      Previous value: -"Optional — attach an import note to this contact."New value: +"Optional, attach an import note to this contact."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds real value with the type allowlist, the 10 MB limit, and the side effect of attaching an import note to a contact. It does not disclose what happens on a repeat import of the same URL (duplicate asset vs. overwrite), which matters given idempotentHint=false.

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?

Two tight sentences, front-loaded with the action and destination, then constraints, then the optional side effect. No filler or restatement of the title.

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?

An output schema exists, so return values need not be explained, and annotations carry the safety profile. The description covers destination, accepted types, size limit and the contact-note side effect, leaving only duplicate-handling and failure behavior unstated.

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 100%, so the baseline is 3, but the description adds meaning beyond the schema: it clarifies that url must be a public https address and that contact_id causes an import note to be recorded on that contact, a side effect the schema only hints at. The name parameter's default is already in the schema and is not repeated.

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 and resource ('Download a remote file... into the workspace Media Assets library'), which cleanly separates it from the read-only sibling list_media_assets. An agent knows exactly what this tool produces and where the result lands.

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 operating context: the URL must be public https, only image/audio/video and application/pdf are accepted, and text/html and other types are rejected, with a 10 MB cap. It does not name an alternative tool or state when not to use this one, but the type and size exclusions effectively define the boundary.

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