Skip to main content
Glama

upload_file

Get a file into cnaps.ai so a flow can use it. Handles images, video, audio and text (png, jpg, webp, RAW / mp4, mov, webm, mpeg, avi, flv, wmv, 3gp / wav, mp3, m4a, aac, ogg, flac / txt). Two ways in, chosen by what you pass: (1) The user gave a public HTTP/HTTPS URL → pass file_url and it is registered directly. (2) The file is on the user's machine → pass nothing, and you get back an upload link to show them; then call again with the returned token to wait for the upload and get the URLs. You CANNOT send bytes from the chat through MCP — even if you can see the image or video, use the link flow. Returns URLs usable in create_flow input_files or run_flow inputs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoUpload session token from a previous upload_file call. Provide it to wait for the user's upload (up to 15 minutes) and retrieve the file URLs.
file_urlNoPublic URL to download the file from (e.g., 'https://example.com/photo.png'). Omit when the user has no URL — you will get an upload link instead.
filenameNoOptional output filename for the file_url path. Defaults to the URL's filename.

TDQS

A5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key behavioral aspects: the two-step process for local file uploads, the 15-minute wait timeout, the necessity of a token, and the fact that supplying no arguments returns an upload link. It also clarifies that bytes cannot be sent directly, which is critical operational knowledge. This adds substantial context beyond the readOnlyHint=false annotation.

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?

Although the description is relatively long, it is densely informative with no wasted words. It follows a logical structure: purpose, supported formats, two usage modes, critical constraint, and downstream usage. Every sentence earns its place, and the information density is appropriate for the tool's complexity.

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 tool's complexity and the absence of an output schema, the description fully covers the essential return value (URLs) and their use in other tools. It also addresses the two entry points, the token mechanism, and the warning about byte transmission. No critical operational detail is omitted, making it complete for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes each parameter thoroughly (100% coverage), but the description adds significant semantic context by explaining how token and file_url correspond to the two upload flows. It clarifies the optional filename default behavior and when to omit parameters, which goes beyond schema descriptions. This makes the parameter usage actionable.

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 states the tool's purpose: 'Get a file into cnaps.ai so a flow can use it.' It specifies the resource (file upload) and distinguishes it from sibling tools by focusing on the upload process and listing supported formats. The verb 'get' is slightly ambiguous, but the context makes it clear this is about uploading/registering a file.

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?

The description provides explicit guidance on two distinct usage flows: passing a public URL vs. generating an upload link for local files. It also warns against an incorrect approach ('You CANNOT send bytes from the chat through MCP'), and explains how the returned URLs are used in create_flow or run_flow, giving clear context for when and how to invoke the tool.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct resource and action, with clear separation between flow lifecycle, execution, model exploration, community, and account tools. Even similar-sounding tools like create_flow, preview_flow, and suggest_flow have clearly different purposes (actually creating, dry-running, and recommending models). Descriptions prevent misselection.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., create_flow, list_flows, run_batch, cancel_flow). No mixed conventions or vague verbs like 'process' or 'handle'. The naming is uniform and predictable.

Tool Count3/5

At 33 tools, this is a large surface, but each tool addresses a distinct feature of the cnaps.ai platform, from flow CRUD and execution to community features and notifications. Still, it exceeds the typical well-scoped range and feels heavy, making it a borderline case between appropriate and too many.

Completeness3/5

The core flow lifecycle (create, read, update, delete, restore, duplicate) and execution (run, batch, cancel) are covered, but structural editing of flow graphs is missing—update_flow only changes parameters, not topology. Additionally, there is no run history, batch list/cancel, or community post update/delete, leaving notable gaps for a platform API.

Resources