Skip to main content
Glama

Change the catalog itself

update_catalog
DestructiveIdempotent

The catalog's own settings, as the editor's settings drawer and Branding panel have them: its title, its page size (a preset such as A4 or Letter Landscape, or custom dimensions), how prices are written (priceFormat), and its branding — the brand colour palette and the typography of body text and headings h1 to h4 (Google Fonts family, size in print px, weight, line height, colour, case). Only what is given changes; typography merges per style, the palette is replaced as a whole. get_catalog reports the current values under design. Page content is edit_catalog; publishing is set_publish_options.

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": {
      "catalogId": "<catalogId>",
      "changes": "<changes>"
    },
    "name": "update_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesWhat to change; omit the rest
catalogIdYesCatalog id, as returned by list_catalogs

Output Schema

NameRequiredDescriptionDefault
titleYes
appliedYesThe settings changed
logoUrlYes
brandingYesBrand colours, typography and fonts
pageSizeYes
priceFormatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / changes / properties / priceFormat / description
      Previous value: -"How prices are written; the $ stands for the currency symbol: ${{amount}} → $1,134.65; {{amount}} $ → 1,134.65 $; ${{amount_no_decimals}} → $1,135; ${{amount_with_comma_separator}} → $1.134,65; ${{amount_no_decimals_with_comma_separator}} → $1.135; ${{amount_with_apostrophe_separator}} → $1'134.65; ${{amount_no_decimals_with_space_separator}} → $1 135; ${{amount_with_space_separator}} → $1 134.65"New value: +"How prices are written; the $ stands for the currency symbol: ${{amount}} → $1,134.65; {{amount}} $ → 1,134.65 $; ${{amount_no_decimals}} → $1,135; ${{amount_with_comma_separator}} → $1.134,65; ${{amount_no_decimals_with_comma_separator}} → $1.135; ${{amount_with_apostrophe_separator}} → $1'134.65; ${{amount_no_decimals_with_space_separator}} → $1 135; ${{amount_with_space_separator}} → $1 134.65; {{amount}} → 1,134.65"
    • changedInput schema / properties / changes / properties / priceFormat / enum
      Previous value: -[
      -  "${{amount}}",
      -  "{{amount}} $",
      -  "${{amount_no_decimals}}",
      -  "${{amount_with_comma_separator}}",
      -  "${{amount_no_decimals_with_comma_separator}}",
      -  "${{amount_with_apostrophe_separator}}",
      -  "${{amount_no_decimals_with_space_separator}}",
      -  "${{amount_with_space_separator}}"
      -]New value: +[
      +  "${{amount}}",
      +  "{{amount}} $",
      +  "${{amount_no_decimals}}",
      +  "${{amount_with_comma_separator}}",
      +  "${{amount_no_decimals_with_comma_separator}}",
      +  "${{amount_with_apostrophe_separator}}",
      +  "${{amount_no_decimals_with_space_separator}}",
      +  "${{amount_with_space_separator}}",
      +  "{{amount}}"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, so the safety profile is structured. The description adds non-obvious merge semantics beyond that: typography merges per style while the brandColors palette is replaced wholesale. It doesn't say whether changes are recoverable via restore_catalog_snapshot, which would have earned a 5.

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?

Front-loaded with the resource, then constraints, then routing to siblings — the ordering is right and every sentence carries content. The opening enumerated clause is dense and somewhat list-like, but each detail maps to a real parameter group.

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?

This is a nested, two-parameter mutation with a full schema and an output schema, so the description's main jobs are scope and merge semantics, both covered. It leaves implicit the destructive irreversibility and whether an existing catalog state can be restored, a minor gap given the annotations and output schema.

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% and the schema already documents enums, ranges, and defaults, so the baseline is 3. The description repeats the field inventory (title, pageSize, priceFormat, branding) and adds the merge-vs-replace distinction, but the concrete syntax for priceFormat and page sizes lives in the schema, not the description.

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 names the exact resource (catalog-level settings: title, page size, priceFormat, branding) and distinguishes it from siblings by naming edit_catalog for page content and set_publish_options for publishing. An agent can tell this apart from edit_catalog and update_product without opening a schema.

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?

It explicitly routes to alternatives (get_catalog to read current values under `design`, edit_catalog for page content, set_publish_options for publishing) and states the partial-update semantics ('Only what is given changes'). Missing only an explicit exclusion about destructive/irreversible effects, which annotations partly cover.

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