Skip to main content
Glama

Upload a file to Wiro

upload_file

Copies a file from a public HTTP(S) URL into Wiro and returns a reusable Wiro link for multiple model runs, supporting images, audio, video, and documents up to about 100 MB.

Instructions

Copy a file from a public http(s) URL to Wiro, up to about 100 MB, and get a Wiro link back. Model file fields take public URLs directly, so use this only when the same file feeds several runs. Single files only, not .zip archives. A file that is only attached in the chat has no URL: ask the user for a public link.

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": {
      "url": "<url>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the file to upload (image, audio, video, or document).
file_nameNoOptional filename. Defaults to the URL filename.

Output Schema

NameRequiredDescriptionDefault
fileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.3
    • changedOutput schema / properties / file / properties / sizeBytes / anyOf
      Previous value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed1 schema field changedv1.4.1
    • removedOutput schema / properties / file / properties / url / format
      Removed value: -"uri"
  3. Changed2 schema fields changedv1.2.3
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed3 schema fields changedv1.2.1
    • changedInput schema / properties / file_name / description
      Previous value: -"Custom filename for the upload. If not provided, derived from the URL."New value: +"Optional filename. Defaults to the URL filename."
    • changedInput schema / properties / url / description
      Previous value: -"URL of the file to upload (image, audio, video, document)"New value: +"URL of the file to upload (image, audio, video, or document)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "file": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "type": "string"
      +        },
      +        "mimeType": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "sizeBytes": {
      +          "anyOf": [
      +            {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name",
      +        "mimeType",
      +        "sizeBytes",
      +        "url"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "file"
      +  ],
      +  "type": "object"
      +}
  5. First observedv1.1.4

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the write-ish, open-world, non-idempotent profile, and the description stays consistent with that while adding concrete constraints the annotations cannot express: ~100 MB cap, single-file only, no archives, and a Wiro link as the result. It does not mention auth requirements, failure modes for unreachable URLs, or retention of uploaded files, which keeps it short of a 5.

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?

Four short sentences, each carrying distinct information (what it does, when to use it, what it rejects, and the chat-attachment fallback), with the primary action front-loaded. No filler or repetition of schema content.

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?

Output schema covers the returned link, so the description needn't explain return values, and annotations cover the safety profile. What remains — size limit, file-type restriction, usage precondition, and the no-URL edge case — is all present, which is complete for a 2-parameter upload tool.

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?

With 100% schema description coverage on both parameters, the schema already defines 'url' and 'file_name' including the default filename behavior. The description adds only indirect context (public URL requirement, allowed media types implied by 'file') rather than parameter-level meaning, so the baseline 3 applies.

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?

States a specific verb and resource ('Copy a file from a public http(s) URL to Wiro') plus the outcome ('get a Wiro link back'), which is a different operation from the sibling task/workflow tools. The scope is unambiguous enough that an agent can tell it apart from simply passing a URL into a model field.

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?

Explicitly says when NOT to use it ('Model file fields take public URLs directly, so use this only when the same file feeds several runs'), naming the alternative behavior. It also covers two edge cases: no .zip archives, and chat-only attachments that need the user to supply a public link first.

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