Skip to main content
Glama

Import a brand image URL

register_brand_asset_url
Idempotent

Imports an image from a public HTTPS URL into a brand's stored images, up to 10 MiB, and returns the new asset, or a pending status while the import finishes. For images already hosted online; upload_brand_asset takes small files as base64. Does not analyze the image or make it primary. Needs a user sign-in connection, not an API key.

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": {
      "brand_id": "<brand_id>",
      "asset_type": "<asset_type>",
      "idempotency_key": "<idempotency_key>",
      "image_url": "<image_url>"
    },
    "name": "register_brand_asset_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional list of up to 20 short tags.
brand_idYesBrand id from list_brands: the brand that receives the image.
image_urlYesPublic HTTPS URL of the image file itself, not of a page that shows it.
asset_typeYesWhat the image is for: product, lifestyle, model, logo or reference.
descriptionNoOptional description of what the image shows, up to 2,000 characters.
idempotency_keyYesCaller-chosen unique value for this upload (1 to 200 characters), not a value from a preview. A repeat with the same value and arguments returns the original asset; a different image needs a new value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "https://json-schema.org/draft/2020-12/schema",
      -  "additionalProperties": false,
      -  "properties": {
      -    "asset": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "description": "asset value in this response.",
      -          "properties": {
      -            "asset_type": {
      -              "anyOf": [
      -                {
      -                  "description": "asset type value in this response.",
      -                  "enum": [
      -                    "product",
      -                    "lifestyle",
      -                    "model",
      -                    "logo",
      -                    "reference"
      -                  ],
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "asset type value in this response."
      -            },
      -            "brand_id": {
      -              "anyOf": [
      -                {
      -                  "description": "Reference for the selected brand.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Reference for the selected brand."
      -            },
      -            "created_at": {
      -              "anyOf": [
      -                {
      -                  "description": "created at value in this response.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "created at value in this response."
      -            },
      -            "description": {
      -              "anyOf": [
      -                {
      -                  "description": "description value in this response.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "description value in this response."
      -            },
      -            "id": {
      -              "anyOf": [
      -                {
      -                  "description": "id value in this response.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "id value in this response."
      -            },
      -            "is_primary": {
      -              "anyOf": [
      -                {
      -                  "description": "is primary value in this response.",
      -                  "type": "boolean"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "is primary value in this response."
      -            },
      -            "metadata": {
      -              "anyOf": [
      -                {
      -                  "additionalProperties": false,
      -                  "description": "metadata value in this response.",
      -                  "properties": {
      -                    "content_type": {
      -                      "anyOf": [
      -                        {
      -                          "description": "content type value in this response.",
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "content type value in this response."
      -                    },
      -                    "file_size": {
      -                      "anyOf": [
      -                        {
      -                          "description": "file size value in this response.",
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "file size value in this response."
      -                    },
      -                    "original_name": {
      -                      "anyOf": [
      -                        {
      -                          "description": "original name value in this response.",
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "original name value in this response."
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "metadata value in this response."
      -            },
      -            "tags": {
      -              "anyOf": [
      -                {
      -                  "description": "tags value in this response.",
      -                  "items": {
      -                    "description": "tags value in this response.",
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "tags value in this response."
      -            },
      -            "updated_at": {
      -              "anyOf": [
      -                {
      -                  "description": "updated at value in this response.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "updated at value in this response."
      -            },
      -            "url": {
      -              "anyOf": [
      -                {
      -                  "description": "url value in this response.",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "url value in this response."
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "asset value in this response."
      -    },
      -    "replayed": {
      -      "anyOf": [
      -        {
      -          "description": "replayed value in this response.",
      -          "type": "boolean"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "replayed value in this response."
      -    },
      -    "retry_after_seconds": {
      -      "anyOf": [
      -        {
      -          "description": "retry after seconds value in this response.",
      -          "type": "number"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "description": "retry after seconds value in this response."
      -    },
      -    "status": {
      -      "description": "Upload progress or completion state.",
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed6 schema fields changed
    • changedInput schema / properties / asset_type / description
      Previous value: -"Purpose of this brand image: product, lifestyle, model, logo or reference."New value: +"What the image is for: product, lifestyle, model, logo or reference."
    • changedInput schema / properties / brand_id / description
      Previous value: -"Brand reference from list_brands (e.g. the returned brand id)."New value: +"Brand id from list_brands: the brand that receives the image."
    • changedInput schema / properties / description / description
      Previous value: -"Short description of this item."New value: +"Optional description of what the image shows, up to 2,000 characters."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Confirmation key from the cost preview; valid for 15 minutes."New value: +"Caller-chosen unique value for this upload (1 to 200 characters), not a value from a preview. A repeat with the same value and arguments returns the original asset; a different image needs a new value."
    • changedInput schema / properties / image_url / description
      Previous value: -"Public HTTPS image URL."New value: +"Public HTTPS URL of the image file itself, not of a page that shows it."
    • changedInput schema / properties / tags / description
      Previous value: -"Short labels for organizing this image."New value: +"Optional list of up to 20 short tags."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, openWorldHint=true), the description discloses asynchronous behavior ('or a pending status while the import finishes'), the 10 MiB ceiling, and an authentication constraint that annotations cannot express. These are exactly the operational facts an agent needs before calling.

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?

Three sentences, each carrying distinct load: capability plus limit, sibling routing, then behavioral exclusions and auth prerequisite. The most decision-relevant facts lead, and nothing is repeated from the schema.

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?

With no output schema, the description correctly explains the response (new asset or pending status), and it covers the auth model, size limit, and scope exclusions. Nothing material is missing for a write tool of this complexity.

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 all six parameters are already documented, including the idempotency_key semantics and the 'page that shows it' URL caveat. The description adds only the 10 MiB size ceiling, which is genuine but marginal value beyond the schema; baseline 3 is appropriate.

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 and resource ('Imports an image from a public HTTPS URL into a brand's stored images') and adds a concrete constraint (up to 10 MiB). It also states the return shape (new asset or pending status), which lets an agent distinguish this from upload_brand_asset without opening either schema.

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?

Explicit routing guidance: 'For images already hosted online; upload_brand_asset takes small files as base64.' It also states what the tool will not do ('Does not analyze the image or make it primary'), implicitly pointing away from set_primary_brand_asset, and names a prerequisite (user sign-in connection, not an API key).

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.