Skip to main content
Glama

Upload Directory to Iagon

iagon_upload_directory

Upload all files from a local directory to Iagon storage, with optional glob filtering, recursive subdirectory scanning, and destination folder selection. Files over 40MB are skipped.

Instructions

Upload all files from a local directory to Iagon storage.

This tool scans a directory and uploads all matching files. Files larger than 40MB will be skipped.

Args:

  • local_directory (string, required): Absolute path to the local directory

  • folder_id (string, optional): ID of the destination folder in Iagon

  • include_pattern (string, optional): Glob pattern to filter files (e.g., ".mp4", ".mov")

  • recursive (boolean, optional): Include files from subdirectories (default: false)

Returns: Summary of uploads with success/failure status for each file.

Examples:

  • Upload all videos: local_directory="/Users/me/videos", include_pattern="*.mp4"

  • Upload recursively: local_directory="/Users/me/project", recursive=true

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": {
      "local_directory": "<local_directory>"
    },
    "name": "iagon_upload_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_idNoOptional: ID of the destination folder in Iagon
recursiveNoInclude files from subdirectories
include_patternNoOptional: Glob pattern to filter files (e.g., '*.mp4')
local_directoryYesAbsolute path to the local directory to upload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), so the description's burden is lighter. It adds genuinely useful behavior beyond them: the hard 40MB per-file skip and a per-file success/failure return summary. It omits what happens when a file already exists at the destination, which is a real gap for a non-idempotent uploader.

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 front-loaded with the purpose and the 40MB constraint before any parameter detail. The Args block duplicates the schema descriptions, costing some space, but the returns line and two examples each add information rather than padding.

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?

For a four-parameter upload tool with rich annotations and no output schema, this covers what an agent needs: scope, size cutoff, defaults, argument meanings, and the shape of the result summary. The remaining unknowns (overwrite policy, auth) are secondary to correct invocation and are partly neutralized by the supplied annotations.

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 description coverage is 100%, so the baseline is 3 and the Args section largely restates the schema. The examples go beyond it by showing realistic combinations, particularly how include_pattern globs narrow the scan and how recursive interacts with subdirectories, which clarifies parameter intent rather than duplicating it.

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?

The description states a specific verb and resource ('Upload all files from a local directory to Iagon storage') and adds the scanning behavior, making the operation concrete. It does not name or contrast with overlapping siblings such as iagon_upload_file or iagon_bulk_upload, so an agent must infer the boundary from the directory-vs-file wording alone.

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?

Usage is implied through examples ('Upload all videos', 'Upload recursively') and the recursive default, which give an agent a workable sense of when this tool fits. There is no explicit statement of when NOT to use it versus iagon_upload_file or iagon_bulk_upload, and no prerequisites such as destination-folder existence.

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