Skip to main content
Glama

Create upload URL

create_upload_url

Step 1 of 2 for uploading a file you already HOLD — one generated locally, returned as base64 by an image API, or sitting on disk. Returns a one-time address to send the bytes to, plus the exact HTTP requests to make; the caller sends the bytes and finish_upload then turns them into an asset. Requires a token with the write scope and a caller that can make HTTP requests. Prefer upload_from_url whenever the file is already at a URL Playbook can fetch — that route is one call and needs nothing from you. Come here when it is not: no URL at all, a URL behind a login, an expired signed URL, a host that blocks datacenter addresses, or an ingest that failed with "Source URL too large to fetch; upload manually" (Playbook's fetcher runs to a five-minute streaming budget, which this path does not have — though it has a size ceiling of its own, below). When neither a reachable URL nor HTTP requests are available, share_folder with enable_uploads returns a link a person can drop the file on. Files up to 2 GB: above 100 MB the recipe sends the file in 32 MB slices. Larger files are refused; the Playbook web and desktop apps take them.

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": {
      "filename": "<filename>",
      "size": "<size>",
      "media_type": "<media_type>"
    },
    "name": "create_upload_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesExact size of the file in BYTES. It is checked against the workspace's storage allowance before the upload address is issued, and a wrong value here produces a signature that does not match the bytes you actually send. Measure it, do not estimate it.
filenameYesFilename including its extension, e.g. "moon.png". Playbook derives the stored file extension from it, so a name with no extension produces an object with no usable type. It does NOT become the asset's title — the two calls share no state, so pass the title again to finish_upload.
media_typeYesMIME type of the file, e.g. "image/png". Required, and required again at completion: it is covered by the upload signature, so the value you give here is the exact Content-Type the recipe will tell you to send. Get it from whatever produced the file rather than guessing from the extension.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / size / maximum
      Added value: +9007199254740991
  2. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "filename",
      -  "size",
      -  "media_type",
      -  "context"
      -]New value: +[
      +  "filename",
      +  "size",
      +  "media_type"
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, non-destructive, non-idempotent; the description goes well beyond by disclosing the required `write` token scope, the caller's need to make HTTP requests, that the returned address is one-time, that finish_upload is required to convert bytes into an asset, and the 2 GB ceiling with 32 MB slicing above 100 MB. It also explains the asymmetry with the fetcher's five-minute streaming budget, which is exactly the kind of operational context annotations cannot express.

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?

Front-loaded with the step-1-of-2 framing and well ordered (what it does, what it returns, prerequisites, alternatives, limits). It is a dense block paragraph with several parenthetical asides, and the size/slicing detail arrives late, so it is informative but slightly harder to scan than it could be.

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, and the description compensates by describing what comes back (a one-time address plus exact HTTP requests) and how the caller must proceed. With prerequisites, limits, failure modes, and fallbacks all covered, an agent has everything needed to call this correctly.

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 coverage is 100%, so baseline is 3, but the description adds meaning the schema lacks: the effective 2 GB size ceiling (the schema's `maximum` is only the JS safe-integer bound) and the slicing behavior that depends on `size`. The cross-call note that filename does not become the asset title is present in the schema but reinforced usefully.

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 ('Create upload URL', step 1 of 2 for uploading a file you already hold) and enumerates the three cases it covers: locally generated, base64 from an image API, or on disk. It explicitly names the sibling it is not (upload_from_url) and the completion step (finish_upload), so an agent can distinguish it from adjacent tools without opening a schema.

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?

Gives explicit when-to-use and when-not-to-use rules: prefer upload_from_url if the file is already fetchable, come here for no URL, a login-protected URL, an expired signed URL, a datacenter-blocked host, or a 'Source URL too large' failure. It even names a third fallback (share_folder with enable_uploads) for callers with no HTTP capability, which is a complete routing decision tree.

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