Skip to main content
Glama

Upload from URLs

upload_from_urls

Upload up to 100 assets in one call by giving Playbook public URLs to fetch. All assets land in the same folder. Returns an array of skeleton assets immediately; the byte fetches run asynchronously per asset in the background. Requires a token with the write scope. Playbook fetches each URL itself, anonymously — links behind a login, expired signed URLs, and files that exist only on someone's machine cannot be ingested here. For those, use share_folder with enable_uploads. It returns a link a person can drop files on without signing in, and whatever they add lands on that folder for you to collect with list_assets. It needs a live human and it shows the folder's existing contents to anyone holding the link, so reach for it only once no fetchable URL is available. Each fetch runs to a time budget (five minutes of streaming), so a source that is very large or very slow fails with "Source URL too large to fetch; upload manually" — when that happens, send those bytes yourself with create_upload_urls rather than retrying. Tip: validate collection_token with get_folder first — an unknown token silently falls back to an anonymous default folder.

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": {
      "collection_token": "<collection_token>",
      "assets": "<assets>"
    },
    "name": "upload_from_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetsYesArray of URL ingest specs (1-100 items)
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.
collection_tokenYesDestination folder token (applied to every asset)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / collection_token / description
      Previous value: -"Destination board token (applied to every asset)"New value: +"Destination folder token (applied to every asset)"
  2. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / assets / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / assets / items / properties / ai_agent_payload / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / assets / items / properties / ai_agent_payload / description
      Previous value: -"Your own scratch space on this asset — prompt, model, seed, source job id, anything you need to recognise it in a later session. Playbook never interprets it. Max 4096 BYTES of serialised JSON; anything larger is REJECTED, never truncated. A write REPLACES the whole object. Readable per asset (get_asset, or list/search with get_ai_payload=true) but NOT searchable or filterable."New value: +"Free-form JSON metadata stored with the asset — for example generation settings such as model and seed, or a source job id. Playbook never interprets it. Max 4096 BYTES of serialised JSON; anything larger is REJECTED, never truncated. A write REPLACES the whole object. Readable per asset (get_asset, or list/search with get_ai_payload=true) but NOT searchable or filterable."
    • 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: -[
      -  "collection_token",
      -  "assets",
      -  "context"
      -]New value: +[
      +  "collection_token",
      +  "assets"
      +]
  4. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the description is not carrying the safety-profile burden alone. It does add real behavior beyond them — asynchronous per-asset byte fetching with a five-minute streaming budget, a specific failure message, the `write` scope requirement, and anonymous server-side fetching of source URLs. A 3 reflects that these additions are genuinely useful but partially restate the open-world/async profile the annotations imply.

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 correctly: the operation, the batching limit and the async return come in the first two sentences, with routing and failure handling after. It is dense but the share_folder digression runs long ('It needs a live human and it shows the folder's existing contents...'), spending more words on a sibling than on this tool's own preconditions.

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?

The tool is complex — batch, asynchronous, external fetch, no output schema — and the description covers the missing pieces: what is returned synchronously, that bytes arrive later, which token scope is required, and how to recover from the two plausible failures. The 'send those bytes yourself with create_upload_urls rather than retrying' line closes the loop on the only open failure path.

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 coverage is 100%, so the schema already defines all three parameters, including the 100-item cap and the uri/uuid/title fields. The description's main semantic addition is the collection_token failure mode — an unknown token silently falls back to an anonymous default folder — which is a useful warning the schema does not contain, though 'All assets land in the same folder' largely repeats the schema's 'applied to every asset'.

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 with explicit batch scope: 'Upload up to 100 assets in one call by giving Playbook public URLs to fetch.' It also pins down the destination ('All assets land in the same folder') and the return shape ('array of skeleton assets immediately'), which is enough to separate it from the single-URL sibling upload_from_url.

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?

It names concrete alternatives and the exact condition for each: use share_folder with enable_uploads when a URL is not anonymously fetchable, and use create_upload_urls when a fetch exceeds the time budget. It even states the precondition for the fallback ('It needs a live human...') and adds a pre-flight step ('validate collection_token with get_folder first').

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