Skip to main content
Glama

Create a file upload link

create_file_upload

Create a one-time link that uploads one file from a shell with curl.

    The bytes go from the local disk to Hail directly, not through the tool call,
    so any file that is not tiny goes this way.
    An email attachment can be up to 25 MB. A verification document must be
    JPG, PNG or PDF, up to 10 MB, and is usable for 1 hour after the upload.
    SMS evidence must be a JPG, PNG or PDF of the given ``content_type``, up to 10 MB.
    Its upload response has a public ``url`` for an ``*_evidence_url`` field.
    Carrier reviewers open it without signing in, so remove personal information first.
    A knowledge document is a PDF with text, DOCX, TXT, Markdown, CSV or
    XLSX. It can be up to the workspace's file limit (``max_bytes``).
    Returns ``id``, ``upload_url``, ``expires_at`` (15 minutes), ``max_bytes``
    and a ready ``curl`` line with a ``'FILE_PATH'`` placeholder for the
    file's absolute path.
    The link needs no key and works once. The upload response holds
    ``size_bytes`` and ``sha256`` to compare with the local file.

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": {
      "purpose": "<purpose>",
      "filename": "<filename>",
      "content_type": "<content_type>"
    },
    "name": "create_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeYesWhat the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``. ``knowledge_document``: its ``id`` goes in ``add_knowledge_document``.
filenameYesFile name, such as ``passport.pdf``.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
content_typeYesThe file's MIME type, such as ``application/pdf``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / purpose / description
      Previous value: -"What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``."New value: +"What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``. ``knowledge_document``: its ``id`` goes in ``add_knowledge_document``."
    • changedInput schema / properties / purpose / enum
      Previous value: -[
      -  "email_attachment",
      -  "verification_document",
      -  "sms_evidence"
      -]New value: +[
      +  "email_attachment",
      +  "verification_document",
      +  "sms_evidence",
      +  "knowledge_document"
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "Returned by ``POST /uploads``: a one-time link to send the bytes to.",
      -    "properties": {
      -      "content_type": {
      -        "description": "The type the file is stored with.",
      -        "title": "Content Type",
      -        "type": "string"
      -      },
      -      "curl": {
      -        "description": "Upload command template.",
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "description": "When the link stops working.",
      -        "format": "date-time",
      -        "title": "Expires At",
      -        "type": "string"
      -      },
      -      "id": {
      -        "description": "The upload's id.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "max_bytes": {
      -        "description": "The largest file the link takes, in bytes.",
      -        "title": "Max Bytes",
      -        "type": "integer"
      -      },
      -      "method": {
      -        "const": "PUT",
      -        "description": "The HTTP method for `upload_url`.",
      -        "title": "Method",
      -        "type": "string"
      -      },
      -      "next": {
      -        "description": "Upload instructions.",
      -        "type": "string"
      -      },
      -      "purpose": {
      -        "description": "What the file is for.",
      -        "enum": [
      -          "email_attachment",
      -          "verification_document",
      -          "sms_evidence"
      -        ],
      -        "title": "Purpose",
      -        "type": "string"
      -      },
      -      "upload_url": {
      -        "description": "Send the raw file bytes here with `PUT`. No Authorization header: the `token` in the URL is the only credential. Works once, until `expires_at`. Treat it like a password.",
      -        "title": "Upload Url",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "purpose",
      -      "upload_url",
      -      "method",
      -      "content_type",
      -      "max_bytes",
      -      "expires_at",
      -      "curl",
      -      "next"
      -    ],
      -    "title": "FileUploadLinkResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Returned by ``POST /uploads``: a one-time link to send the bytes to.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The type the file is stored with.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "curl": {
      +        "description": "Upload command template.",
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "description": "When the link stops working.",
      +        "format": "date-time",
      +        "title": "Expires At",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "The upload's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "max_bytes": {
      +        "description": "The largest file the link takes, in bytes.",
      +        "title": "Max Bytes",
      +        "type": "integer"
      +      },
      +      "method": {
      +        "const": "PUT",
      +        "description": "The HTTP method for `upload_url`.",
      +        "title": "Method",
      +        "type": "string"
      +      },
      +      "next": {
      +        "description": "Upload instructions.",
      +        "type": "string"
      +      },
      +      "purpose": {
      +        "description": "What the file is for.",
      +        "enum": [
      +          "email_attachment",
      +          "verification_document",
      +          "sms_evidence",
      +          "knowledge_document"
      +        ],
      +        "title": "Purpose",
      +        "type": "string"
      +      },
      +      "upload_url": {
      +        "description": "Send the raw file bytes here with `PUT`. No Authorization header: the `token` in the URL is the only credential. Works once, until `expires_at`. Treat it like a password.",
      +        "title": "Upload Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "purpose",
      +      "upload_url",
      +      "method",
      +      "content_type",
      +      "max_bytes",
      +      "expires_at",
      +      "curl",
      +      "next"
      +    ],
      +    "title": "FileUploadLinkResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  3. Changed3 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "description": "Returned by ``POST /uploads``: a one-time link to send the bytes to.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The type the file is stored with.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "curl": {
      +        "description": "Upload command template.",
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "description": "When the link stops working.",
      +        "format": "date-time",
      +        "title": "Expires At",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "The upload's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "max_bytes": {
      +        "description": "The largest file the link takes, in bytes.",
      +        "title": "Max Bytes",
      +        "type": "integer"
      +      },
      +      "method": {
      +        "const": "PUT",
      +        "description": "The HTTP method for `upload_url`.",
      +        "title": "Method",
      +        "type": "string"
      +      },
      +      "next": {
      +        "description": "Upload instructions.",
      +        "type": "string"
      +      },
      +      "purpose": {
      +        "description": "What the file is for.",
      +        "enum": [
      +          "email_attachment",
      +          "verification_document",
      +          "sms_evidence"
      +        ],
      +        "title": "Purpose",
      +        "type": "string"
      +      },
      +      "upload_url": {
      +        "description": "Send the raw file bytes here with `PUT`. No Authorization header: the `token` in the URL is the only credential. Works once, until `expires_at`. Treat it like a password.",
      +        "title": "Upload Url",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "purpose",
      +      "upload_url",
      +      "method",
      +      "content_type",
      +      "max_bytes",
      +      "expires_at",
      +      "curl",
      +      "next"
      +    ],
      +    "title": "FileUploadLinkResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"create_file_upload_toolDictOutput"
  4. Changed2 schema fields changed
    • changedInput schema / properties / purpose / description
      Previous value: -"What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``."New value: +"What the file is for. ``email_attachment``: its ``id`` goes in ``send_email``'s ``attachment_ids``. ``verification_document``: its ``id`` goes in the ``files`` of ``check_verification`` and ``submit_verification`` as ``{slot, upload_id}``. ``sms_evidence``: a US texting consent screenshot; the upload response's ``url`` goes in an ``*_evidence_url`` field. Anyone with that link can open the file, and a workspace keeps at most 100. Deleting one needs the console or ``DELETE /v1/verifications/sms/evidence/{organization_id}/{token}``."
    • changedInput schema / properties / purpose / enum
      Previous value: -[
      -  "email_attachment",
      -  "verification_document"
      -]New value: +[
      +  "email_attachment",
      +  "verification_document",
      +  "sms_evidence"
      +]
  5. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare non-read-only, non-destructive, non-idempotent, but the description adds far more than they do: the link needs no key, works exactly once, expires in 15 minutes, bytes flow directly from disk to Hail rather than through the tool call, and the upload response carries size_bytes and sha256 for local verification. It also discloses a real-world privacy hazard (carrier reviewers open the link without signing in, so personal information must be removed first). Minor gap: it doesn't say what happens if the link expires before use.

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 core action and the data-path explanation, and nearly every sentence carries a distinct constraint. It is dense — the purpose-specific rules run together as prose without grouping — so it reads longer than necessary, but no sentence is filler.

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 an output schema exists and the input schema is fully documented, the description still covers the behavior an agent would otherwise guess at: the out-of-band upload flow, link lifetime, size/format rules by purpose, and the privacy obligation. Nothing needed to call this correctly is missing.

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 a baseline of 3 would be acceptable, but the description adds per-purpose constraints (formats, byte limits, retention, downstream field) that the schema summaries only partly mirror. The only weak spot is llm_model, which the description never mentions, though the schema explains it as analytics metadata.

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 opens with a specific verb and resource ('Create a one-time link that uploads one file from a shell with curl') and explains the out-of-band data path. It implicitly routes small files elsewhere ('any file that is not tiny goes this way') but never names the sibling upload_email_attachment or defines the 'tiny' threshold, so the split between the two upload tools remains inferred rather than stated.

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?

Usage is spelled out per purpose: size and format limits for email attachments, verification documents, SMS evidence, and knowledge documents, plus where each resulting id or url is consumed downstream. It also states the operational condition — the link works once, expires in 15 minutes, and a verification document is usable for an hour after upload — so an agent knows exactly when this tool applies.

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.