Skip to main content
Glama

Create asset version

create_asset_version
Destructive

Upload a file from a public URL as a NEW VERSION of an existing asset — the asset keeps its token, boards, and links, and its live bytes are REPLACED (head_version_number moves forward; the current head is snapshotted first). Requires a write-scope token and versioning enabled on the workspace plan. The URL must be a public https:// address (private/loopback/metadata hosts are refused). NOT idempotent — each call uploads fresh bytes and mints a new version even for an identical file, so on a timeout do NOT blind-retry; re-list versions with list_asset_versions to check whether it landed. v1 uploads a single request up to a size cap; files that need multipart upload on this workspace's storage (>=5MB on Backblaze) or exceed the cap are refused with an error directing you to the Playbook web or desktop app. The optional comment is recorded on the snapshot of the REPLACED head (not on the new content), matching revert.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYesPublic https:// URL of the new file's bytes
titleNoFilename used to derive extension/media type; defaults to the URL's last path segment
tokenYesToken of the EXISTING asset to add a version to
widthNoPixel width — only pass if actually known; do NOT guess. Omit and the server derives it.
heightNoPixel height — only pass if actually known; do NOT guess. Omit and the server derives it.
commentNoOptional note recorded on the snapshot of the REPLACED head (not the new content)
media_typeNoMIME type; defaults to the source response's Content-Type
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. 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: -[
      -  "token",
      -  "uri",
      -  "context"
      -]New value: +[
      +  "token",
      +  "uri"
      +]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive/non-idempotent, but the description adds substantial context beyond them: live bytes are replaced while the current head is snapshotted, a write-scope token and versioning-enabled plan are required, private/loopback/metadata URLs are refused, and the comment lands on the replaced head's snapshot. This is rich disclosure of side effects and constraints.

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?

Front-loads the core action in the first clause, then layers constraints, failure modes, and retry guidance in dense, non-redundant sentences. Despite its length, every sentence carries distinct decision-relevant information.

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 covers mutation semantics, auth/plan prerequisites, URL validation, size/multipart failure behavior, and the retry-vs-check procedure. An agent has everything needed to call it correctly and handle failure.

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 the schema already documents all 8 parameters and the baseline would be 3. The description adds operational meaning beyond the schema: it clarifies the uri constraint (public https, private hosts refused) and explains the comment's placement relative to revert semantics, though most param detail duplicates the schema.

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+resource: uploading a file from a public URL as a NEW VERSION of an EXISTING asset, and explicitly contrasts with creating fresh assets by noting the asset keeps its token, boards, and links. An agent can distinguish this from siblings like upload_from_url or create_upload_url immediately.

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 (existing asset + versioning enabled) and when-not (files needing multipart or over the cap are refused and redirected to the Playbook web/desktop app). It names list_asset_versions as the recovery step after a timeout and forbids blind retry, which is exactly the alternative-selection guidance a caller needs.

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