Skip to main content
Glama

Get a signed upload URL for a large file

create_artifact_upload

Use this when you need to attach a file too big for add_artifact's inline base64 path (~6 MB): decks, PDFs, audio recordings, archives. Returns a short-lived signed upload URL plus an upload_token. PUT the raw file bytes to upload_url (Content-Type set to the file's type, no base64), then call add_artifact with the same task_id, name and upload_token to record the artifact. Nothing is recorded until you finalize, so an abandoned upload leaves no artifact behind. API reference: https://tango.applayer.io/docs/api/tools/create_artifact_upload

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFilename, with its real extension (report.pptx, call.m4a).
task_idYesTask the file belongs to.
mime_typeNoOptional. Content-Type you will send on the PUT.
size_bytesNoOptional. Expected file size.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / task_id / format
      Removed value: -"uuid"
    • removedInput schema / properties / task_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so safety is partly covered, but the description adds genuinely useful behavior beyond that: the URL/token are short-lived, bytes must be PUT raw with the correct Content-Type and no base64, and crucially nothing is recorded until finalize so an abandoned upload leaves no artifact. It stops short of stating permissions required or the exact expiry window, hence 4.

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?

Dense and front-loaded: the selection condition, return values, invocation steps, and lifecycle guarantee are all present with no filler sentences. The API reference link is the only extra and is proportionate.

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?

No output schema exists, yet the description explains what is returned (signed upload URL plus upload_token) and the exact follow-up call needed. For a two-step upload flow with a mutation side-effect, the description covers everything an agent needs to avoid stranding an upload.

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?

Schema description coverage is 100%, so the schema already documents all four parameters (name, task_id, mime_type, size_bytes). The description echoes task_id, name and upload_token in workflow context but adds no syntax or format detail beyond what the schema provides, 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 ('Get a signed upload URL') and immediately distinguishes itself from the sibling add_artifact by naming the size threshold (~6 MB) that selects it. An agent can tell exactly what this tool does and when it is the right one.

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?

Names the alternative (add_artifact inline base64 path), the condition that selects this tool (files too big for that path, with examples), and the downstream step (call add_artifact with the same task_id, name, upload_token). The full two-step workflow is spelled out, leaving nothing to 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.

Resources