Skip to main content
Glama

Apply branding to site

apply_branding_to_site
Destructive

Apply the project's saved brand to the selected site's shared style tokens, fonts, layout, and shared components. Affects that site's drafts, not the saved brand kit. Use update_brand first if there is no saved brand. Starts an asynchronous internal-agent operation; poll get_agent_session. For corrections, call this same tool with its sessionId and unchanged target. Requires a provisioned site. Source edits may execute in its preview. The Replo agent uses its normal tools and connected integrations to implement and verify the requested changes. Use publish_site separately to make changes public. Before restyling a site with a brand, read the managing-brand skill (call skills with name "managing-brand").

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": {
      "siteId": "<siteId>",
      "instructions": "<instructions>"
    },
    "name": "apply_branding_to_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite ID from list_sites.
sessionIdNoOmit to start this operation. To continue, supply the returned sessionId with the same operation and target; mismatches and legacy sessions are rejected.
instructionsYesRequested changes for this operation only. Include necessary references, not conversation history, credentials, or unrelated personal data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true, idempotentHint=false), the description discloses that this starts an asynchronous internal-agent operation requiring polling via get_agent_session, and that source edits may execute in the site's preview. Those are materially useful operational traits not encoded anywhere in structured fields.

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 core action and its scope, then constraints in descending priority, which suits an agent scanning for callability. It runs long at seven sentences, and 'The Replo agent uses its normal tools and connected integrations to implement and verify the requested changes' is close to filler.

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?

No output schema exists, yet the description still tells the agent the operation is asynchronous and how to poll and how to correct a run. Combined with prerequisites, skill guidance, and the separate publish step, nothing critical for correct invocation is missing.

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 the schema already documents all three parameters, including the sessionId continuation rules and the instructions length/scope limits. The description reinforces the continuation semantics ('call this same tool with its sessionId and unchanged target') but adds little beyond what the schema states, so the baseline 3 applies.

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?

Specific verb (apply) plus resource (the project's saved brand) plus the exact surfaces affected (shared style tokens, fonts, layout, shared components). It also states the boundary: it affects that site's drafts, not the saved brand kit, which an agent could not infer from the name alone.

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 to alternatives: use update_brand first if no saved brand, use publish_site separately to make changes public, and read the managing-brand skill before restyling. It also gives the prerequisite (a provisioned site) and the correction path (re-invoke with the same sessionId and unchanged target).

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