Skip to main content
Glama

Upload file

upload_file

Upload files to Clueso. Pick a mode by client and where the file lives:

  • files (ChatGPT only): the user's attachments, filled by ChatGPT; pass them instead of asking for a re-upload.

  • file_name + content_base64 (small files, max 3.5 MB decoded): the bytes go inline through this MCP call and mcp_upload_id returns at once. Use it when the curl/upload URL below is unreachable (sandbox egress allowlist, 403 from a proxy).

  • file_name alone (default for agents/scripts: Claude Code, Cursor, Claude Desktop): returns an upload URL on Clueso's own domain (not S3; works where cloud storage is blocked) + a ready curl that PUTs one local file; you or the user run it.

  • file_names (without request_hosted_upload): the same for many files, one token + URL each and ONE curl for all; run it from the folder the names are relative to (edit_animation upload_ids: the page site's root, e.g. 'index.html', 'js/scene.js').

  • file_url: a public https URL; the server fetches it; mcp_upload_id returned at once.

  • request_hosted_upload (only when a human should pick files in a browser, or no shell/PUT): one upload_token + upload_page link covering every file dropped; the user drops files and clicks Done; then check_uploads(upload_token). Call once for all files.

The mcp_upload_id (mup_…) goes to:

  • add_elements / update_elements: an image/video ON a clip (or a source swap) as type_data.mcp_upload_id; an animation's image slot inside type_data.parameter_values (update_elements, or add_elements placing a canvas kit).

  • add_audio (project music track) · add_clips(kind='video') (video/audio → clip with transcription) · add_clips(kind='pptx') · add_article_media · analyze_audio · edit_animation (files: [{path, upload_id}] or upload_ids named by path, so big files never go inline).

purpose: 'font' (any mode; display_name optional) adds it to this workspace's brand fonts once it arrives: the curl's reply (this reply for file_url/files, check_uploads for the hosted page) carries font: {name, family, format, converted_from} or font_error. TTF, OTF, WOFF, WOFF2 (WOFF/WOFF2 stored as TTF). Name = display_name, else the family without build dates/versions ("Cursor Mono 260406" → "Cursor Mono"); use it exactly in font_setting.font and pages. One face per name; an existing name is refused. Needs editor/admin and a plan with custom fonts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoChatGPT file attachments, one entry per file (filled by ChatGPT).
purposeNo'font': add the file to this workspace's brand fonts once it arrives (see above). With request_hosted_upload, every file dropped on the page is one, reported by check_uploads.
file_urlNoPublic URL to fetch the file from
file_nameNoFile name with extension. Returns a Clueso upload URL + curl command that streams this single local file to us (single file).
file_namesNoHosted mode: the file names the user will upload, shown on the page. Without request_hosted_upload: upload these local files in one call (one token + URL each, and one curl for all), max 50.
display_nameNoWith purpose 'font' and one file (file_name, file_url, one files entry, or one file_names entry): the name to list the font under. Default: its family name without build dates or versions.
content_base64NoWith file_name: the file's bytes, base64 (max 3.5 MB decoded; bigger files: file_name alone or file_url). Stores the file now and returns mcp_upload_id; for when the upload URL can't be reached.
request_hosted_uploadNoIf true, returns a hosted upload page. Call once for all files — the page accepts multiple uploads under one token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / content_base64
      Added value: +{
      +  "description": "With file_name: the file's bytes, base64 (max 3.5 MB decoded; bigger files: file_name alone or file_url). Stores the file now and returns mcp_upload_id; for when the upload URL can't be reached.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / display_name
      Added value: +{
      +  "description": "With purpose 'font' and one file (file_name, file_url, one files entry, or one file_names entry): the name to list the font under. Default: its family name without build dates or versions.",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / file_names / description
      Previous value: -"List of file names the user will upload (for hosted mode). Shown on the upload page as guidance."New value: +"Hosted mode: the file names the user will upload, shown on the page. Without request_hosted_upload: upload these local files in one call (one token + URL each, and one curl for all), max 50."
    • addedInput schema / properties / purpose
      Added value: +{
      +  "description": "'font': add the file to this workspace's brand fonts once it arrives (see above). With request_hosted_upload, every file dropped on the page is one, reported by check_uploads.",
      +  "enum": [
      +    "font"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / files
      Added value: +{
      +  "description": "ChatGPT file attachments, one entry per file (filled by ChatGPT).",
      +  "items": {
      +    "properties": {
      +      "download_url": {
      +        "description": "Temporary download URL supplied by ChatGPT",
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "description": "ChatGPT file id",
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "type": "string"
      +      },
      +      "mime_type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  4. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "context",
      -  "llm_model"
      -]
  5. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "context",
      +  "llm_model"
      +]
  6. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, but the description adds substantial operational context: the 3.5 MB decoded cap, the 50-file ceiling, that a token/URL/curl must be run by the agent or user, that mcp_upload_id is returned immediately in the inline and file_url modes, and that checking happens via check_uploads. It also discloses font-side effects (format conversion, name collisions refused, editor/admin plus a custom-font plan required). The only gap is that the exact response payload for the non-font modes is described loosely rather than precisely.

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 mode list is front-loaded and each bullet earns its place, and the downstream-consumer list is genuinely useful routing information. It is, however, dense and long for a tool description; the font paragraph compresses conversion rules, naming derivation and permission requirements into one block without line breaks, which costs some scannability.

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?

With no output schema and eight parameters driving six distinct modes, the description carries the return-value burden and mostly does: mcp_upload_id format, upload URL plus ready curl, hosted page plus token, and the font result object with font_error. What is thinner is what non-font consumers see on the curl path (e.g. how to confirm the PUT succeeded before using the id), which is only implied via check_uploads.

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?

Schema coverage is already 100%, but the description rises above baseline by explaining inter-parameter semantics the schema cannot express: which parameter combinations constitute which mode, that file_names without request_hosted_upload means 'upload these local files now' versus hosted mode meaning 'names shown on the page', and that file_names paths are relative to the folder the curl is run from (e.g. the page site root for edit_animation upload_ids). display_name is also bounded to the single-file font case.

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?

Opens with a specific verb and resource ('Upload files to Clueso') and immediately enumerates the distinct operating modes by parameter combination (files, file_name+content_base64, file_name alone, file_names, file_url, request_hosted_upload). An agent can tell exactly which shape of call it is making, and the definition names check_uploads as the follow-up for the hosted flow.

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?

Each mode carries an explicit selection condition: 'files (ChatGPT only)', inline base64 'when the curl/upload URL below is unreachable (sandbox egress allowlist, 403 from a proxy)', file_name alone as 'default for agents/scripts', and request_hosted_upload 'only when a human should pick files in a browser, or no shell/PUT'. It also states when-not conditions and the alternative to fall back on, leaving little inference.

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.