Skip to main content
Glama

Update asset

update_asset
DestructiveIdempotent

Change a workspace asset: rename it, or fix a font's family, weight or style (e.g. a variable font listed at weight 400: fontWeight "100 900", so font-bold and font-extrabold use the file). Every file of the workspace uses the change. A workspace admin or the asset's uploader only. The asset is looked up in fileId's workspace when given, else workspace, else the default workspace.

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": {
      "asset": "<asset>"
    },
    "name": "update_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew file name, shown in list_assets and Settings.
assetYesThe asset's id (list_assets) or its /api/assets/… URL.
fileIdNoThe file the assets are for: its workspace's (a file shows the fonts and images of its own workspace).
fontStyleNoFonts: normal or italic.
workspaceNoThe workspace whose assets to use: its id or name (whoami lists them). Default: fileId's workspace, else the default workspace.
fontFamilyNoFonts: the family used by font-['Family'] (spaces as _ in the class).
fontWeightNoFonts: "400", or the weight range of a variable font, "100 900".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing blast radius ('Every file of the workspace uses the change'), which is exactly the context an agent needs for a tool flagged destructiveHint=true. It also names the permission requirement and the lookup precedence for resolving the target workspace, none of which the annotations provide.

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?

Three dense sentences that front-load the purpose, then the scope warning, then the auth/lookup rules. The parenthetical font example is long but earns its place; nothing is padding, though the phrasing is compressed enough to require a second read.

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?

For a 7-parameter destructive mutation with no output schema, the description covers purpose, blast radius, permissions, and workspace resolution. The only unstated detail is whether omitted optional fields are left unchanged (partial-update semantics), which the schema's single required parameter implies.

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 baseline is 3, but the description adds genuine meaning: the variable-font example explains why fontWeight accepts a range ('100 900') and how font-bold/font-extrabold then resolve to the file. It restates the fileId/workspace fallback already in the schema, which is redundant but harmless.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Change a workspace asset') and immediately enumerates the two supported modes: renaming, or correcting a font's family/weight/style. An agent can tell this apart from upload_asset or delete_asset by the operation alone, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditions for use: rename via name, fix font metadata via the font* fields, with a concrete worked example of a variable font needing a weight range. It also states the authorization prerequisite (workspace admin or the asset's uploader) and the workspace resolution order, but does not explicitly say when to prefer this over upload_asset for replacing a file.

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.