Skip to main content
Glama

Upload one local input file

upload_file
Destructive

Upload a selected local media file (1 B–20 MiB) to fal.media using the pinned SDK upload-initiation protocol and a credential-free HTTPS PUT with redirects refused.

Instructions

Confirmed selected absolute regular non-symlink local file, 1 byte–20 MiB. Uses pinned SDK upload-initiation protocol then a credential-free HTTPS fal.media PUT with redirects refused. No remote URL ingestion, base64 model output, multipart retries or automatic generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact configured isolated API-key profile label.
confirmNoSet true only when the user asked for exactly this action.
file_pathYesAbsolute selected local media file, regular/non-symlink, 1 byte–20 MiB.
lifecycleNoNative CDN expiry/ACL preference. Omit to use account defaults. null expiration means no expiry; default CDN access may be public. Unknown nicknames may be dropped by provider.
content_typeYesPlain MIME type matching the selected media.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.1
    • changedInput schema / properties / confirm / description
      Previous value: -"Explicit approval for the requested paid work, mutation, upload or private file."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false and openWorld=true, so the safety profile is covered. The description adds genuinely useful mechanics beyond that: a pinned SDK upload-initiation step followed by a credential-free HTTPS PUT with redirects refused, and explicitly no multipart retries or automatic generation, which contextualizes the non-idempotent, non-retrying behavior.

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?

Two tight sentences with no filler, and the input constraints are front-loaded. It is telegraphic and jargon-dense, but nothing is wasted and the structure is functional.

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

Completeness3/5

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

There is no output schema, so the description carries the return-value burden and it says nothing about what an upload produces or how it relates to upload_asset. For a destructive, non-idempotent mutation with nested lifecycle parameters, the description is serviceable but leaves meaningful gaps.

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 every parameter is already documented in the schema, including the file size/symlink constraints and lifecycle semantics. The description largely restates the file constraints and adds no meaning for confirm, account, or content_type. Baseline 3 is appropriate.

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

Purpose3/5

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

The description conveys that a local file is uploaded through a specific protocol, but it opens with a noun phrase of constraints rather than a clean verb+resource statement. It never distinguishes itself from the sibling upload_asset, leaving the agent to guess which upload tool applies. Purpose is inferable but not crisply stated.

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 closing sentence lists exclusions ('no remote URL ingestion, base64 model output, multipart retries or automatic generation'), which implicitly tells the agent when this tool is not appropriate. However, it names no alternative tool and gives no positive when-to-use condition beyond the input constraints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.