Skip to main content
Glama

Set a primary brand image

set_primary_brand_asset
DestructiveIdempotent

Makes one stored image the primary image of its type for its brand, for example the main product shot, and returns the updated asset. A logo asset also becomes the brand's logo. Repeating the call changes nothing.

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_id": "<asset_id>"
    },
    "name": "set_primary_brand_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
asset_idYesBrand image id from list_brand_assets.

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."
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changed
    • changedInput schema / properties / asset_id / description
      Previous value: -"Brand image reference from list_brand_assets."New value: +"Brand image id from list_brand_assets."
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds useful context by saying it returns the updated asset and that logo assets affect the brand logo. Still, it does not explicitly say that a previous primary asset is demoted or replaced, which matters given destructiveHint=true.

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?

The description is front-loaded with the core effect, then adds the logo special case and idempotency note in short, clear sentences. There is no unnecessary wording.

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 simple one-parameter mutation with rich annotations, the description covers the core effect, return value, logo behavior, and idempotency. The main omission is an explicit statement about what happens to the previous primary asset.

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%, and the schema already explains that asset_id is a brand image id from list_brand_assets. The description adds no additional parameter semantics beyond that.

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 description states a specific verb and effect: making one stored image the primary image of its type for its brand. It adds the logo-specific behavior and an example, which clearly distinguishes this from generic asset updates.

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

Usage Guidelines3/5

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

Usage is implied by the purpose: call this when an existing stored image should become primary. However, the description does not explicitly contrast it with update_brand_asset or state when not to use it.

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.