Skip to main content
Glama

Restyle collection cards

set_card_design
Idempotent

Change how every card of a collection list looks, in one call: design swaps the whole card (a library design from set_card_design (with no design) — each takes the site's own fonts and colours and keeps every field the card shows — a plain arrangement, or 'as-designed' to put the original back), and style adjusts it (surface, corners, padding, photo shape, text alignment, hover). Prefer this to rewriting a card template with patch_nodes/insert_nodes (with parent_id and node_json): it cannot drop a field, break the card's link or lose the way back. Writes one draft version. With neither design nor style it changes nothing and returns the designs and style choices that fit this list's card, with its current style.

Input Schema

NameRequiredDescriptionDefault
styleNoCard style settings, applied after `design`: surface, corners, padding, photoShape, align, hover. Omitted settings are left as they are.
designNo'as-designed' (put back the card the site was built with), a plain arrangement ('image-top', 'overlay', 'image-left', 'text-only'), or a library design id from set_card_design (with no design).
site_idYes
list_node_idYesId of the collection-list node whose cards to change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing that it 'Writes one draft version', that changes are reversible via 'as-designed ... to put the original back', and that an empty call is a pure read. These are real behavioral facts annotations cannot convey. Missing: what happens on a list node that is not a collection list, or whether the draft must be published afterward.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One long sentence with nested parentheticals that reference the tool by its own name makes it hard to parse on first read. The core verb is front-loaded, but the recursion and stacked clauses cost the reader effort that a short bulleted split would have avoided.

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 mutation tool with no output schema and no readOnly annotation, this covers the safety story (non-destructive, reversible, draft-only) and the discovery path. The main gap is that the draft/publish lifecycle and the 'library design' discovery flow (an empty call returns design ids) are only implied, not spelled out in sequence.

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?

With 75% schema coverage the schema already documents most fields, yet the description still adds value by naming the two design families (library designs, plain arrangements such as image-top/overlay) and enumerating the style dimensions (surface, corners, padding, photo shape, text alignment, hover). It does not explain what any individual style enum value visually does, so an agent must guess between 'border'/'shadow'/'filled'.

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?

Opens with a specific verb and resource plus scope: 'Change how every card of a collection list looks, in one call'. The two-parameter split (design swaps whole card, style adjusts it) is clearly stated. It loses a point for the circular phrase 'a library design from set_card_design (with no design)', which forces the reader to reconstruct meaning from itself.

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?

Explicitly routes away from the tempting alternative: 'Prefer this to rewriting a card template with patch_nodes/insert_nodes ... it cannot drop a field, break the card's link or lose the way back', and gives the reason. It also defines a discovery mode ('With neither design nor style it changes nothing and returns the designs and style choices'), so an agent knows how to explore before mutating.

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