Skip to main content
Glama

filesfm_import_file

Import a new file from public HTTPS, up to 100 MiB. Pass source_url OR a client-provided file object. No local paths, private IPs, credentials or overwrite. Ask the client for a fresh URL if expired. Requires files:write and account permissions. Inspect the destination before retrying an uncertain result.

Input Schema

NameRequiredDescriptionDefault
fileNo
file_nameYes
source_urlNo
folder_hashYes

Output Schema

NameRequiredDescriptionDefault
itemYes
statusYes
replayedNoTrue when this is the stored result of an earlier call with the same idempotency_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / replayed
      Added value: +{
      +  "description": "True when this is the stored result of an earlier call with the same idempotency_key.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The description goes far beyond the annotations by detailing operational constraints (100 MiB limit), security restrictions (no local paths), and specific recovery/retry advice ('Ask the client for a fresh URL'). This provides comprehensive 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?

The definition is highly condensed but every phrase provides high-value operational context (e.g., 'No local paths,' 'up to 100 MiB'). It is front-loaded with critical constraints, though its density slightly limits perfect flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of file uploading and the presence of multiple input formats, the description is exceptionally complete. It addresses constraints, security, potential failures, and required user actions, making it nearly impossible for an agent to fail at understanding its boundaries.

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?

Although the schema description coverage is 0%, the description clearly delineates the two valid input patterns (source_url OR file object). This successfully communicates the logical structure and operational requirements of the input parameters.

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?

The description clearly defines the tool's purpose as importing a new file and specifies the exact mechanism (from public HTTPS via URL or client-provided object). It distinguishes this import function from other available file manipulation tools in the sibling list.

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?

It sets extremely strict usage boundaries: files must be public HTTPS, limited to 100 MiB, and explicitly prohibits local paths, private IPs, and credentials. It also provides crucial workflow advice regarding expired URLs and required permissions.

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