Skip to main content
Glama

Upload from URL

upload_from_url

Upload a single asset to a Playbook folder by giving Playbook a public URL to fetch. Returns immediately with a skeleton asset; the byte fetch runs asynchronously in the background. Requires a token with the write scope. Playbook fetches the URL itself, anonymously — a link behind a login or a signed URL that has expired will not work here, and neither will a file that exists only on someone's machine. 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. The 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 the bytes yourself with create_upload_url 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": {
      "uri": "<uri>"
    },
    "name": "upload_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriYesPublic URL of the file to ingest
tagsNoManual tags to apply
titleNoOverride the title. Defaults to the filename in the URL. Not derived when as_link is true — Playbook titles those from the linked page's own metadata.
statusNoStatus label to set
as_linkNoIf true, store as a bare link instead of fetching bytes (default false)
descriptionNoOptional description
ai_generatedNoMark the asset as produced by an AI tool. Set it at creation rather than by a later update. Through these tools it is a marker and nothing else; on Playbook's REST presigned-upload endpoints the same flag additionally suppresses automatic duplicate merging and grouping.
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.
ai_agent_payloadNoFree-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.
collection_tokenNoDestination folder token. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / collection_token / description
      Previous value: -"Destination board token. If omitted or unknown, Playbook silently routes to a default anonymous board — call get_board first to validate."New value: +"Destination folder token. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate."
  2. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / ai_agent_payload / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / 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: -[
      -  "uri",
      -  "context"
      -]New value: +[
      +  "uri"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation/open-world profile; the description goes well beyond by disclosing asynchronous execution with an immediate skeleton asset, the required `write` scope, anonymous unauthenticated fetching, and a five-minute streaming budget with the exact error string. It also warns about silent misrouting to a default folder, which is the most dangerous undocumented behavior here.

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?

Core behavior, async semantics, and the auth prerequisite are front-loaded in the first three sentences, and the tip is clearly demarcated. The share_folder digression runs two sentences and could be tightened, but it justifies itself by explaining why the alternative is a last resort.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with no output schema, the description covers return shape (skeleton asset), failure modes, scoping, and token requirements. The one gap is post-upload lifecycle: it never says how the agent learns the background fetch finished or how to check the resulting asset, leaving polling to list_assets/get_asset by inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the description still adds operational meaning: validating collection_token with get_folder because an unknown token silently falls back to an anonymous folder, and the as_link/title interaction. These are behaviors an agent would not infer from the field descriptions alone.

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?

The first sentence names a specific verb (upload), a specific resource (a single asset), and the mechanism (Playbook fetches a public URL), plus the destination (a folder). The word 'single' and the URL-fetch framing separate it from sibling upload paths such as upload_from_urls and create_upload_url without needing their schemas.

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 states explicit exclusions (login-gated links, expired signed URLs, local-only files) and routes each failure case to a named alternative: share_folder with enable_uploads, and create_upload_url after a size/timeout error. It even explains the cost of the fallback ('needs a live human', exposes folder contents) so the agent knows to try this tool 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