Skip to main content
Glama

Update Site Section Styles

update_site_section_styles
Idempotent

Update section-level styles (background, padding, gap, alignItems, justifyContent, textAlign, maxWidth, etc.). Also supports 'separators' for decorative top/bottom shapes between sections: {separators: {top: {type, color, height, width?, flip?}, bottom: {...}}}. The shape is drawn inside this section, filled with 'color', hugging its top or bottom edge, so it reads as the neighbouring section's background flowing into this one. Pick 'color' from the neighbour, not from this section: a top separator should usually use the previous section's background colour and a bottom separator the next section's (read them with get_site_section first; a colour that matches this section's own background makes the shape invisible). Prefer a bottom separator on the section above over a top separator on the one below. Skip separators against image, video or gradient backgrounds unless the colour is chosen to blend with them. Use separators sparingly: they are an accent, not a default. Only add one where two adjacent sections have clearly different background colours and the transition benefits from softening, at most a few per page, and stick to one or two shape types across the whole site so it looks designed rather than busy. Do not add them unless the user asked for them or the design clearly calls for one. 'height' is a px value (e.g. '60px') that scales down on phones. 'flip' mirrors the shape horizontally; vertical orientation is derived from the edge, so 'invert' is ignored. Separator types: wave, wave-opacity, curve, curve-asymmetric, tilt, triangle, triangle-asymmetric, arrow, split, book, clouds, mountains. Background supports colour, image, gradient and video: {backgroundType: color|image|gradient|video, backgroundColor, backgroundImage, backgroundGradient, backgroundVideo, backgroundVideoProvider: direct|youtube|vimeo, backgroundSize, backgroundPosition, backgroundRepeat, backgroundAttachment, backgroundOverlay, backgroundOverlayOpacity, backgroundBlur}. Shape and photo treatments live on the same object: {clipPath, filter, opacity, boxShadow, borderRadius}.

Input Schema

NameRequiredDescriptionDefault
page_idYesPage UUID.
event_idYesEvent UUID returned by search_events.
propertiesYesStyle properties to merge with existing section styles.
section_idYesSection UUID.

Output Schema

NameRequiredDescriptionDefault
hintYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false), yet the description adds substantial operational context: separator color must come from the neighbouring section or the shape becomes invisible, separators are drawn inside this section hugging its edge, height scales down on phones, and 'invert' is silently ignored because vertical orientation derives from the edge. These are real behavioral gotchas not expressible in annotations.

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?

Front-loaded with purpose, but it is a single dense paragraph packed with nested parentheticals and repeated restraint advice ('use separators sparingly' and 'do not add them unless the user asked') that could be collapsed. The separator guidance, which is a secondary feature, dominates the length relative to the core style update.

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?

Annotations plus an output schema mean the safety profile and return shape are already covered, and the description fills the large remaining gap of the untyped properties object with concrete field lists and design rules. It is nearly complete; what's missing is how merges behave against existing nested styles (e.g. whether a partial background replaces or augments the current one).

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?

The four top-level params are 100% schema-documented, but the required 'properties' object is free-form (additionalProperties: true) with no nested schema, so the description must carry the payload — and it does, documenting background fields (backgroundType enum values, overlay, blur), separator shape structure with type/color/height/width/flip, and the clipPath/filter/opacity/shape treatment family. It falls short of 5 because the list ends in 'etc.' and the merge semantics for nested/array values are left to the schema's one-line note.

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?

Opening sentence states a precise verb+resource ('Update section-level styles') and enumerates the concrete properties (background, padding, gap, alignItems, justifyContent, textAlign, maxWidth). The scope word 'section-level' plus the separator/background sub-topics make it clear this is not the block, page, or settings updater. An agent can distinguish it from update_site_block/update_site_page/update_site_settings 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?

Unusually rich: it gives explicit when-to-use (two adjacent sections with clearly different backgrounds), when-not to use ('Do not add them unless the user asked for them or the design clearly calls for one'), an alternative preference ('Prefer a bottom separator on the section above over a top separator on the one below'), and a prerequisite ('read them with get_site_section first'). The only blemish is that the named prerequisite tool doesn't match a sibling exactly (read_site_sections), and there is no guidance on choosing this over update_site_block.

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