Skip to main content
Glama

create_asset

Create a new character, location, prop, or legacy text-only style asset in a workspace. Character, location, and prop prompts generate a reference image. Style assets do not generate images; routine projects should store their global visual style in edit.style instead. existingMediaUrl may attach an explicit user-supplied reference image.

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": {
      "workspaceId": "<workspaceId>",
      "type": "<type>",
      "name": "<name>"
    },
    "name": "create_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAsset name
typeYesType of asset to create
editIdNoEdit ID — REQUIRED when creating assets within an edit context. Assets without editId will NOT appear in the editor Assets tab.
promptNoPrompt for generating a character, location, or prop reference image. For a legacy style asset, this is normalized into its text description and no image is generated. Ignored if existingMediaUrl is provided.
modelIdNoModel ID for character, location, or prop image generation. Pass the user's preferred model from MODEL_PREFERENCES if set. Defaults to Nano Banana 2.1 (google-nano-banana-2-1). Ignored for style assets and when existingMediaUrl is provided.
folderIdNoFolder to place the asset in
descriptionNoAsset description. For style assets, this must be one short sentence describing only the visual aesthetic shared by every shot; do not list characters, locations, props, actions, or shot-specific objects.
workspaceIdYesThe workspace ID
existingMediaUrlNoDownload URL of an existing image to use as the asset reference image (e.g. from a user-attached file). When provided, skips image generation and uses this image directly.
voiceDescriptionNoFor character assets: voice/accent/personality description used for speech generation, e.g. "slow casual Gen Z woman, vocal fry, Valley girl / LA accent".
existingMediaFileNameNoOriginal file name for existingMediaUrl. Used when copying the uploaded image into workspace media storage.
existingMediaMimeTypeNoMIME type for existingMediaUrl. Used when copying the uploaded image into workspace media storage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • changedInput schema / properties / modelId / description
      Previous value: -"Model ID for character, location, or prop image generation. Pass the user's preferred model from MODEL_PREFERENCES if set. Defaults to Nano Banana Pro (google-gemini-3-image). Ignored for style assets and when existingMediaUrl is provided."New value: +"Model ID for character, location, or prop image generation. Pass the user's preferred model from MODEL_PREFERENCES if set. Defaults to Nano Banana 2.1 (google-nano-banana-2-1). Ignored for style assets and when existingMediaUrl is provided."
  3. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose meaningful side effects: which types trigger reference-image generation, that prompt is normalized into text and ignored when existingMediaUrl is set, and that existingMediaUrl skips generation entirely. However, it says nothing about permissions, whether creation is reversible, idempotency, or what the call returns.

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 front-loaded sentences with no filler; the type-by-type generation behavior comes first and the style alternative second. Slightly dense but every clause conveys actionable information.

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 12-parameter mutation tool with 100% schema coverage and no output schema, the description covers the non-obvious generation paths and the style-store alternative well. The main residual gap is the absence of any statement about the return value or failure modes, which matters since no output schema exists.

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 description coverage is 100%, so the schema already documents all 12 parameters including the editId editor-visibility warning and the style-asset description constraint. The description reinforces existingMediaUrl's role as a user-supplied reference image but adds little meaning not already present in 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 and resource ("Create a new character, location, prop, or legacy text-only style asset in a workspace") and enumerates the four creatable types. It further distinguishes the subtype behaviors — image generation for character/location/prop versus none for style — so an agent understands exactly what the tool produces.

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 an explicit redirect for one case: routine projects should store global visual style in edit.style rather than creating a style asset. It also directs model selection to MODEL_PREFERENCES. It does not explicitly contrast with update_asset or get_asset, but create-vs-update is unambiguous from the verb.

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.